function __construct() { $this->options = get_option(XF_OPTIONS); //no longer using direct XF_BLOG_ID $this->dir = XF_ABS_OUTPUT_DIR_THEME_BASED; $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.min' : ''; $this->stylesheets[] = '/yaml/core/base' . $suffix . '.css'; //no longer using direct XF_BLOG_ID $this->stylesheets[] = XF_REL_OUTPUT_DIR_THEME_BASED . '/xtreme_basemod.css'; if ((int) $this->options['xc_navigation']['primary_position']['value'] !== 0) { $primary = '/css/navigation/' . esc_attr($this->options['xc_navigation']['primary_stylesheet']['value'] . '.css'); } if ((int) $this->options['xc_navigation']['secondary_position']['value'] !== 0) { $secondary = '/css/navigation/' . esc_attr($this->options['xc_navigation']['secondary_stylesheet']['value'] . '.css'); } if (isset($primary) && !isset($secondary)) { $this->stylesheets[] = $primary; } if (isset($secondary) && !isset($primary)) { $this->stylesheets[] = $secondary; } if (isset($primary) && isset($secondary) && $primary === $secondary) { $this->stylesheets[] = $primary; } if (isset($primary) && isset($secondary) && $primary !== $secondary) { $this->stylesheets[] = $primary; $this->stylesheets[] = $secondary; } if (true === $this->options['xc_general']['nav_vlist']['value']) { $this->stylesheets[] = '/yaml/navigation/vlist.css'; } $this->stylesheets[] = '/css/screen/layout.css'; $this->stylesheets = apply_filters('xtreme_after_layout_css', $this->stylesheets, 10, 2); $this->stylesheets[] = '/css/forms/gray-theme.css'; $this->stylesheets[] = '/css/screen/content.css'; $this->stylesheets = apply_filters('xtreme_after_content_css', $this->stylesheets, 10, 2); $this->stylesheets[] = '/css/screen/theme.css'; $this->stylesheets = apply_filters('after_theme_css', $this->stylesheets, 10, 2); if (XF_LOW_BARRIER_CSS_EXISTS) { $this->stylesheets[] = '/css/screen/low-barrier.css'; } if (xtreme_is_layout_2()) { $this->stylesheets[] = '/css/print/print_100.css'; } else { $this->stylesheets[] = '/css/print/print_003.css'; } if (xtreme_is_responsive()) { // parent theme css-file $this->stylesheets[] = '/css/screen/responsive.css'; // adding child theme css-file if exists $file = '/css/screen/theme.responsive.css'; if (file_exists(XF_CHILD_THEME_DIR . $file)) { $this->stylesheets[] = $file; } } }
function __construct(&$owner) { parent::__construct($owner, get_class($this), __('New Layout Settings', XF_TEXTDOMAIN)); $this->options[] = new xtreme_option_textfield($this, false, 'nicename', __('Name of the Layout:', XF_TEXTDOMAIN), 'new Layout', 'new Layout'); $this->options[] = new xtreme_option_select_pair($this, false, 'columnlayout', __('Layout:', XF_TEXTDOMAIN), 1, array(__('1 column', XF_TEXTDOMAIN), __('2 columns - right sidebar', XF_TEXTDOMAIN), __('2 columns - left sidebar', XF_TEXTDOMAIN), __('3 columns - left and right sidebars', XF_TEXTDOMAIN), __('3 columns - 2 right sidebars', XF_TEXTDOMAIN), __('3 columns - 2 left sidebars', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_description($this, false, 'col2tip', '<em>' . __('In this case width of Sidebar 1 and width of Sidebar 2 must have the same units!', XF_TEXTDOMAIN) . '</em>'); //wir brauchen den layoutwert $this->options[] = new xtreme_option_hidden($this, false, 'is_layout_2', '', (int) xtreme_is_layout_2()); //altes Layout $measures = $this->owner->get_measures(); $this->options[] = new xtreme_option_numeric($this, false, 'col1width', __('Sidebar 1 Width:', XF_TEXTDOMAIN), 25, '%', $measures, array('px' => array(80, 500), 'em' => array(5, 50), '%' => array(5, 50)), false, false); $this->options[] = new xtreme_option_numeric($this, false, 'col2width', __('Sidebar 2 Width:', XF_TEXTDOMAIN), 25, '%', $measures, array('px' => array(80, 500), 'em' => array(5, 50), '%' => array(5, 50)), false, false); $this->options[] = new xtreme_option_locate_files($this, false, 'col1content', __('File Sidebar 1:', XF_TEXTDOMAIN), 'sidebar-one', '/includes/sidebars/', 'php', false); $this->options[] = new xtreme_option_locate_files($this, false, 'col2content', __('File Sidebar 2:', XF_TEXTDOMAIN), 'sidebar-two', '/includes/sidebars/', 'php', false); $this->options[] = new xtreme_option_select_pair($this, false, 'col1txtalign', __('Sidebar 1 Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_select_pair($this, false, 'col2txtalign', __('Sidebar 2 Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_select_pair($this, false, 'col3txtalign', __('Content Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); //neues Layout $this->options[] = new xtreme_option_numeric($this, false, 'layout_2_col1width', __('Content Width:', XF_TEXTDOMAIN), 75, '%', $measures, array('px' => array(100, 1600), '%' => array(5, 100)), false, false); $this->options[] = new xtreme_option_numeric($this, false, 'layout_2_col2width', __('Sidebar 2 Width:', XF_TEXTDOMAIN), 25, '%', $measures, array('px' => array(80, 500), '%' => array(5, 50)), false, false); $this->options[] = new xtreme_option_locate_files($this, false, 'layout_2_col3content', __('File Sidebar 1:', XF_TEXTDOMAIN), 'sidebar-one', '/includes/sidebars/', 'php', false); $this->options[] = new xtreme_option_locate_files($this, false, 'layout_2_col2content', __('File Sidebar 2:', XF_TEXTDOMAIN), 'sidebar-two', '/includes/sidebars/', 'php', false); $this->options[] = new xtreme_option_select_pair($this, false, 'layout_2_col3txtalign', __('Sidebar 1 Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_select_pair($this, false, 'layout_2_col2txtalign', __('Sidebar 2 Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_select_pair($this, false, 'layout_2_col1txtalign', __('Content Textalignment:', XF_TEXTDOMAIN), 0, array(__('left', XF_TEXTDOMAIN), __('center', XF_TEXTDOMAIN), __('right', XF_TEXTDOMAIN))); $this->options[] = new xtreme_option_bool($this, false, 'use_header', __('Use Header:', XF_TEXTDOMAIN), true); $this->options[] = new xtreme_option_bool($this, false, 'use_teaser', __('Use Teaser:', XF_TEXTDOMAIN), false); $this->options[] = new xtreme_option_bool($this, false, 'use_footer', __('Use Footer:', XF_TEXTDOMAIN), false); $this->options[] = new xtreme_option_bool($this, false, 'use_siteinfo', __('Use Siteinfo:', XF_TEXTDOMAIN), true); $sanitized = sanitize_title('Default'); $name = 'xf_layout-' . str_replace(' ', '-', strtolower($sanitized)); $this->options[] = new xtreme_option_hidden($this, false, 'layoutname', '', $name); $this->options[] = new xtreme_option_hidden($this, false, 'description', '', __('2 columns - right sidebar', XF_TEXTDOMAIN)); $classes = xtreme_classes_array(); $this->options[] = new xtreme_option_hidden($this, false, 'mainclass', '', $classes[1]); $this->options[] = new xtreme_option_description($this, false, 'desc_row_1', '<strong>' . __('Apply these Template Files to the New Layout:', XF_TEXTDOMAIN) . '</strong>'); $files = xtreme_load_templates(); foreach ($files as $file => $value) { $this->options[] = new xtreme_option_bool($this, false, substr($value['metavalue'], 0, -4), $value['Name'], false); } $this->options[] = new xtreme_option_hidden($this, false, 'mode', '', 'add'); }
function _xtreme_column($col, $tpl) { $el = 'div'; $layout = xtreme_get_layout_class($tpl); $current = get_option(XF_LAYOUTS); $options = get_option(XF_OPTIONS); $identify_col = str_replace('ym-', '', $col); if (!xtreme_is_layout_2()) { $sb = isset($current[$layout][$identify_col . 'content']) ? $current[$layout][$identify_col . 'content']['value'] . '.php' : 'sidebar-one.php'; $action_top = 'xtreme_' . $identify_col . '_top'; $action_bottom = 'xtreme_' . $identify_col . '_bottom'; } else { $sb = isset($current[$layout]['layout_2_' . $identify_col . 'content']) ? $current[$layout]['layout_2_' . $identify_col . 'content']['value'] . '.php' : 'sidebar-one.php'; $action_top = 'xtreme_layout2_' . $identify_col . '_top'; $action_bottom = 'xtreme_layout2_' . $identify_col . '_bottom'; } if (xtreme_is_html5()) { $el = $options['xc_layout']['html5_tag']['value']; } echo '<' . $el . ' class="' . $col . '" ' . xtreme_aria_required('complementary', false) . '>'; echo '<div class="' . $col . '_content ym-clearfix">'; do_action($action_top); $located = ''; foreach (array($sb) as $file) { if (file_exists(XF_CHILD_THEME_DIR . '/includes/sidebars/' . $file)) { $located = XF_CHILD_THEME_DIR . '/includes/sidebars/' . $file; break; } elseif (file_exists(XF_THEME_DIR . '/includes/sidebars/' . $file)) { $located = XF_THEME_DIR . '/includes/sidebars/' . $file; break; } else { $located = XF_THEME_DIR . '/includes/sidebars/sidebar-one.php'; } } include $located; do_action($action_bottom); if ($col === 'ym-col3') { echo " </div>"; echo " <div class='ym-ie-clearing'> </div>"; echo '</' . $el . '>'; } else { echo '</div></' . $el . '>'; } }
function _calculate_columns($data, $name) { $this->content = ""; $this->selector = " * html ." . $name . " #main"; $this->is_layout2 = xtreme_is_layout_2(); switch ($data['columnlayout']['value']) { // 1column case 0: if ($this->is_layout2) { $this->content .= $this->selector . " .ym-col1{ margin-right: 0; margin-left: 0; }\n"; } else { $this->content .= $this->selector . " .ym-col3 { margin-right: 0; margin-left: 0; }\n"; } break; // 2columns right // 2columns right case 1: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] - 3 . $data['layout_2_col1width']['unit']; $this->content .= $this->selector . " .ym-col1{ margin-right: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-left: " . $col1_width . "}\n"; } else { $col1_width = $data['col1width']['value'] - 3 . $data['col1width']['unit']; $this->content .= $this->selector . " .ym-col1{ margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-right: " . $col1_width . "}\n"; } break; // 2columns left // 2columns left case 2: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] - 3 . $data['layout_2_col1width']['unit']; $this->content .= $this->selector . " .ym-col1{ margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-right: " . $col1_width . "; }\n"; } else { $col1_width = $data['col1width']['value'] - 3 . $data['col1width']['unit']; $this->content .= $this->selector . " .ym-col1{ margin-right: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-left: " . $col1_width . "; }\n"; } break; // 3columns left/right // 3columns left/right case 3: if ($this->is_layout2) { $this->content .= ""; } else { $col1_width = $data['col1width']['value'] - 3 . $data['col1width']['unit']; $col2_width = $data['col2width']['value'] - 3 . $data['col2width']['unit']; $this->content .= $this->selector . " .ym-col1{ margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col2 { margin-right: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-right: " . $col1_width . "; margin-left: " . $col2_width . "; }\n"; } break; // 3columns right/right // 3columns right/right case 4: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] - 3; $col2_width = $data['layout_2_col2width']['value']; $this->content .= $this->selector . " .ym-col2 { margin-right: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-left: " . ($col1_width + $col2_width) . $data['layout_2_col1width']['unit'] . "; }\n"; } else { $col1_width = $data['col1width']['value'] - 3; $col2_width = $data['col2width']['value'] - 3; $this->content .= $this->selector . " .ym-col1{ margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col2 { margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-right: " . ($col1_width + $col2_width) . $data['col1width']['unit'] . "; }\n"; } break; // 3columns left/left // 3columns left/left case 5: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] - 3; $col2_width = $data['layout_2_col2width']['value']; $this->content .= $this->selector . " .ym-col2 { margin-left: -3px; }\n"; $this->content .= $this->selector . " .ym-col3 { margin-right: " . ($col1_width + $col2_width) . $data['layout_2_col1width']['unit'] . "; }\n"; } else { $col1_width = $data['col1width']['value']; $col2_width = $data['col2width']['value']; $this->content .= $this->selector . " .ym-col1{ margin-right: -3px }\n"; $this->content .= $this->selector . " .ym-col2 { margin-right: -3px }\n"; $this->content .= $this->selector . " .ym-col3 { margin-left: " . ($col1_width + $col2_width) . $data['col1width']['unit'] . "; }\n"; } break; } return $this->content; }
function _calculate_columns($data, $name) { $this->content = ""; $this->selector = "." . $name . " #main"; $this->textalign = array('left', 'center', 'right'); $this->is_layout2 = xtreme_is_layout_2(); switch ($data['columnlayout']['value']) { // 1column case 0: if ($this->is_layout2) { $this->content .= "\t" . $this->selector . " .ym-col1{ margin-right: 0; margin-left: 0; width: 100%;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; } else { $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: 0; margin-left: 0; width: 100%;"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; // 2columns right // 2columns right case 1: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] . $data['layout_2_col1width']['unit']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-left: " . $col1_width . "; margin-right: 0;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col3txtalign']['value']] . " }\n"; } else { $col1_width = $data['col1width']['value'] . $data['col1width']['unit']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: right;"; $this->content .= " text-align: " . $this->textalign[$data['col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: " . $col1_width . "; margin-left: 0;"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; // 2columns left // 2columns left case 2: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] . $data['layout_2_col1width']['unit']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: right;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-left: 0; margin-right: " . $col1_width . ";"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col3txtalign']['value']] . " }\n"; } else { $col1_width = $data['col1width']['value'] . $data['col1width']['unit']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: 0; margin-left: " . $col1_width . ";"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; // 3columns left/right //Scheiße, was solls. wir lassen nur % zu, da gibt es keine Probleme // 3columns left/right //Scheiße, was solls. wir lassen nur % zu, da gibt es keine Probleme case 3: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value'] . $data['layout_2_col1width']['unit']; $col2_width = $data['layout_2_col2width']['value'] . $data['layout_2_col2width']['unit']; $neg_margin = $data['layout_2_col1width']['value'] + $data['layout_2_col2width']['value'] . $data['layout_2_col1width']['unit']; //fixed layout // ACHTUNG!!! das padding von (ehemals) yamlpage muß auch noch berücksichtigt werden, wir haben aber keinen wert. //if( (int) $this->options['xc_general']['layout']['value'] === 0) { //$full = $this->options['xc_general']['width']['value']; //$width = $full-$data['layout_2_col1width']['value']-$data['layout_2_col2width']['value']."px"; //} else { //flexible layout $width = 100 - $data['layout_2_col1width']['value'] - $data['layout_2_col2width']['value'] . "%"; //} $this->content .= "\t" . $this->selector . " { width: 100%; float: left }\n"; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: left; margin-left: " . $col2_width . ";"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . "; float: left; margin-left: -" . $neg_margin . ";"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 {float:right; width: " . $width . ";margin-right: 0; margin-left: -5px;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col3txtalign']['value']] . " }\n"; } else { $col1_width = $data['col1width']['value'] . $data['col1width']['unit']; $col2_width = $data['col2width']['value'] . $data['col2width']['unit']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . "; float: right;"; $this->content .= " text-align: " . $this->textalign[$data['col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . "; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: " . $col1_width . "; margin-left: " . $col2_width . ";"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; // 3columns right/right // 3columns right/right case 4: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value']; $col2_width = $data['layout_2_col2width']['value']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . $data['layout_2_col1width']['unit'] . "; margin: 0; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . $data['layout_2_col2width']['unit'] . "; float: left; margin: 0;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-left: " . ($col1_width + $col2_width) . $data['layout_2_col1width']['unit'] . "; margin-right: 0;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col3txtalign']['value']] . " }\n"; } else { $col1_width = $data['col1width']['value']; $col2_width = $data['col2width']['value']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . $data['col1width']['unit'] . "; float: right;"; $this->content .= " text-align: " . $this->textalign[$data['col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . $data['col2width']['unit'] . "; float: right;"; $this->content .= " text-align: " . $this->textalign[$data['col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: " . ($col1_width + $col2_width) . $data['col1width']['unit'] . "; margin-left: 0;"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; // 3columns left/left // 3columns left/left case 5: if ($this->is_layout2) { $col1_width = $data['layout_2_col1width']['value']; $col2_width = $data['layout_2_col2width']['value']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . $data['layout_2_col1width']['unit'] . "; float: right; margin: 0;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . $data['layout_2_col2width']['unit'] . "; float: right; margin: 0;"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-left: 0; margin-right: " . ($col1_width + $col2_width) . $data['layout_2_col1width']['unit'] . ";"; $this->content .= " text-align: " . $this->textalign[$data['layout_2_col3txtalign']['value']] . " }\n"; } else { $col1_width = $data['col1width']['value']; $col2_width = $data['col2width']['value']; $this->content .= "\t" . $this->selector . " .ym-col1{ width: " . $col1_width . $data['col1width']['unit'] . "; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['col1txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col2 { width: " . $col2_width . $data['col2width']['unit'] . "; float: left;"; $this->content .= " text-align: " . $this->textalign[$data['col2txtalign']['value']] . " }\n"; $this->content .= "\t" . $this->selector . " .ym-col3 { margin-right: 0; margin-left: " . ($col1_width + $col2_width) . $data['col1width']['unit'] . ";"; $this->content .= " text-align: " . $this->textalign[$data['col3txtalign']['value']] . " }\n"; } break; } return $this->content; }
function save_default_layout() { $this->layouts = get_option(XF_LAYOUTS); $this->options = get_option(XF_OPTIONS); $this->desc = xtreme_description_array(); $this->classes = xtreme_classes_array(); $this->layoutmode = (int) xtreme_is_layout_2(); $default = $this->options['xc_layout']; $this->layouts['xf_layout-default'] = $default; $this->layouts['xf_layout-default']['description']['value'] = $this->desc[$this->options['xc_layout']['columnlayout']['value']]; $this->layouts['xf_layout-default']['mainclass']['value'] = $this->classes[$this->options['xc_layout']['columnlayout']['value']]; $this->layouts['xf_layout-default']['is_layout_2']['value'] = $this->layoutmode; update_option(XF_LAYOUTS, $this->layouts); }