Adding break to case statements + consistent formatting - fixes #35
This commit is contained in:
@@ -16,16 +16,22 @@ if (!defined('roots_container_class')) {
|
|||||||
switch ($roots_css_framework) {
|
switch ($roots_css_framework) {
|
||||||
case 'blueprint':
|
case 'blueprint':
|
||||||
define('roots_container_class', 'span-24');
|
define('roots_container_class', 'span-24');
|
||||||
|
break;
|
||||||
case '960gs_12':
|
case '960gs_12':
|
||||||
define('roots_container_class', 'container_12');
|
define('roots_container_class', 'container_12');
|
||||||
|
break;
|
||||||
case '960gs_16':
|
case '960gs_16':
|
||||||
define('roots_container_class', 'container_16');
|
define('roots_container_class', 'container_16');
|
||||||
|
break;
|
||||||
case '960gs_24':
|
case '960gs_24':
|
||||||
define('roots_container_class', 'container_24');
|
define('roots_container_class', 'container_24');
|
||||||
|
break;
|
||||||
case '1140':
|
case '1140':
|
||||||
define('roots_container_class', 'container');
|
define('roots_container_class', 'container');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
define('roots_container_class', '');
|
define('roots_container_class', '');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +72,24 @@ function get_roots_stylesheets() {
|
|||||||
// set the maximum 'Large' image width to the maximum grid width
|
// set the maximum 'Large' image width to the maximum grid width
|
||||||
if (!isset($content_width)) {
|
if (!isset($content_width)) {
|
||||||
switch ($roots_css_framework) {
|
switch ($roots_css_framework) {
|
||||||
case 'blueprint' :
|
case 'blueprint':
|
||||||
$content_width = 950;
|
$content_width = 950;
|
||||||
case '960gs_12' :
|
break;
|
||||||
$content_width = 940;
|
case '960gs_12':
|
||||||
case '960gs_16' :
|
$content_width = 940;
|
||||||
$content_width = 940;
|
break;
|
||||||
case '960gs_24' :
|
case '960gs_16':
|
||||||
$content_width = 940;
|
$content_width = 940;
|
||||||
case '1140' :
|
break;
|
||||||
$content_width = 1140;
|
case '960gs_24':
|
||||||
default :
|
$content_width = 940;
|
||||||
$content_width = 950;
|
break;
|
||||||
|
case '1140':
|
||||||
|
$content_width = 1140;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$content_width = 950;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// tell the TinyMCE editor to use editor-style.css
|
// tell the TinyMCE editor to use editor-style.css
|
||||||
|
|||||||
@@ -255,13 +255,13 @@ function roots_gallery_shortcode($attr) {
|
|||||||
// make the gallery link to the file by default instead of the attachment
|
// make the gallery link to the file by default instead of the attachment
|
||||||
// thanks to Matt Price (countingrows.com)
|
// thanks to Matt Price (countingrows.com)
|
||||||
switch($attr['link']) {
|
switch($attr['link']) {
|
||||||
case 'file' :
|
case 'file':
|
||||||
$link = wp_get_attachment_link($id, $size, false, false);
|
$link = wp_get_attachment_link($id, $size, false, false);
|
||||||
break;
|
break;
|
||||||
case 'attachment' :
|
case 'attachment':
|
||||||
$link = wp_get_attachment_link($id, $size, true, false);
|
$link = wp_get_attachment_link($id, $size, true, false);
|
||||||
break;
|
break;
|
||||||
default :
|
default:
|
||||||
$link = wp_get_attachment_link($id, $size, false, false);
|
$link = wp_get_attachment_link($id, $size, false, false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user