public function setTabs() { $this->tabs = array(); if ( $this->showConfigurationTabs() ) { $this->tabs['general'] = __( 'General Settings', 'js_composer' ); } if ( ! vc_is_as_theme() && $this->showConfigurationTabs() ) { $this->tabs['color'] = __( 'Design Options', 'js_composer' ); // $this->tabs['element_css'] = __('Element Class Names', 'js_composer'); $this->tabs['custom_css'] = __( 'Custom CSS', 'js_composer' ); } if ( ! vc_is_network_plugin() || ( vc_is_network_plugin() && is_network_admin() ) ) { if ( ! vc_is_updater_disabled() ) $this->tabs['updater'] = __( 'Product License', 'js_composer' ); } // TODO: may allow to disable automapper if ( ! vc_automapper_is_disabled() ) { $this->tabs['automapper'] = vc_automapper()->title(); } }
public function setTabs() { $this->tabs = array(); if ($this->showConfigurationTabs()) { $this->tabs['general'] = __('General Settings', LANGUAGE_ZONE); } if ($this->composer->isPlugin() && !$this->composer->settingsAsTheme() && $this->showConfigurationTabs()) { $this->tabs['color'] = __('Design Options', LANGUAGE_ZONE); // $this->tabs['element_css'] = __('Element Class Names', LANGUAGE_ZONE); $this->tabs['custom_css'] = __('Custom CSS', LANGUAGE_ZONE); } if (!$this->composer->isNetworkPlugin() || $this->composer->isNetworkPlugin() && is_network_admin()) { if (!$this->composer->updaterDisabled()) { $this->tabs['updater'] = __('Product License', LANGUAGE_ZONE); } } // TODO: may allow to disable automapper if (!vc_automapper_is_disabled()) { $this->tabs['automapper'] = vc_automapper()->title(); } }
/** * */ public function setTabs() { $this->tabs = array(); if ($this->showConfigurationTabs()) { $this->tabs['vc-general'] = __('General Settings', 'js_composer'); if (!vc_is_as_theme() && apply_filters('vc_settings_page_show_design_tabs', true)) { $this->tabs['vc-color'] = __('Design Options', 'js_composer'); $this->tabs['vc-custom_css'] = __('Custom CSS', 'js_composer'); } } if (!vc_is_network_plugin() || vc_is_network_plugin() && is_network_admin()) { if (!vc_is_updater_disabled()) { $this->tabs['vc-updater'] = __('Product License', 'js_composer'); } } // TODO: may allow to disable automapper if (!is_network_admin() && !vc_automapper_is_disabled()) { $this->tabs['vc-automapper'] = vc_automapper()->title(); } }