function html_end() { extract(tep_load('defs', 'database')); // Setup help script - default js help is loaded by system_base $script_name = tep_get_script_name(); $contents = ''; $launcher = DIR_FS_PLUGINS . 'common_help.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $postfix = 'list'; switch ($cDefs->action) { case 'verify': $posfix = 'verify'; break; default: break; } $title = $this->get_system_help_title($postfix); $contents_array = array('POPUP_TITLE' => $title, 'POPUP_SELECTOR' => 'div.help_page a.heading_help'); // process js template $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs')); $contents = ''; $launcher = $this->web_path . 'launcher.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return $result; } $contents_array = array('BANNER_ATAG' => 'a.banner_system', 'BANNER_SEL' => '.banner_class', 'BASE_URL' => FILENAME_DEFAULT); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs')); $script_name = tep_get_script_name(); $contents = ''; $launcher = DIR_FS_PLUGINS . 'common_help.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $contents_array = array('POPUP_TITLE' => HEADING_HELP_TITLE, 'POPUP_SELECTOR' => 'div.help_page a.' . $script_name); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs')); // Setup help script - default js help is loaded by system_base $contents = ''; $launcher = DIR_FS_PLUGINS . 'common_help.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.heading_help'); // process js template $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs')); if (!$this->check_scripts()) { return false; } $contents = ''; $launcher = $this->admin_path . 'back/launcher.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.plugins_help'); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs')); $result = false; if ($this->options['back_all'] || isset($this->options['back_scripts'][$cDefs->script])) { $contents = ''; $launcher = $this->admin_path . 'launcher.tpl'; $result = tep_read_contents($launcher, $contents); if ($result) { if (isset($this->options['back_scripts'][$cDefs->script])) { } else { $selector = $this->options['back_common_selector']; } $contents_array = array('POPUP_IMAGE_SELECTOR' => $selector); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); } } return $result; }
function html_end() { extract(tep_load('defs', 'sessions')); $script_name = tep_get_script_name(); ob_start(); require PLUGINS_ADMIN_PREFIX . $script_name . '.tpl'; $contents = ob_get_contents(); ob_end_clean(); $cDefs->media[] = $contents; $contents = ''; $launcher = DIR_FS_PLUGINS . 'common_help.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $contents_array = array('POPUP_SELECTOR' => 'div.help_page a.heading_help', 'POPUP_TITLE' => ''); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { extract(tep_load('defs', 'database')); $contents = ''; $launcher = DIR_FS_PLUGINS . 'common_help.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $title = HEADING_HELP_TITLE; $gID = isset($_GET['gID']) ? (int) $_GET['gID'] : 0; $group_query = $db->query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int) $gID . "'"); if ($db->num_rows($group_query)) { $group_array = $db->fetch_array($group_query); $title .= ' - ' . $group_array['configuration_group_title']; } $contents_array = array('POPUP_TITLE' => $title, 'POPUP_SELECTOR' => 'div.help_page a.heading_help'); // process js template $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function html_end() { global $g_script, $g_media; $contents = ''; $launcher = $this->web_path . 'gradient/launcher.tpl'; $result = tep_read_contents($launcher, $contents); if ($result) { if (isset($this->options['front_scripts'][$g_script])) { $selector = $this->options['front_scripts'][$g_script]['selector']; $colors = $this->options['front_scripts'][$g_script]['colors']; $colors_array = explode('|', $colors); $contents_array = array('TEXT_GRADIENT_SELECTOR' => $selector, 'TEXT_GRADIENT_START' => $colors_array[0], 'TEXT_GRADIENT_END' => $colors_array[1]); $g_media[] = tep_templates_replace_entities($contents, $contents_array); } if ($this->options['front_all']) { $selector = $this->options['front_common_selector']; $colors = $this->options['front_common_colors']; $colors_array = explode('|', $colors); $contents_array = array('TEXT_GRADIENT_SELECTOR' => $selector, 'TEXT_GRADIENT_START' => $colors_array[0], 'TEXT_GRADIENT_END' => $colors_array[1]); $g_media[] = tep_templates_replace_entities($contents, $contents_array); } } return $result; }
function html_end() { extract(tep_load('defs', 'sessions')); if (!$this->check_scripts($this->scripts_array)) { return false; } $cStrings =& $this->strings; ob_start(); require $this->admin_path . 'back/jscripts.tpl'; $contents = ob_get_contents(); ob_end_clean(); $cDefs->media[] = $contents; $contents = ''; $launcher = $this->admin_path . 'back/launcher.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return false; } $script_name = tep_get_script_name(); $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.plugins_help'); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }
function get_super_css_tree($zones_array) { $final_string = "\n"; $index = 0; $total = count($zones_array); $cAbstract = new abstract_front(); foreach ($zones_array as $id => $zone) { $index++; if (!$cAbstract->get_entries($id)) { continue; } $zone_data = $cAbstract->get_zone_data($id, true); if (empty($zone_data)) { continue; } $zone_class = $cAbstract->get_zone_class($id); $script = FILENAME_COLLECTIONS; switch ($zone_class) { case 'image_zones': $process_function = 'get_image_css_tree'; break; case 'super_zones': $process_function = 'get_mixed_css_tree'; break; default: $process_function = 'get_text_css_tree'; break; } $value2 = strtoupper($zone_data['abstract_zone_name']); $awidth = tep_string_length($value2) * 9 + 16; $value2 = htmlspecialchars(stripslashes($value2)); //$value2 = str_replace(' ', ' ', $value2 ); $final_string .= '<div class="css_top floater calign"><a href="' . tep_href_link($script, 'abz_id=' . $id) . '" style="width:' . $awidth . 'px">' . $value2 . '</a>' . "\n"; $tmp_drop = $this->options['max_drop']; $max_width = $this->options['max_width']; $tmp_array = $this->{$process_function}($id, $tmp_drop, $max_width); if (!empty($tmp_array)) { $extra_style = ' style="width: ' . $max_width . 'px"'; for ($i = 1, $width = 0; $i <= $this->options['max_cols']; $i++) { if ((int) ($tmp_drop / $i) <= $this->options['max_drop']) { break; } $width = $i; } if ($i > 1) { if ($width > $this->options['max_cols']) { $width = $this->options['max_cols']; } $extra_style = ' style="width: ' . $width * ($max_width + $this->options['border_width']) . 'px;"'; } if ($tmp_drop != $this->options['max_drop']) { $tmp_array = array_slice($tmp_array, 0, $this->options['max_drop'] * $this->options['max_cols']); $tmp_string = '<div class="css_sub hideflow"'; if ($i > 1) { $tmp_string .= ' style="width: ' . $max_width . 'px"'; } $tmp_string .= '><a href="' . tep_href_link($script, 'abz_id=' . $id) . '">' . TEXT_SEE_ALL . '</a></div>'; $tmp_array[] = $tmp_string; } $tmp_string = implode(' ', $tmp_array); $max_width_string = ''; if ($i > 1) { $max_width_string = ' style="width: ' . $max_width . 'px;"'; } $contents_array = array('MAX_WIDTH' => $max_width_string); $tmp_string = tep_templates_replace_entities($tmp_string, $contents_array); $final_string .= ' <div class="css_section"' . $extra_style . '>' . "\n" . $tmp_string . ' </div>' . "\n"; } $final_string .= '</div>' . "\n"; if ($index < $total) { $last_sep = ' <div class="css_sep hideflow">' . tep_image($this->web_template_path . 'words_space.gif') . '</div>' . "\n"; $final_string .= $last_sep; } } return $final_string; }
function html_end() { extract(tep_load('defs')); $contents = ''; $launcher = $this->web_path . 'admin.tpl'; $result = tep_read_contents($launcher, $contents); if (!$result) { return $result; } $contents_array = array('BASE_TEMPLATE' => $this->web_path); $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array); return true; }