Permalink
Browse files

[YAML 4.0.1 conversion] bt_ normalised to bt- prefix

  • Loading branch information...
1 parent cf52187 commit 168ac8d385554ef044943d7196b6a9d93675052b @matheo committed May 10, 2012
@@ -73,7 +73,7 @@ function smarty_function_bt_htmloutput($params, Zikula_View_Theme &$view)
}
// render the menu
$count = count($menu) - 1;
- $output = '<div id="bt_topnavlinks"><ul>';
+ $output = '<div id="bt-topnavlinks"><ul>';
foreach ($menu as $k => $option) {
$class = '';
if (count($menu) == 1) {
@@ -83,7 +83,7 @@ function smarty_function_bt_htmloutput($params, Zikula_View_Theme &$view)
} elseif ($k == $count) {
$class = 'last';
}
- $output .= '<li '.($class ? ' class="bt_'.$class.'"' : '').'>';
+ $output .= '<li '.($class ? ' class="bt-'.$class.'"' : '').'>';
if (!empty($option[2])) {
$output .= '<a title="'. DataUtil::formatForDisplay($option[1]). '" href="'.DataUtil::formatForDisplay($option[2]).'"><span>'. DataUtil::formatForDisplay($option[1]). '</span></a>';
} else {
@@ -152,35 +152,35 @@ function smarty_function_bt_htmloutput($params, Zikula_View_Theme &$view)
/* Body ID */
case 'bodyid':
if ($view->getToplevelmodule()) {
- $output = 'bt_'.$view->getToplevelmodule();
+ $output = 'bt-'.$view->getToplevelmodule();
} elseif (!empty($current)) {
- $output = 'bt_'.$current;
+ $output = 'bt-'.$current;
} else {
- $output = 'bt_staticpage';
+ $output = 'bt-staticpage';
}
break;
/* First CSS level */
case 'classesbody':
- // add a first level of CSS classes like current language, type parameter and body template in use with a 'bt_' prefix
+ // add a first level of CSS classes like current language, type parameter and body template in use with a 'bt-' prefix
if (!empty($current)) {
- $output .= 'bt_'.$current.' ';
+ $output .= 'bt-'.$current.' ';
}
if ($btcssbody && isset($btcssbody[$body]) && $btcssbody[$body]) {
$output .= $btcssbody[$body].' ';
}
- $output .= 'bt_'.$body.' bt_type_'.$view->getType().' bt_lang_'.$view->getLanguage();
+ $output .= 'bt-'.$body.' bt-type-'.$view->getType().' bt-lang-'.$view->getLanguage();
break;
/* Second CSS level */
case 'classespage':
// add a second level of CSS classes
// add the current layout and enabled zones
- $output .= 'bt_'.str_replace('_', ' bt_', $layout);
+ $output .= 'bt-'.str_replace('_', ' bt-', $layout);
// add the current function name
- $output .= ' bt_func_'.$view->getFunc();
+ $output .= ' bt-func-'.$view->getFunc();
break;
/* Third CSS level */
@@ -191,16 +191,16 @@ function smarty_function_bt_htmloutput($params, Zikula_View_Theme &$view)
case 'Pages':
switch ($view->getFunc()) {
case 'display':
- // Example: add the current pageid in a CSS class (bt_pageid_PID)
+ // Example: add the current pageid in a CSS class (bt-pageid-PID)
// note: this only works when using normal urls, shortURLs uses the title field
- $output .= ' bt_pageid_'.FormUtil::getPassedValue('pageid');
+ $output .= ' bt-pageid-'.FormUtil::getPassedValue('pageid');
break;
}
break;
case 'Content':
switch ($view->getFunc()) {
case 'view':
- // Example: add the current page category id in a CSS class (bt_contentcatpage_CID)
+ // Example: add the current page category id in a CSS class (bt-contentcatpage-CID)
// works for normal and shortURLs
if (System::getVar('shorturls')) {
$urlname = $view->getRequest()->getGet()->get('name');
@@ -209,7 +209,7 @@ function smarty_function_bt_htmloutput($params, Zikula_View_Theme &$view)
$pageId = $view->getRequest()->getGet()->get('pid');
}
$page = ModUtil::apiFunc('Content', 'Page', 'getPage', array('id' => $pageId));
- $output .= ' bt_contentcatpage_'.$page['categoryId'];
+ $output .= ' bt-contentcatpage-'.$page['categoryId'];
}
break;
}
@@ -15,7 +15,7 @@
* - current (string) Current screen ID (.ini current value or module name) (optional)
* - currentclass (string) CSS class name of the current tab, list item (default: 'active')
* - span (bool) Flag to enable SPAN wrappers on the links text, useful for sliding doors (default: false)
- * - desc (bool) Flag to put the parent links descriptions inside SPAN.bt_desc instead the link title (default: false)
+ * - desc (bool) Flag to put the parent links descriptions inside SPAN.bt-desc instead the link title (default: false)
*
* Example:
* {bt_userlinks id='myId' current='home' currentclass='myActiveClass'}
@@ -153,7 +153,7 @@ function bt_userlinks_drawmenu($option, $current, $currentclass, $span=false, $d
$return .= $desc ? '' : ' title="'.DataUtil::formatForDisplay($option[2]).'"';
$return .= ' href="'.DataUtil::formatForDisplay($option[3]).'">';
if ($desc) {
- $return .= DataUtil::formatForDisplay($option[1]).' <span class="bt_desc">'.DataUtil::formatForDisplay($option[2]).'</span>';
+ $return .= DataUtil::formatForDisplay($option[1]).' <span class="bt-desc">'.DataUtil::formatForDisplay($option[2]).'</span>';
} else {
$return .= ($span ? '<span>' : ''). DataUtil::formatForDisplay($option[1]). ($span ? '</span>' : '');
}
@@ -6,63 +6,63 @@
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
*/
-body.bt_admin {
+body.bt-admin {
font-size: 75%;
}
-.bt_admin .ym-wrapper {
+.bt-admin .ym-wrapper {
max-width: none;
width: auto;
}
-.bt_admin .ym-wbox {
+.bt-admin .ym-wbox {
height: 100%;
margin: 0;
}
-.bt_admin .z-adminbox,
-.bt_admin .z-admincontainer {
+.bt-admin .z-adminbox,
+.bt-admin .z-admincontainer {
background: #fff;
}
-.bt_admin header {
+.bt-admin header {
height: 70px;
}
-.bt_admin header h1 {
+.bt-admin header h1 {
padding: 10px 0 0;
}
-.bt_admin header .logo {
+.bt-admin header .logo {
margin: 10px 5px 0 0;
}
-.bt_admin #main {
+.bt-admin #main {
padding: 1em;
}
-.bt_admin.bt_2col .bt_12 .ym-col1 {
+.bt-admin.bt-2col .bt-12 .ym-col1 {
width: 140px;
}
-.bt_admin.bt_2col .bt_12 .ym-col2 {
+.bt-admin.bt-2col .bt-12 .ym-col2 {
border-left: none;
margin-left: 140px;
}
-.bt_admin.bt_2col .bt_12 .ym-col1 .ym-cbox,
-.bt_admin.bt_2col .bt_12 .ym-col2 .ym-cbox {
+.bt-admin.bt-2col .bt-12 .ym-col1 .ym-cbox,
+.bt-admin.bt-2col .bt-12 .ym-col2 .ym-cbox {
padding: 0;
}
-.bt_admin footer {
+.bt-admin footer {
text-align: center;
}
-.bt_admin a {
+.bt-admin a {
color: #4D87C7;
}
-.bt_admin ul#admintabs {
+.bt-admin ul#admintabs {
-webkit-border-radius: 5px 0 0 5px;
-moz-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
border: 1px solid #ccc;
border-right: none;
width: auto;
}
-.bt_admin ul#admintabs li {
+.bt-admin ul#admintabs li {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
@@ -71,34 +71,34 @@ body.bt_admin {
float: none;
margin: 0;
}
-.bt_admin ul#admintabs li > a {
+.bt-admin ul#admintabs li > a {
display: block;
float: none;
margin-right: 15px;
}
-.bt_admin ul#admintabs li > a:hover {
+.bt-admin ul#admintabs li > a:hover {
background: #eee;
border-right: none;
}
-.bt_admin ul#admintabs li > .z-admindrop {
+.bt-admin ul#admintabs li > .z-admindrop {
float: right;
}
-.bt_admin ul#admintabs li > .z-admindrop:hover {
+.bt-admin ul#admintabs li > .z-admindrop:hover {
border-left: none;
}
-.bt_admin ul#admintabs li:first-child {
+.bt-admin ul#admintabs li:first-child {
-webkit-border-radius: 5px 0 0 0;
-moz-border-radius: 5px 0 0 0;
border-radius: 5px 0 0 0;
}
-.bt_admin ul#admintabs li:last-child {
+.bt-admin ul#admintabs li:last-child {
-webkit-border-radius: 0 0 0 5px;
-moz-border-radius: 0 0 0 5px;
border-radius: 0 0 0 5px;
border-bottom: none;
}
-.bt_admin ul#admintabs li.active {
+.bt-admin ul#admintabs li.active {
border-right: 1px solid #fff;
margin-right: -1px;
}
@@ -135,7 +135,7 @@ ul#admintabs #ajaxNewCatForm a.ajaxCatImage img {
#admin-systemnotices li {
margin-bottom: 0.5em;
}
-.bt_admin #z-maincontent div.z-admin-content {
+.bt-admin #z-maincontent div.z-admin-content {
-webkit-border-radius: 0 10px 10px 10px;
-moz-border-radius: 0 10px 10px 10px;
border-radius: 0 10px 10px 10px;
Oops, something went wrong.

0 comments on commit 168ac8d

Please sign in to comment.