<?php /** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca, 0a3014a3-2b8f-460b-8850-d6025aa845f8 * Package Date: 2015-11-25 03:08:08 * IP Address: 67.79.165.254 */ $styles = array(); /* #wrap { background-color: #333; }*/ $styles['.form-box .header,#login .bg-loginbtn'] = array('d' => 'Login Color', 'v' => array('background-color' => '#3d9970', 'color' => '#FFFFFF')); $styles['sidebar-position'] = array('d' => 'other-settings', 'elements' => array(array('title' => 'Color Style', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_colorstyle]', 'options' => array('light' => _l('Light'), 'dark' => _l('Dark')), 'blank' => false, 'value' => module_theme::get_config('adminlte_colorstyle', 'dark'), 'help' => 'Menu and Header color options.')), array('title' => 'Box Style', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_boxstyle]', 'options' => array('box-solid' => _l('Solid White'), 'box-gray' => _l('Gray Top Line'), 'box-primary' => _l('Blue Top Line'), 'box-success' => _l('Green Top Line'), 'box-danger' => _l('Red Top Line'), 'box-warning' => _l('Orange Top Line')), 'blank' => false, 'value' => module_theme::get_config('adminlte_boxstyle', 'box-solid'), 'help' => 'Different options for the content box colors.')), array('title' => 'Form Style', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_formstyle]', 'options' => array('table' => _l('Clean/Compact (table,tr,td)'), 'div' => _l('Boxed (divs)')), 'blank' => false, 'value' => module_theme::get_config('adminlte_formstyle', 'table'), 'help' => 'Change how form elements display on the page.')), array('title' => 'Menu Style', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_menustyle]', 'options' => array('fixed' => _l('Fixed'), 'normal' => _l('Normal')), 'blank' => false, 'value' => module_theme::get_config('adminlte_menustyle', 'fixed'), 'help' => 'Change if the menu scrolls with the page or remains fixed.')), array('title' => 'Badge Color', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_badgecolor]', 'options' => array('bg-red' => _l('red'), 'bg-yellow' => _l('yellow'), 'bg-aqua' => _l('aqua'), 'bg-blue' => _l('blue'), 'bg-light-blue' => _l('light blue'), 'bg-green' => _l('green'), 'bg-navy' => _l('navy'), 'bg-teal' => _l('teal'), 'bg-olive' => _l('olive'), 'bg-lime' => _l('lime'), 'bg-orange' => _l('orange'), 'bg-fuchsia' => _l('fuchsia'), 'bg-purple' => _l('purple'), 'bg-maroon' => _l('maroon'), 'bg-black' => _l('black')), 'blank' => false, 'value' => module_theme::get_config('adminlte_badgecolor', 'bg-light-blue'), 'help' => 'The color of the notification bubbles/badges in the menu items.')), array('title' => 'Table Borders', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_tableborder]', 'options' => array('1' => _l("Yes"), '0' => _l("No")), 'blank' => false, 'value' => module_theme::get_config('adminlte_tableborder', 0), 'help' => 'Verticle lines on table data. Change this and check the Customer list.')), array('title' => 'Table Striped', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_tablestripe]', 'options' => array('1' => _l("Yes"), '0' => _l("No")), 'blank' => false, 'value' => module_theme::get_config('adminlte_tablestripe', 1), 'help' => 'Alternating colors on table data. Change this and check the Customer list.')), array('title' => 'Table Full Width', 'field' => array('type' => 'select', 'name' => 'config[' . _THEME_CONFIG_PREFIX . 'adminlte_tablefullwidth]', 'options' => array('1' => _l("Yes"), '0' => _l("No")), 'blank' => false, 'value' => module_theme::get_config('adminlte_tablefullwidth', 1), 'help' => 'Makes the table data stretch to the edge of the box. Change this and check the Customer list.'))));
</header> <?php } ?> <div id="wrap"> <div id="top"> <!-- <div class="header-spacer visible-xs" style="height:51px;"></div> --> <nav class="navbar navbar-inverse navbar-static-top hidden-xs"> <!-- Brand and toggle get grouped for better mobile display --> <header class="navbar-header"> <?php if ($header_logo = module_theme::get_config('theme_logo', _BASE_HREF . 'images/logo.png')) { ?> <a href="<?php echo _BASE_HREF; ?> " class="navbar-brand"><img src="<?php echo htmlspecialchars($header_logo); ?> " border="0" title="<?php echo htmlspecialchars(module_config::s('header_title', 'UCM')); ?> "></a> <?php } else { ?>
public function render($type = 'html', $options = array()) { ob_start(); switch ($type) { case 'pretty_html': // header and footer so plain contnet can be rendered nicely. $display_mode = get_display_mode(); // addition - woah! we pass this through to the template module for re-rending again: ob_start(); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>{PAGE_TITLE}</title> {FAVICON} {AUTOMATIC_STYLES} {AUTOMATIC_SCRIPTS} <style type="text/css"> body{ margin:0; } </style> </head> <body> <div class="pretty_content_wrap"> {CONTENT} </div> </body> </html> <?php /*$c = $this->replace_content(); if(!$this->wysiwyg){ //$c = nl2br($c); } echo $c;*/ module_template::init_template('external_template', ob_get_clean(), 'Used when displaying the external content such as "External Jobs" and "External Invoices" and "External Tickets".', 'code', array('CONTENT' => 'The inner content', 'PAGE_TITLE' => 'in the <title> tag', 'FAVICON' => 'if the theme specifies a favicon it will be here', 'AUTOMATIC_STYLES' => 'system generated stylesheets', 'AUTOMATIC_SCRIPTS' => 'system generated javascripts')); ob_start(); ?> <link rel="stylesheet" href="<?php echo _BASE_HREF; ?> css/desktop.css" type="text/css"> <link rel="stylesheet" href="<?php echo _BASE_HREF; ?> css/print.css" type="text/css" media="print"> <link rel="stylesheet" href="<?php echo _BASE_HREF; ?> css/styles.css" type="text/css"> <link type="text/css" href="<?php echo _BASE_HREF; ?> css/smoothness/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" /> <?php module_config::print_css(); ?> <?php $css = ob_get_clean(); ob_start(); ?> <script type="text/javascript" src="<?php echo _BASE_HREF; ?> js/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="<?php echo _BASE_HREF; ?> js/jquery-ui-1.9.2.custom.min.js"></script> <script type="text/javascript" src="<?php echo _BASE_HREF; ?> js/timepicker.js"></script> <script type="text/javascript" src="<?php echo _BASE_HREF; ?> js/cookie.js"></script> <script type="text/javascript" src="<?php echo _BASE_HREF; ?> js/javascript.js?ver=2"></script> <?php module_config::print_js(); ?> <?php $scripts = ob_get_clean(); $external_template = self::get_template_by_key('external_template'); $external_template->assign_values(array('CONTENT' => $this->replace_content(), 'PAGE_TITLE' => $this->page_title ? $this->page_title : module_config::s('admin_system_name'), 'FAVICON' => module_theme::get_config('theme_favicon', '') ? '<link rel="icon" href="' . htmlspecialchars(module_theme::get_config('theme_favicon', '')) . '">' : '', 'AUTOMATIC_STYLES' => $css, 'AUTOMATIC_SCRIPTS' => $scripts)); echo $external_template->render('raw'); break; case 'html': default: $c = $this->replace_content(); if ($this->wysiwyg) { //$c = nl2br($c); } echo $c; break; } return ob_get_clean(); }
function adminlte_generate_fieldset($callback, $options) { $defaults = array('id' => false, 'type' => 'table', 'title' => false, 'title_type' => 'h3', 'heading' => false, 'row_title_class' => 'width1', 'row_data_class' => '', 'elements' => array(), 'class' => 'tableclass tableclass_form', 'extra_settings' => array(), 'elements_before' => '', 'elements_after' => ''); $options = array_merge($defaults, $options); if (function_exists('hook_filter_var')) { $options = hook_filter_var('generate_fieldset_options', $options); } ob_start(); ?> <div class="box <?php echo module_theme::get_config('adminlte_boxstyle', 'box-solid'); echo isset($options['heading']['responsive']) ? ' box-responsive' : ''; ?> "> <div class="box-header"> <?php if ($options['heading']) { if (!isset($options['heading']['type']) || $options['heading']['type'] != 'h3') { $options['heading']['type'] = 'h3'; } $options['heading']['class'] = 'box-title'; print_heading($options['heading']); } else { if ($options['title']) { ?> <<?php echo $options['title_type']; ?> class="box-title"><?php _e($options['title']); ?> </<?php echo $options['title_type']; ?> > <?php } } ?> </div> <!-- .block --> <div class="box-body"> <?php echo $options['elements_before']; ?> <?php if ($options['elements']) { if (module_theme::get_config('adminlte_formstyle', 'table') == 'table') { ?> <table class="<?php echo $options['class']; ?> "> <tbody> <?php foreach ($options['elements'] as $element) { if (isset($element['ignore']) && $element['ignore']) { continue; } if (isset($element['field']) && !isset($element['fields'])) { $element['fields'] = array($element['field']); unset($element['field']); } ?> <tr> <?php if (isset($element['message']) && $element['message'] || isset($element['warning']) && isset($element['warning'])) { ?> <th colspan="2" class="text-center"> <?php if (isset($element['message'])) { ?> <?php echo $element['message']; ?> <?php } else { if (isset($element['warning'])) { ?> <span class="error_text"><?php echo $element['warning']; ?> </span> <?php } } ?> </th> <?php } else { ?> <th class="<?php echo isset($element['row_title_class']) ? $element['row_title_class'] : $options['row_title_class']; ?> "> <?php if (isset($element['title'])) { ?> <?php echo htmlspecialchars(_l($element['title'])); ?> <?php } ?> </th> <td class="<?php echo isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']; ?> "> <?php if (isset($element['fields'])) { ?> <?php if (is_array($element['fields'])) { foreach ($element['fields'] as $dataid => $field) { if (is_array($field)) { // treat this as a call to the form generate option module_form::generate_form_element($field); echo ' '; } else { if (is_closure($field)) { $field(); } else { echo $field . ' '; } } } } else { echo $element['fields']; } ?> <?php } // fields ?> </td> <!-- /.input-group --> <?php } //else ?> </tr> <!-- /.form-group --> <?php } if (class_exists('module_extra') && module_extra::is_plugin_enabled() && $options['extra_settings']) { module_extra::display_extras($options['extra_settings']); } ?> </tbody> </table> <!-- /.elements --> <?php // end table layout } else { if (module_theme::get_config('adminlte_formstyle', 'table') == 'div') { ?> <div class="<?php echo $options['class']; ?> "> <?php foreach ($options['elements'] as $element) { if (isset($element['ignore']) && $element['ignore']) { continue; } if (isset($element['field']) && !isset($element['fields'])) { $element['fields'] = array($element['field']); unset($element['field']); } ?> <div class="form-group"> <?php if (isset($element['message']) && $element['message'] || isset($element['warning']) && isset($element['warning'])) { ?> <div class="text-center"> <?php if (isset($element['message'])) { ?> <?php echo $element['message']; ?> <?php } else { if (isset($element['warning'])) { ?> <span class="error_text"><?php echo $element['warning']; ?> </span> <?php } } ?> </div> <?php } else { ?> <div class="input-group<?php echo !isset($element['title']) ? '-notitle' : ''; ?> "> <?php if (isset($element['title'])) { ?> <span class="input-group-addon table-row-title"><span class="<?php echo isset($element['row_title_class']) ? $element['row_title_class'] : $options['row_title_class']; ?> "><?php echo htmlspecialchars(_l($element['title'])); ?> </span></span> <?php } if (isset($element['fields'])) { ?> <?php if (is_array($element['fields'])) { // if there is only one element we put it up in the form-control so that it displays nicely. // if there are more than one elements we wrap them in a div form-control. $do_wrap = true; if (count($element['fields']) == 1) { $field = current($element['fields']); if (is_array($field) && $field['type'] != 'wysiwyg' && $field['type'] != 'check' && $field['type'] != 'checkbox') { $do_wrap = false; $currency = false; if ($field['type'] == 'currency') { $field['type'] = 'text'; $currency = true; //$field['class'] = (isset($field['class']) ? $field['class'] : '') .' currency '; } $field['class'] = (isset($field['class']) ? $field['class'] : '') . ' form-control ' . (isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']); $help_text = false; if (isset($field['help'])) { // we put the help element outside in its own <span class="input-group-addon"></span> // don't let the generatE_form_element produce it. $help_text = $field['help']; unset($field['help']); } module_form::generate_form_element($field); if ($currency) { ?> <span class="input-group-addon"><?php echo currency('', true, isset($field['currency_id']) ? $field['currency_id'] : false); ?> </span> <?php } if ($help_text) { ?> <span class="input-group-addon"><?php _h($help_text); ?> </span> <?php } } } if ($do_wrap) { ?> <div class="form-control<?php echo !isset($element['title']) ? '-notitle' : ''; ?> <?php echo isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']; ?> "> <?php $help_text = false; foreach ($element['fields'] as $dataid => $field) { if (is_array($field) && isset($field['help'])) { // this element has a help text. if ($help_text) { // already a help text (shouldn't happen, ditch it.. and display multiple as normal) $help_text = false; break; } else { $help_text = $field['help']; } } } foreach ($element['fields'] as $dataid => $field) { if (is_array($field)) { if (isset($field['help']) && $help_text) { unset($field['help']); } // treat this as a call to the form generate option module_form::generate_form_element($field); echo ' '; } else { if (is_closure($field)) { $field(); } else { echo $field . ' '; } } } ?> </div> <?php if ($help_text) { ?> <span class="input-group-addon"><?php _h($help_text); ?> </span> <?php } } } else { ?> <div class="form-control <?php echo isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']; ?> "> <?php echo $element['fields']; ?> </div> <?php } ?> <?php } // fields ?> </div> <!-- /.input-group --> <?php } //else ?> </div> <!-- /.form-group --> <?php } if (class_exists('module_extra') && module_extra::is_plugin_enabled() && $options['extra_settings']) { module_extra::display_extras($options['extra_settings']); } ?> </div> <!-- /.elements --> <?php } else { if (module_theme::get_config('adminlte_formstyle', 'table') == 'long') { ?> <div class="<?php echo $options['class']; ?> "> <?php foreach ($options['elements'] as $element) { if (isset($element['ignore']) && $element['ignore']) { continue; } if (isset($element['field']) && !isset($element['fields'])) { $element['fields'] = array($element['field']); unset($element['field']); } ?> <div class="form-group form-group-long"> <?php if (isset($element['message']) && $element['message'] || isset($element['warning']) && isset($element['warning'])) { ?> <div class="text-center"> <?php if (isset($element['message'])) { ?> <?php echo $element['message']; ?> <?php } else { if (isset($element['warning'])) { ?> <span class="error_text"><?php echo $element['warning']; ?> </span> <?php } } ?> </div> <?php } else { ?> <?php if (isset($element['title'])) { ?> <label class="<?php echo isset($element['row_title_class']) ? $element['row_title_class'] : $options['row_title_class']; ?> "><?php echo htmlspecialchars(_l($element['title'])); ?> </label> <?php } if (isset($element['fields'])) { ?> <?php if (is_array($element['fields'])) { foreach ($element['fields'] as $dataid => $field) { if (is_array($field)) { // treat this as a call to the form generate option $field['class'] = (isset($field['class']) ? $field['class'] : '') . ' ' . (isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']); switch ($field['type']) { case 'check': case 'checkbox': case 'wysiwyg': break; default: $field['class'] .= ' form-control '; } module_form::generate_form_element($field); echo ' '; } else { if (is_closure($field)) { $field(); } else { echo $field . ' '; } } } } else { ?> <div class="form-control <?php echo isset($element['row_data_class']) ? $element['row_data_class'] : $options['row_data_class']; ?> "> <?php echo $element['fields']; ?> </div> <?php } ?> <?php } // fields ?> <?php } //else ?> </div> <!-- /.form-group --> <?php } if (class_exists('module_extra') && module_extra::is_plugin_enabled() && $options['extra_settings']) { module_extra::display_extras($options['extra_settings']); } ?> </div> <!-- /.elements --> <?php } } } // end div layout } echo $options['elements_after']; ?> <!-- /.block --> </div> </div> <?php return ob_get_clean(); }
public function print_table() { $this->process_data(); $colspan = 0; if (!$this->inline_table) { ?> <div class="box <?php echo module_theme::get_config('adminlte_boxstyle', 'box-solid'); ?> "> <?php /*if($this->pagination){ ?> <div class="box-header clearfix"> <div class="row"><div class="col-xs-6"> </div><div class="col-xs-6 text-right"> <?php echo $this->rows['summary']; ?> </div></div> </div> <?php }*/ ?> <div class="box-body table-responsive <?php echo module_theme::get_config('adminlte_tablefullwidth', 1) ? 'no-padding' : ''; ?> "> <?php } ?> <table class="<?php echo $this->table_class; echo module_theme::get_config('adminlte_tablestripe', '1') ? ' table-striped' : ''; echo module_theme::get_config('adminlte_tableborder', '0') ? ' table-bordered' : ''; ?> "<?php echo $this->table_id ? ' id="' . $this->table_id . '"' : ''; ?> > <thead> <tr class="title"> <?php foreach ($this->columns as $column_id => $column_data) { $title = is_array($column_data) ? $column_data['title'] : $column_data; $colspan++; ?> <th id="<?php echo $column_id; ?> "><?php echo _l($title); ?> </th> <?php } if (class_exists('module_extra', false) && count($this->extra_fields)) { foreach ($this->extra_fields as $extra_field) { $colspan += module_extra::print_table_header($extra_field['type']); } } if (class_exists('module_subscription', false) && count($this->subscription_fields)) { foreach ($this->subscription_fields as $extra_field) { module_subscription::print_table_header($extra_field['type']); $colspan++; } } ?> </tr> </thead> <?php if (count($this->header_rows)) { ?> <thead class="summary"> <?php foreach ($this->header_rows as $row) { $this->print_footer_row($row); } ?> </thead> <?php } ?> <tbody> <?php if (!count($this->rows['rows'])) { if ($this->blank_message) { ?> <tr> <td colspan="<?php echo $colspan; ?> " class="blank_message" style="text-align: center"><?php _e($this->blank_message); ?> </td> </tr> <?php } } else { foreach ($this->rows['rows'] as $row) { $this->print_row($row); } } ?> </tbody> <?php if (count($this->footer_rows)) { ?> <tfoot class="summary"> <?php foreach ($this->footer_rows as $row) { $this->print_footer_row($row); } ?> </tfoot> <?php } ?> </table> <?php if (!$this->inline_table) { ?> </div> <?php } if ($this->pagination && (!$this->pagination_hide_single_page || $this->pagination_hide_single_page && $this->rows['page_numbers'] > 1)) { ?> <div class="box-footer clearfix"> <div class="row"><div class="col-xs-6"> <?php // regex and change the default pagination html output to something nicer, default is: /* <div class="pagination_links"><span> « Prev | </span> <span><a href="/ucm/demo/customer.customer_admin_list/?leads=1&pgtable=0#t_table" rel="0" class="current">1</a></span> <span><a href="/ucm/demo/customer.customer_admin_list/?leads=1&pgtable=1#t_table" rel="1" class="">2</a></span> <span><a href="/ucm/demo/customer.customer_admin_list/?leads=1&pgtable=2#t_table" rel="2" class="">3</a></span> <span><a href="/ucm/demo/customer.customer_admin_list/?leads=1&pgtable=3#t_table" rel="3" class="">4</a></span> | <span><a href="/ucm/demo/customer.customer_admin_list/?leads=1&pgtable=1#t_table" rel="1">Next »</a><span> </span></span></div> */ $this->rows['links'] = str_replace('<div class="pagination_links">', '<div class="pagination_links paging_bootstrap pagination-sm no-margin"><ul class="pagination pagination-sm">', $this->rows['links']); $this->rows['links'] = str_replace('</div>', '</ul></div>', $this->rows['links']); //$this->rows['links'] = str_replace('pagination_links','pagination_links paging_bootstrap',$this->rows['links']); $this->rows['links'] = str_replace('|', '', $this->rows['links']); $this->rows['links'] = str_replace('...', '<li class="disabled"><a href="#">...</a></li>', $this->rows['links']); if (preg_match_all('#<span>(.*)</span>#imsU', $this->rows['links'], $matches)) { foreach ($matches[0] as $key => $val) { $li_class = strpos($val, 'current') ? 'active' : ''; if (strpos($matches[1][$key], '<a') === false) { $li_class = 'disabled'; $matches[1][$key] = '<a href="#">' . $matches[1][$key] . '</a>'; } $this->rows['links'] = str_replace($val, '<li class="' . $li_class . '">' . $matches[1][$key] . '</li>', $this->rows['links']); } } echo $this->rows['links']; ?> </div><div class="col-xs-6 text-right"> <?php echo $this->rows['summary']; ?> </div></div> </div> <?php } if (!$this->inline_table) { ?> </div> <?php } }
} $link_nest = $menu_allow_nesting; if (isset($link['allow_nesting'])) { $link_nest = $link['allow_nesting']; } $link_url = generate_link($link['p'], isset($link['args']) ? $link['args'] : array(), $link['m'], $menu_include_parent, $link_nest); } else { $link_url = '#'; } } if ($current) { $current_selected_link = $link; } // reformat out menu labels // $link['name'] = str_replace('menu_label','badge',$link['name']); $badge_color = module_theme::get_config('adminlte_badgecolor', 'bg-light-blue'); $link['name'] = str_replace('menu_label', 'badge ' . $badge_color . ($menu_holder == 'main' ? ' pull-right' : ''), $link['name']); $link['name'] = str_replace($badge_color . ' pull-right important', 'pull-right bg-red' . ($menu_holder == 'main' ? ' pull-right' : ''), $link['name']); // add class panel if having a dropdown ob_start(); ?> <li class="<?php if ($current) { echo ' active'; } ?> "> <a href="<?php echo $link_url; ?> "><?php
* IP Address: 67.79.165.254 */ $styles = array(); /* #wrap { background-color: #333; }*/ $styles['#wrap,#menu'] = array('d' => 'Background', 'v' => array('background-color' => '#333')); /*.navbar-inverse { background-color: #222;*/ $styles['.navbar-inverse'] = array('d' => 'Header Color', 'v' => array('background-color' => '#222')); /* #top > .navbar { border-top: 3px solid #4a5b7d; }*/ $styles['.inner'] = array('d' => 'Header Top Border', 'v' => array('border-top' => '3px solid #4a5b7d')); /*.user-media { display: none; background-color: #444444; }*/ $styles['.user-media'] = array('d' => 'Sidebar Welcome', 'v' => array('background-color' => '#444444')); /* .outer { padding: 10px; background-color: #6e6e6e; }*/ $styles['.outer'] = array('d' => 'Content Outer Border', 'v' => array('background-color' => '#6e6e6e')); $styles['.inner'] = array('d' => 'Content Inner Border', 'v' => array('border-color' => '#e4e4e4')); $styles['#menu > li > a'] = array('d' => 'Menu', 'v' => array('color' => '#ccc', 'border-top' => '1px solid rgba(0, 0, 0, 0.3)', 'text-shadow' => '0 1px 0 rgba(0, 0, 0, 0.5)')); $styles['sidebar-position'] = array('d' => 'other-settings', 'elements' => array(array('title' => 'Sidebar Position', 'field' => array('type' => 'select', 'name' => 'config[_theme_metissidebar-position]', 'options' => array('left' => _l('Left'), 'right' => _l('Right')), 'value' => module_theme::get_config('metissidebar-position', 'left'))), array('title' => 'Page Width', 'field' => array('type' => 'select', 'name' => 'config[_theme_metispagewidth]', 'options' => array('wide' => _l('Wide Fluid'), 'narrow' => _l('Narrow Fixed')), 'value' => module_theme::get_config('metispagewidth', 'wide'))), array('title' => 'Menu Style', 'field' => array('type' => 'select', 'name' => 'config[_theme_metismenustyle]', 'options' => array('fixed' => _l('Fixed on Scroll'), 'normal' => _l('Normal')), 'value' => module_theme::get_config('metismenustyle', 'normal')))));