Current Path : /var/www/storage2/modification/catalog/controller/common/ |
Current File : /var/www/storage2/modification/catalog/controller/common/header.php |
<?php class ControllerCommonHeader extends Controller { public function index() { // Analytics // Add Source CSS & JS For Header $this->document->addStyle('catalog/view/javascript/so_searchpro/css/so_searchpro.css'); $this->document->addStyle('catalog/view/javascript/so_megamenu/so_megamenu.css'); $this->document->addStyle('catalog/view/javascript/so_megamenu/wide-grid.css'); $this->document->addScript('catalog/view/javascript/so_megamenu/so_megamenu.js'); $this->load->model('setting/extension'); $data['analytics'] = array(); $analytics = $this->model_setting_extension->getExtensions('analytics'); foreach ($analytics as $analytic) { if ($this->config->get('analytics_' . $analytic['code'] . '_status')) { $data['analytics'][] = $this->load->controller('extension/analytics/' . $analytic['code'], $this->config->get('analytics_' . $analytic['code'] . '_status')); } } if ($this->request->server['HTTPS']) { $server = $this->config->get('config_ssl'); } else { $server = $this->config->get('config_url'); } if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) { $this->document->addLink($server . 'image/' . $this->config->get('config_icon'), 'icon'); } $data['title'] = $this->document->getTitle(); $data['base'] = $server; $data['description'] = $this->document->getDescription(); $data['keywords'] = $this->document->getKeywords(); $data['links'] = $this->document->getLinks(); $data['styles'] = $this->document->getStyles(); $data['scripts'] = $this->document->getScripts('header'); $data['lang'] = $this->language->get('code'); $data['direction'] = $this->language->get('direction'); $data['name'] = $this->config->get('config_name'); if (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home'){ $data['ishome']=1; } $data['route'] = isset($this->request->get['route']) ? $this->request->get['route'] : 'common/home'; $data['config_language_id'] = $this->config->get('config_language_id'); $data['bigshop_custom_column_status'] = $this->config->get('bigshop_custom_column_status'); $data['bigshop_video_box_status'] = $this->config->get('bigshop_video_box_status'); $data['bigshop_facebook_block_status'] = $this->config->get('bigshop_facebook_block_status'); $data['bigshop_twitter_block_status'] = $this->config->get('bigshop_twitter_block_status'); $data['bigshop_skin'] = $this->config->get('bigshop_skin'); $data['bigshop_search_auto_complete'] = $this->config->get('bigshop_search_auto_complete'); $data['bigshop_title_font'] = $this->config->get('bigshop_title_font'); $data['bigshop_body_font'] = $this->config->get('bigshop_body_font'); $data['bigshop_secondary_titles_font'] = $this->config->get('bigshop_secondary_titles_font'); $data['bigshop_footer_titles_font'] = $this->config->get('bigshop_footer_titles_font'); $data['bigshop_main_menu_font'] = $this->config->get('bigshop_main_menu_font'); $data['bigshop_background_color'] = $this->config->get('bigshop_background_color'); $data['config_ssl'] = $this->config->get('config_ssl'); $data['config_url'] = $this->config->get('config_url'); if (is_file(DIR_IMAGE . $this->config->get('bigshop_custom_image'))) { $data['bigshop_custom_image'] = $server . 'image/' . $this->config->get('bigshop_custom_image'); } $data['bigshop_custom_image_position'] = $this->config->get('bigshop_custom_image_position'); $data['bigshop_custom_image_repeat'] = $this->config->get('bigshop_custom_image_repeat'); $data['bigshop_custom_image_attachment'] = $this->config->get('bigshop_custom_image_attachment'); $data['bigshop_pattern_overlay'] = $this->config->get('bigshop_pattern_overlay'); $data['bigshop_general_links_color'] = $this->config->get('bigshop_general_links_color'); $data['bigshop_body_text_color'] = $this->config->get('bigshop_body_text_color'); $data['bigshop_general_links_hover_color'] = $this->config->get('bigshop_general_links_hover_color'); $data['bigshop_heading_color'] = $this->config->get('bigshop_heading_color'); $data['bigshop_secondary_heading_color'] = $this->config->get('bigshop_heading_color'); $data['bigshop_body_text_color'] = $this->config->get('bigshop_secondary_heading_color'); $data['bigshop_secondary_heading_border_color'] = $this->config->get('bigshop_secondary_heading_border_color'); $data['bigshop_secondary_heading_border_hl_color'] = $this->config->get('bigshop_secondary_heading_border_hl_color'); $data['bigshop_layout_border_radius'] = $this->config->get('bigshop_layout_border_radius'); $data['bigshop_layout_top_margin'] = $this->config->get('bigshop_layout_top_margin'); $data['bigshop_header_margin'] = $this->config->get('bigshop_header_margin'); $data['bigshop_logo_margin'] = $this->config->get('bigshop_logo_margin'); $data['bigshop_top_bar_link_color'] = $this->config->get('bigshop_top_bar_link_color'); $data['bigshop_top_bar_link_hover_color'] = $this->config->get('bigshop_top_bar_link_hover_color'); $data['bigshop_top_bar_tele_email_color'] = $this->config->get('bigshop_top_bar_tele_email_color'); $data['bigshop_top_bar_link_color'] = $this->config->get('bigshop_top_bar_link_color'); $data['bigshop_top_bar_sub_link_color'] = $this->config->get('bigshop_top_bar_sub_link_color'); $data['bigshop_top_bar_sub_link_hover_color'] = $this->config->get('bigshop_top_bar_sub_link_hover_color'); $data['bigshop_header_bg_color'] = $this->config->get('bigshop_header_bg_color'); $data['bigshop_mini_cart_icon_color'] = $this->config->get('bigshop_mini_cart_icon_color'); $data['bigshop_mini_cart_icon_color'] = $this->config->get('bigshop_mini_cart_icon_color'); $data['bigshop_mini_cart_link_color'] = $this->config->get('bigshop_mini_cart_link_color'); $data['bigshop_mini_cart_active_link_color'] = $this->config->get('bigshop_mini_cart_active_link_color'); $data['bigshop_search_bar_background_color'] = $this->config->get('bigshop_search_bar_background_color'); $data['bigshop_search_bar_border_color'] = $this->config->get('bigshop_search_bar_border_color'); $data['bigshop_search_bar_text_color'] = $this->config->get('bigshop_search_bar_text_color'); $data['bigshop_search_bar_border_hover_color'] = $this->config->get('bigshop_search_bar_border_hover_color'); $data['bigshop_search_bar_icon_color'] = $this->config->get('bigshop_search_bar_icon_color'); $data['bigshop_search_bar_icon_bg_color'] = $this->config->get('bigshop_search_bar_icon_bg_color'); $data['bigshop_main_menu_align'] = $this->config->get('bigshop_main_menu_align'); $data['bigshop_menu_bg_color'] = $this->config->get('bigshop_menu_bg_color'); $data['bigshop_menu_bg_color_status'] = $this->config->get('bigshop_menu_bg_color_status'); $data['bigshop_menu_link_color'] = $this->config->get('bigshop_menu_link_color'); $data['bigshop_menu_link_hover_color'] = $this->config->get('bigshop_menu_link_hover_color'); $data['bigshop_menu_link_hover_bg_color'] = $this->config->get('bigshop_menu_link_hover_bg_color'); $data['bigshop_menu_link_separator_size'] = $this->config->get('bigshop_menu_link_separator_size'); $data['bigshop_menu_link_separator_style'] = $this->config->get('bigshop_menu_link_separator_style'); $data['bigshop_menu_link_separator_color'] = $this->config->get('bigshop_menu_link_separator_color'); $data['bigshop_menu_link_separator_status'] = $this->config->get('bigshop_menu_link_separator_status'); $data['bigshop_menu_link_border_top_size'] = $this->config->get('bigshop_menu_link_border_top_size'); $data['bigshop_menu_link_border_top_style'] = $this->config->get('bigshop_menu_link_border_top_style'); $data['bigshop_menu_link_border_top_color'] = $this->config->get('bigshop_menu_link_border_top_color'); $data['bigshop_menu_link_border_top_status'] = $this->config->get('bigshop_menu_link_border_top_status'); $data['bigshop_menu_link_border_bottom_size'] = $this->config->get('bigshop_menu_link_border_bottom_size'); $data['bigshop_menu_link_border_bottom_style'] = $this->config->get('bigshop_menu_link_border_bottom_style'); $data['bigshop_menu_link_border_bottom_color'] = $this->config->get('bigshop_menu_link_border_bottom_color'); $data['bigshop_menu_link_border_bottom_status'] = $this->config->get('bigshop_menu_link_border_bottom_status'); $data['bigshop_sub_menu_background_color'] = $this->config->get('bigshop_sub_menu_background_color'); $data['bigshop_sub_menu_heading_text_color'] = $this->config->get('bigshop_sub_menu_heading_text_color'); $data['bigshop_sub_menu_heading_text_separator_color'] = $this->config->get('bigshop_sub_menu_heading_text_separator_color'); $data['bigshop_sub_menu_heading_text_separator_style'] = $this->config->get('bigshop_sub_menu_heading_text_separator_style'); $data['bigshop_sub_menu_link_color'] = $this->config->get('bigshop_sub_menu_link_color'); $data['bigshop_sub_menu_link_hover_color'] = $this->config->get('bigshop_sub_menu_link_hover_color'); $data['bigshop_sub_menu_link_separator_color'] = $this->config->get('bigshop_sub_menu_link_separator_color'); $data['bigshop_sub_menu_link_separator_style'] = $this->config->get('bigshop_sub_menu_link_separator_style'); $data['bigshop_home_page_link_background_color'] = $this->config->get('bigshop_home_page_link_background_color'); $data['bigshop_home_page_link_background_color_hover'] = $this->config->get('bigshop_home_page_link_background_color_hover'); $data['bigshop_home_page_link_link_color'] = $this->config->get('bigshop_home_page_link_link_color'); $data['bigshop_home_page_link_link_color_hover'] = $this->config->get('bigshop_home_page_link_link_color_hover'); $data['bigshop_categories_section_background_color'] = $this->config->get('bigshop_categories_section_background_color'); $data['bigshop_categories_section_background_color_hover'] = $this->config->get('bigshop_categories_section_background_color_hover'); $data['bigshop_categories_section_link_color'] = $this->config->get('bigshop_categories_section_link_color'); $data['bigshop_categories_section_link_color_hover'] = $this->config->get('bigshop_categories_section_link_color_hover'); $data['bigshop_brands_section_background_color'] = $this->config->get('bigshop_brands_section_background_color'); $data['bigshop_brands_section_background_color_hover'] = $this->config->get('bigshop_brands_section_background_color_hover'); $data['bigshop_brands_section_link_color'] = $this->config->get('bigshop_brands_section_link_color'); $data['bigshop_brands_section_link_color_hover'] = $this->config->get('bigshop_brands_section_link_color_hover'); $data['bigshop_custom_link_section_background_color'] = $this->config->get('bigshop_custom_link_section_background_color'); $data['bigshop_custom_link_section_background_color_hover'] = $this->config->get('bigshop_custom_link_section_background_color_hover'); $data['bigshop_custom_link_section_link_color'] = $this->config->get('bigshop_custom_link_section_link_color'); $data['bigshop_custom_link_section_link_color_hover'] = $this->config->get('bigshop_custom_link_section_link_color_hover'); $data['bigshop_custom_block_section_background_color'] = $this->config->get('bigshop_custom_block_section_background_color'); $data['bigshop_custom_block_section_background_color_hover'] = $this->config->get('bigshop_custom_block_section_background_color_hover'); $data['bigshop_custom_block_section_link_color'] = $this->config->get('bigshop_custom_block_section_link_color'); $data['bigshop_custom_block_section_link_color_hover'] = $this->config->get('bigshop_custom_block_section_link_color_hover'); $data['bigshop_information_section_background_color'] = $this->config->get('bigshop_information_section_background_color'); $data['bigshop_information_section_background_color_hover'] = $this->config->get('bigshop_information_section_background_color_hover'); $data['bigshop_information_section_link_color'] = $this->config->get('bigshop_information_section_link_color'); $data['bigshop_information_section_link_color_hover'] = $this->config->get('bigshop_information_section_link_color_hover'); $data['bigshop_contact_section_background_color'] = $this->config->get('bigshop_contact_section_background_color'); $data['bigshop_contact_section_background_color_hover'] = $this->config->get('bigshop_contact_section_background_color_hover'); $data['bigshop_contact_section_link_color'] = $this->config->get('bigshop_contact_section_link_color'); $data['bigshop_contact_section_link_color_hover'] = $this->config->get('bigshop_contact_section_link_color_hover'); $data['bigshop_custom_block_bg_color'] = $this->config->get('bigshop_custom_block_bg_color'); $data['bigshop_video_block_bg_color'] = $this->config->get('bigshop_video_block_bg_color'); $data['bigshop_footer_bg_color'] = $this->config->get('bigshop_footer_bg_color'); $data['bigshop_footer_titles_color'] = $this->config->get('bigshop_footer_titles_color'); $data['bigshop_footer_text_color'] = $this->config->get('bigshop_footer_text_color'); $data['bigshop_footer_link_color'] = $this->config->get('bigshop_footer_link_color'); $data['bigshop_footer_link_hover_color'] = $this->config->get('bigshop_footer_link_hover_color'); $data['bigshop_contact_icon_color'] = $this->config->get('bigshop_contact_icon_color'); $data['bigshop_contact_icon_bg_color'] = $this->config->get('bigshop_contact_icon_bg_color'); $data['bigshop_footer_second_bg_color'] = $this->config->get('bigshop_footer_second_bg_color'); $data['bigshop_footer_second_text_color'] = $this->config->get('bigshop_footer_second_text_color'); $data['bigshop_footer_second_link_color'] = $this->config->get('bigshop_footer_second_link_color'); $data['bigshop_footer_second_link_hover_color'] = $this->config->get('bigshop_footer_second_link_hover_color'); $data['bigshop_footer_second_separator_color'] = $this->config->get('bigshop_footer_second_separator_color'); $data['bigshop_footer_second_separator_style'] = $this->config->get('bigshop_footer_second_separator_style'); $data['bigshop_footer_second_fst_separator_status'] = $this->config->get('bigshop_footer_second_fst_separator_status'); $data['bigshop_footer_second_2nd_separator_color'] = $this->config->get('bigshop_footer_second_2nd_separator_color'); $data['bigshop_footer_second_2nd_separator_style'] = $this->config->get('bigshop_footer_second_2nd_separator_style'); $data['bigshop_footer_second_2nd_separator_status'] = $this->config->get('bigshop_footer_second_2nd_separator_status'); $data['bigshop_footer_second_2nd_separator_status'] = $this->config->get('bigshop_footer_second_2nd_separator_status'); $data['bigshop_footer_backtotop_bg_color'] = $this->config->get('bigshop_footer_backtotop_bg_color'); $data['bigshop_product_box_border_hover_color'] = $this->config->get('bigshop_product_box_border_hover_color'); $data['bigshop_product_name_color'] = $this->config->get('bigshop_product_name_color'); $data['bigshop_product_name_hover_color'] = $this->config->get('bigshop_product_name_hover_color'); $data['bigshop_price_color'] = $this->config->get('bigshop_price_color'); $data['bigshop_old_price_color'] = $this->config->get('bigshop_old_price_color'); $data['bigshop_new_price_color'] = $this->config->get('bigshop_new_price_color'); $data['bigshop_saving_percentage_bg_color'] = $this->config->get('bigshop_saving_percentage_bg_color'); $data['bigshop_saving_percentage_text_color'] = $this->config->get('bigshop_saving_percentage_text_color'); $data['bigshop_wishlist_compare_bg_color'] = $this->config->get('bigshop_wishlist_compare_bg_color'); $data['bigshop_wishlist_compare_text_color'] = $this->config->get('bigshop_wishlist_compare_text_color'); $data['bigshop_wishlist_compare_hover_bg_color'] = $this->config->get('bigshop_wishlist_compare_hover_bg_color'); $data['bigshop_wishlist_compare_hover_text_color'] = $this->config->get('bigshop_wishlist_compare_hover_text_color'); $data['bigshop_button_bg_color'] = $this->config->get('bigshop_button_bg_color'); $data['bigshop_button_bg_hover_color'] = $this->config->get('bigshop_button_bg_hover_color'); $data['bigshop_button_text_color'] = $this->config->get('bigshop_button_text_color'); $data['bigshop_button_text_hover_color'] = $this->config->get('bigshop_button_text_hover_color'); $data['bigshop_default_button_bg_color'] = $this->config->get('bigshop_default_button_bg_color'); $data['bigshop_default_button_bg_hover_color'] = $this->config->get('bigshop_default_button_bg_hover_color'); $data['bigshop_default_button_text_color'] = $this->config->get('bigshop_default_button_text_color'); $data['bigshop_default_button_text_hover_color'] = $this->config->get('bigshop_default_button_text_hover_color'); $data['bigshop_cart_button_bg_color'] = $this->config->get('bigshop_cart_button_bg_color'); $data['bigshop_cart_button_bg_hover_color'] = $this->config->get('bigshop_cart_button_bg_hover_color'); $data['bigshop_cart_button_text_color'] = $this->config->get('bigshop_cart_button_text_color'); $data['bigshop_cart_button_text_hover_color'] = $this->config->get('bigshop_cart_button_text_hover_color'); $data['bigshop_price_bg_color'] = $this->config->get('bigshop_price_bg_color'); $data['bigshop_price_text_color'] = $this->config->get('bigshop_price_text_color'); $data['bigshop_old_price_product_page_color'] = $this->config->get('bigshop_old_price_product_page_color'); $data['bigshop_excl_button_bg_color'] = $this->config->get('bigshop_excl_button_bg_color'); $data['bigshop_excl_button_bg_hover_color'] = $this->config->get('bigshop_excl_button_bg_hover_color'); $data['bigshop_excl_button_text_color'] = $this->config->get('bigshop_excl_button_text_color'); $data['bigshop_excl_button_text_hover_color'] = $this->config->get('bigshop_excl_button_text_hover_color'); $data['bigshop_feature_box1_border_color'] = $this->config->get('bigshop_feature_box1_border_color'); $data['bigshop_feature_box1_bg_color'] = $this->config->get('bigshop_feature_box1_bg_color'); $data['bigshop_feature_box1_title_color'] = $this->config->get('bigshop_feature_box1_title_color'); $data['bigshop_feature_box1_subtitle_color'] = $this->config->get('bigshop_feature_box1_subtitle_color'); $data['bigshop_feature_box2_border_color'] = $this->config->get('bigshop_feature_box2_border_color'); $data['bigshop_feature_box2_bg_color'] = $this->config->get('bigshop_feature_box2_bg_color'); $data['bigshop_feature_box2_title_color'] = $this->config->get('bigshop_feature_box2_title_color'); $data['bigshop_feature_box2_subtitle_color'] = $this->config->get('bigshop_feature_box2_subtitle_color'); $data['bigshop_feature_box3_border_color'] = $this->config->get('bigshop_feature_box3_border_color'); $data['bigshop_feature_box3_bg_color'] = $this->config->get('bigshop_feature_box3_bg_color'); $data['bigshop_feature_box3_title_color'] = $this->config->get('bigshop_feature_box3_title_color'); $data['bigshop_feature_box3_subtitle_color'] = $this->config->get('bigshop_feature_box3_subtitle_color'); $data['bigshop_feature_box4_border_color'] = $this->config->get('bigshop_feature_box4_border_color'); $data['bigshop_feature_box4_bg_color'] = $this->config->get('bigshop_feature_box4_bg_color'); $data['bigshop_feature_box4_title_color'] = $this->config->get('bigshop_feature_box4_title_color'); $data['bigshop_feature_box4_subtitle_color'] = $this->config->get('bigshop_feature_box4_subtitle_color'); $data['bigshop_feature_box_title_font_size'] = $this->config->get('bigshop_feature_box_title_font_size'); $data['bigshop_feature_box_title_font_weight'] = $this->config->get('bigshop_feature_box_title_font_weight'); $data['bigshop_feature_box_title_font_transform'] = $this->config->get('bigshop_feature_box_title_font_transform'); $data['bigshop_feature_box_subtitle_font_size'] = $this->config->get('bigshop_feature_box_subtitle_font_size'); $data['bigshop_feature_box_subtitle_font_weight'] = $this->config->get('bigshop_feature_box_subtitle_font_weight'); $data['bigshop_feature_box_subtitle_font_transform'] = $this->config->get('bigshop_feature_box_subtitle_font_transform'); $data['bigshop_title_font_size'] = $this->config->get('bigshop_title_font_size'); $data['bigshop_title_font_weight'] = $this->config->get('bigshop_title_font_weight'); $data['bigshop_title_font_uppercase'] = $this->config->get('bigshop_title_font_uppercase'); $data['bigshop_main_menu_font_size'] = $this->config->get('bigshop_main_menu_font_size'); $data['bigshop_main_menu_font_weight'] = $this->config->get('bigshop_main_menu_font_weight'); $data['bigshop_main_menu_font_uppercase'] = $this->config->get('bigshop_main_menu_font_uppercase'); $data['bigshop_top_bar_font_size'] = $this->config->get('bigshop_top_bar_font_size'); $data['bigshop_top_bar_font_weight'] = $this->config->get('bigshop_top_bar_font_weight'); $data['bigshop_top_bar_font_uppercase'] = $this->config->get('bigshop_top_bar_font_uppercase'); $data['bigshop_secondary_titles_font_size'] = $this->config->get('bigshop_secondary_titles_font_size'); $data['bigshop_secondary_titles_font_weight'] = $this->config->get('bigshop_secondary_titles_font_weight'); $data['bigshop_secondary_titles_font_weight'] = $this->config->get('bigshop_secondary_titles_font_weight'); $data['bigshop_secondary_titles_font_uppercase'] = $this->config->get('bigshop_secondary_titles_font_uppercase'); $data['bigshop_footer_titles_font_size'] = $this->config->get('bigshop_footer_titles_font_size'); $data['bigshop_footer_titles_font_weight'] = $this->config->get('bigshop_footer_titles_font_weight'); $data['bigshop_footer_titles_font_uppercase'] = $this->config->get('bigshop_footer_titles_font_uppercase'); $data['bigshop_custom_css'] = $this->config->get('bigshop_custom_css'); $data['bigshop_layout_style'] = $this->config->get('bigshop_layout_style'); $data['bigshop_custom_link1_top'] = $this->config->get('bigshop_custom_link1_top'); $data['bigshop_custom_link1_top_title'] = $this->config->get('bigshop_custom_link1_top_title'); $data['bigshop_custom_link1_top_url'] = $this->config->get('bigshop_custom_link1_top_url'); $data['bigshop_target_link1_top'] = $this->config->get('bigshop_target_link1_top'); $data['bigshop_custom_link2_top'] = $this->config->get('bigshop_custom_link2_top'); $data['bigshop_custom_link2_top_title'] = $this->config->get('bigshop_custom_link2_top_title'); $data['bigshop_custom_link2_top_url'] = $this->config->get('bigshop_custom_link2_top_url'); $data['bigshop_target_link2_top'] = $this->config->get('bigshop_target_link2_top'); $data['bigshop_custom_link3_top'] = $this->config->get('bigshop_custom_link3_top'); $data['bigshop_custom_link3_top_title'] = $this->config->get('bigshop_custom_link3_top_title'); $data['bigshop_custom_link3_top_url'] = $this->config->get('bigshop_custom_link3_top_url'); $data['bigshop_target_link3_top'] = $this->config->get('bigshop_target_link3_top'); $data['bigshop_custom_block_top_status'] = $this->config->get('bigshop_custom_block_top_status'); $data['bigshop_custom_block_top_title'] = $this->config->get('bigshop_custom_block_top_title'); $data['bigshop_custom_block_top_content'] = $this->config->get('bigshop_custom_block_top_content'); $data['bigshop_custom_block_top_content'] = html_entity_decode($data['bigshop_custom_block_top_content'][$this->config->get('config_language_id')]['description'], ENT_QUOTES, 'UTF-8'); $data['bigshop_custom_block2_top_status'] = $this->config->get('bigshop_custom_block2_top_status'); $data['bigshop_custom_block2_top_title'] = $this->config->get('bigshop_custom_block2_top_title'); $data['bigshop_custom_block2_top_content'] = $this->config->get('bigshop_custom_block2_top_content'); $data['bigshop_custom_block2_top_content'] = html_entity_decode($data['bigshop_custom_block2_top_content'][$this->config->get('config_language_id')]['description'], ENT_QUOTES, 'UTF-8'); $data['bigshop_wishlist_top_link'] = $this->config->get('bigshop_wishlist_top_link'); $data['bigshop_checkout_top_link'] = $this->config->get('bigshop_checkout_top_link'); $data['bigshop_top_bar_contact_status'] = $this->config->get('bigshop_top_bar_contact_status'); $data['bigshop_top_bar_contact'] = $this->config->get('bigshop_top_bar_contact'); $data['bigshop_top_bar_email_status'] = $this->config->get('bigshop_top_bar_email_status'); $data['bigshop_top_bar_email'] = $this->config->get('bigshop_top_bar_email'); $data['bigshop_feature_box_per_row'] = $this->config->get('bigshop_feature_box_per_row'); $data['bigshop_feature_box_homepage_only'] = $this->config->get('bigshop_feature_box_homepage_only'); $data['bigshop_feature_box_show_header_footer'] = $this->config->get('bigshop_feature_box_show_header_footer'); $data['bigshop_feature_box_per_row'] = $this->config->get('bigshop_feature_box_per_row'); $data['bigshop_feature_box1_title'] = $this->config->get('bigshop_feature_box1_title'); $data['bigshop_feature_box1_subtitle'] = $this->config->get('bigshop_feature_box1_subtitle'); $data['bigshop_feature_box2_title'] = $this->config->get('bigshop_feature_box2_title'); $data['bigshop_feature_box2_subtitle'] = $this->config->get('bigshop_feature_box2_subtitle'); $data['bigshop_feature_box3_title'] = $this->config->get('bigshop_feature_box3_title'); $data['bigshop_feature_box3_subtitle'] = $this->config->get('bigshop_feature_box3_subtitle'); $data['bigshop_feature_box4_title'] = $this->config->get('bigshop_feature_box4_title'); $data['bigshop_feature_box4_subtitle'] = $this->config->get('bigshop_feature_box4_subtitle'); $data['bigshop_feature_box1_status'] = $this->config->get('bigshop_feature_box1_status'); $data['bigshop_feature_box2_status'] = $this->config->get('bigshop_feature_box2_status'); $data['bigshop_feature_box3_status'] = $this->config->get('bigshop_feature_box3_status'); $data['bigshop_feature_box4_status'] = $this->config->get('bigshop_feature_box4_status'); if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) { $data['logo'] = $server . 'image/' . $this->config->get('config_logo'); } else { $data['logo'] = ''; } // Add New Position For Header $data['header_block1'] = $this->load->controller('extension/soconfig/header_block1'); $data['header_block2'] = $this->load->controller('extension/soconfig/header_block2'); $data['content_search'] = $this->load->controller('extension/soconfig/content_search'); $data['content_menu'] = $this->load->controller('extension/soconfig/content_menu'); $data['content_menu1'] = $this->load->controller('extension/soconfig/content_menu1'); $data['content_topbar'] = $this->load->controller('extension/soconfig/content_topbar'); $data['text_items'] = $this->language->get('text_items'); $data['text_shop'] = $this->language->get('text_shop'); $data['text_shop_cart'] = $this->language->get('text_shop_cart'); $data['compare'] = $this->url->link('product/compare', '', 'SSL'); $data['text_compare'] = sprintf($this->language->get('text_compare'),(isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); // Add New Position For Header $this->load->language('extension/soconfig/soconfig'); $data['text_contact'] = $this->language->get('text_contact'); $data['text_more'] = $this->language->get('text_more'); $data['text_menu'] = $this->language->get('text_menu'); $data['text_hotline'] = $this->language->get('text_hotline'); $data['text_compare'] = $this->language->get('text_compare'); $this->load->language('common/header'); // Wishlist if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true)); $data['home'] = $this->url->link('common/home'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['shopping_cart'] = $this->url->link('checkout/cart'); $data['checkout'] = $this->url->link('checkout/checkout', '', true); $data['contact'] = $this->url->link('information/contact'); $data['telephone'] = $this->config->get('config_telephone'); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['search'] = $this->load->controller('common/search'); $data['cart'] = $this->load->controller('common/cart'); $data['menu'] = $this->load->controller('common/menu'); return $this->load->view('common/header', $data); } }