function comments_system() { // Force this plugin to operate only with the following scripts $this->scripts_array = array(FILENAME_GENERIC_PAGES, FILENAME_COLLECTIONS); $this->form_box = 'process_comments_system'; $this->storage = array('css_buttons' => array(), 'visible_button' => '', 'process' => false); $this->entry_result = array(); $this->max_buttons = 50; $this->form_show = false; // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); // Load the plugin specific strings $strings_array = array('web_strings.php'); $this->strings = $this->load_strings($strings_array); // Load the plugin definitions files/tables tep_define_vars($this->fs_path . 'defs.php'); // Prepare and validate the comments templates, disable plugin on errors $this->comments_form = $this->fs_template_path . 'comments_form.tpl'; $this->comments_posted = $this->fs_template_path . 'comments_posted.tpl'; if (!is_file($this->comments_form) || !is_file($this->comments_posted)) { $this->change(false); } }
function admin_popup_image() { // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); }
function admin_direct_management() { $this->box = 'abstract_box'; // Call the parent to set operation path and activation conditions parent::plugins_base(); $this->options = $this->load_options(); $this->strings = tep_get_strings($this->admin_path . 'back/admin_strings.php'); }
function admin_download_system() { // Call the parent to set operation path and activation conditions parent::plugins_base(); $options = $this->load_options(); tep_define_vars($this->admin_path . 'back/admin_defs.php'); $this->strings = tep_get_strings($this->admin_path . 'back/admin_strings.php'); $this->main_script = FILENAME_DOWNLOAD; $this->scripts_array[] = $this->main_script; }
function admin_right_column() { $this->box = 'abstract_box'; // Call the parent to set operation path and activation conditions parent::plugins_base(); $options = $this->load_options(); tep_define_vars($this->admin_path . 'back/admin_defs.php'); $this->strings = tep_get_strings($this->admin_path . 'back/admin_strings.php'); $this->scripts_array = array(FILENAME_RIGHT_CONTENT, FILENAME_DEFAULT); }
function text_gradient() { global $g_script; parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); if (!$this->options['front_all'] && !isset($this->options['front_scripts'][$g_script])) { $this->change(false); } }
function popup_image() { // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); $launcher = $this->web_path . 'launcher.tpl'; if (!file_exists($launcher)) { $this->change(false); } }
function left_column() { // Call the parent to set operation path and activation conditions parent::plugins_base(); $this->options = $this->load_options(); $this->strings = tep_get_strings($this->web_template_path . 'web_strings.php'); $this->box_text = $this->web_template_path . 'left_text.tpl'; $this->box_collection = $this->web_template_path . 'left_collection.tpl'; if (!file_exists($this->box_text) || !file_exists($this->box_collection)) { $this->change(false); } }
function direct_management() { $this->admin = false; // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); // Load the plugin strings $this->strings = tep_get_strings($this->fs_path . 'web_strings.php'); $this->direct_management_form = $this->fs_path . 'direct_management.tpl'; if (!is_file($this->direct_management_form)) { $this->change(false); } }
function right_column() { // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load the plugin options $this->options = $this->load_options(); // Load the plugin strings $strings_array = array('web_strings.php'); $this->strings = $this->load_strings($strings_array); // Load the database tables for the box content tep_define_vars($this->fs_path . 'defs.php'); // Check the templates if the files are not present disable the plugin $this->box_right = $this->fs_template_path . 'right_box.tpl'; $this->box_text = $this->fs_template_path . 'right_text.tpl'; $this->box_collection = $this->fs_template_path . 'right_collection.tpl'; if (!is_file($this->box_text) || !is_file($this->box_collection) || !is_file($this->box_right)) { $this->change(false); } }
function voting_system() { // Force this plugin to operate only with the following scripts $this->scripts_array = array(FILENAME_GENERIC_PAGES, FILENAME_COLLECTIONS); // The form name $this->form_box = 'process_voting_system_box'; // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load plugin configuration settings $this->options = $this->load_options(); // Load the plugin specific strings $strings_array = array('web_strings.php'); $this->strings = $this->load_strings($strings_array); tep_define_vars($this->fs_path . 'defs.php'); $this->votes_form = $this->fs_template_path . 'votes_form.tpl'; if (!is_file($this->votes_form)) { $this->change(false); } }
function download_system() { // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load the plugin options $this->options = $this->load_options(); // Load the plugin strings $this->strings = tep_get_strings($this->fs_template_path . 'web_strings.php'); // Load the database tables for the box content tep_define_vars($this->fs_path . 'tables.php'); // Check the templates if the files are not present disable the plugin $this->form_box = $this->fs_template_path . 'download_form.tpl'; $this->form_text = $this->fs_template_path . 'download_text.tpl'; if (!is_file($this->form_box) || !is_file($this->form_text)) { $this->change(false); } $this->form_name = 'process_download_system_box'; $this->download_entries = array(); }
function banner_system() { // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load the plugin options $this->options = $this->load_options(); // Load the plugin strings $strings_array = array('web_strings.php'); $this->strings = $this->load_strings($strings_array); //$this->strings = tep_get_strings($this->fs_template_path . 'web_strings.php'); // Load the database tables for the box content tep_define_vars($this->fs_path . 'defs.php'); $this->banners_array = $this->get_banners(); $this->banner_template = $this->fs_template_path . 'banner.tpl'; if (empty($this->banners_array)) { $this->change(false); } $this->group_array = array(); }
function newsletter_system() { $this->form_box = 'process_newsletter_system_box'; // Call the parent to set operation path and activation conditions parent::plugins_base(); // Load the plugin options $this->options = $this->load_options(); // Load the plugin strings // Load the plugin strings $strings_array = array('web_strings.php'); $this->strings = $this->load_strings($strings_array); //$this->strings = tep_get_strings($this->fs_template_path . 'web_strings.php'); // Load the database tables for the box content tep_define_vars($this->fs_path . 'tables.php'); // Check the templates if the files are not present disable the plugin $this->newsletter_form = $this->fs_template_path . 'newsletter_form.tpl'; if (!is_file($this->newsletter_form)) { $this->change(false); } }
function css_menu() { parent::plugins_base(); $this->options = $this->load_options(); $this->menu_template = $this->fs_template_path . 'css_menu.tpl'; }