Thread: Westminster New

Page 84 of 187 FirstFirst ... 3474828384858694134184 ... LastLast
Results 831 to 840 of 1865
  1. #831
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by chelseaneedshelp View Post
    Hi! I loooooove this template and this thread and the add-ons one have basically been like my bible the past week while I modify my site! But I haven't found anything on what I need...

    For starters, I am really not very familiar with php (I'll be honest, not well-versed in anything more advanced than html) but have been able to figure out *most* things so far.

    On my site (http://thevegansexshop.co/shop/ --homepage is SFW, though there is a banner that reads "The Vegan S3x Shop"), I have the Westminster New template installed, and on the top menu bar I want to remove the "Categories" and "Contact" links and replace with an autopopulating list of my categories. I know how to remove "Categories" and "Contacts," BUT I don't understand php enough to figure out how to put my categories list there (especially automatically). I would prefer to be able to have them auto fill (like how the drop down menu for Products autofills), BUT if that's not possible, I don't mind manually adding them and changing as necessary.

    Here is an image of what I have now:
    Attachment 15092
    (I removed my banner from the image so as not to offend anyone. This is completely SFW)

    Here is an example of what I want:
    Attachment 15093
    (also SFW)

    I'm pretttttty sure the file I need to modify is includes/templates/override/templates/tpl_modules_mobile_categories_tabs.php (at least, that is what I used to remove a link that was in the menu by default and it worked...) Here is the code for that file:

    Code:
    <?php
    /**
     * Module Template - categories_tabs
     *
     * Template stub used to display categories-tabs output
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $
     */
    
    
    ?>
    
    
    
    <div id="menu">
    <ul class="slimmenu">
    
        <li class="test"><a href="<?php HTTP_SERVER . DIR_WS_CATALOG;?>" class="mshop"><?php echo HEADER_TITLE_CATEGORIES; ?></a>
    <?php
        // load the UL-generator class and produce the menu list dynamically from there
        require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    $zen_CategoriesUL = new zen_categories_ul_generator;
    $menulist = $zen_CategoriesUL->buildTree(true);
    $menulist = str_replace('"level4"','"level5"',$menulist);
    $menulist = str_replace('"level3"','"level4"',$menulist);
    $menulist = str_replace('"level2"','"level3"',$menulist);
    $menulist = str_replace('"level1"','"level2"',$menulist);
    $menulist = str_replace('<li>','<li>',$menulist);
    $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    echo $menulist;
    ?>                        
    </li>
    
    
        <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="mcontact"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
    
    </ul>
    
    </div>
    
    <script src="<?php echo $template->get_template_dir('jquery.slimmenu.min.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.slimmenu.min.js' ?>" type="text/javascript"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script> 
    
    	<?php if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') { ?>
    
    <script type="text/javascript">
        $('ul.slimmenu').slimmenu(
    			      {
    			      resizeWidth: '800',
    				  collapserTitle: '',
    				  animSpeed: 'medium',
    				  easingEffect: null,
    				  indentChildren: false,
    				  childrenIndenter: ' '
    				  });
    </script>
    
    <?php } else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){ ?>
    
    <script type="text/javascript">
        $('ul.slimmenu').slimmenu(
    			      {
    			      resizeWidth: '800',
    				  collapserTitle: '',
    				  animSpeed: 'medium',
    				  easingEffect: null,
    				  indentChildren: false,
    				  childrenIndenter: ' '
    				  });
    </script>
    
    <?php } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){ ?>
    
    <script type="text/javascript">
        $('ul.slimmenu').slimmenu(
    			      {
    			      resizeWidth: '0',
    				  collapserTitle: '',
    				  animSpeed: 'medium',
    				  easingEffect: null,
    				  indentChildren: false,
    				  childrenIndenter: ' '
    				  });
    </script>
    
    <?php } else { ?>
    
    <script type="text/javascript">
        $('ul.slimmenu').slimmenu(
    			      {
    			      resizeWidth: '800',
    				  collapserTitle: '',
    				  animSpeed: 'medium',
    				  easingEffect: null,
    				  indentChildren: false,
    				  childrenIndenter: ' '
    				  });
    </script>
    
      <?php } ?>
    Can someone help me? Even if you can offer an example code and let me know how to modify it or point me to a tutorial on something like this.

    Thanks in advance! :) I apologoize if the nature of the site offends anyone, but you know, there is a market segment out there...

    Out of the box the template pulls all of the categories/ sub categories dynamically and displays them in the drop down menu.

    Thanks,

    Anne

  2. #832
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Westminster New

    Quote Originally Posted by Pompidompie View Post
    I have not really looked at it Diva, but a quick look....
    I have 2 languages next to each other. With the samsung the are on top of each other.
    Also the buttonn for the menu is lower than it should be.
    When i click on categories, nothing happens. And clicking on information, goes to the side a little.
    That is what i notices directly, but didn't check further yet.

    Attachment 15091
    You will need to make adjustments to your stylesheet to correct these things..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #833
    Join Date
    Dec 2011
    Posts
    92
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by flagmanuk View Post
    Oh, I did search but couldnt find it.... i will search again, unless you could point me in the general direction?

    Quote Originally Posted by picaflor-azul View Post
    I don't know the exact post number.

    Thanks,

    Anne
    Post 591 has the fix you need

  4. #834
    Join Date
    Feb 2015
    Posts
    64
    Plugin Contributions
    0

    Default Re: Westminster New

    Hi,
    Just installed this template on my website. Can some one please let me know how to edit Page Title and Footer. Because even after editing header.php these two things are same as before (Westminster New Zen Cart Template)

  5. #835
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default Re: Westminster New

    I would like to instal fast and easy checkout. I am now trying to get CSS/JS Loader installed, but if I change the header file i go wrong because I keep getting a blank page. I most be putting the code at the wrong place, but i don't know enough about codes I don't know where i'm going wrong.
    Can someone help me with this please?

    This i my header file:

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: DrByte  Jul 5 2014 Modified in v1.5.4 $
     * Altered by rbarbour (ZCAdditions.com), Responsive DIY Template Default for 1.5.x (65)
     * Modified by Anne (Picaflor-Azul.com) Westminster New v1.3
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>


    <?php
    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    

    if (!class_exists('Mobile_Detect')) {
    include_once(
    DIR_WS_CLASSES 'Mobile_Detect.php'); 
    $detect = new Mobile_Detect;
    }

    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&reg; Team. Responsive zen cart design by Picaflor Azul. " />
    <meta name="generator" content="shopping cart program by Zen Cart&reg;, http://www.zen-cart.com eCommerce" />

    <?php // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />

    <?php // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
     * load all template-specific stylesheets, named like "style*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^style/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }
    /**
     * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
     */
      
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
      
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
      
    $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      if (
    $current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename $current_page_base . (int)$ezpage_id;
      
    $sheets_array = array('/' $_SESSION['language'] . '_stylesheet',
                            
    '/' $tmp_pagename,
                            
    '/' $_SESSION['language'] . '_' $tmp_pagename,
                            
    '/c_' $cPath,
                            
    '/' $_SESSION['language'] . '_c_' $cPath,
                            
    '/m_' $manufacturers_id,
                            
    '/' $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
                            
    '/p_' $tmp_products_id,
                            
    '/' $_SESSION['language'] . '_p_' $tmp_products_id
                            
    );
      while(list (
    $key$value) = each($sheets_array)) {
        
    //echo "<!--looking for: $value-->\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . $value '.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
      }

    /**
     *  custom category handling for a parent and all its children ... works for any c_XX_XX_children.css  where XX_XX is any parent category
     */
      
    $tmp_cats explode('_'$cPath);
      
    $value '';
      foreach(
    $tmp_cats as $val) {
        
    $value .= $val;
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . '/c_' $value '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . '/' $_SESSION['language'] . '_c_' $value '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
        
    $value .= '_';
      }

    /**
     * load printer-friendly stylesheets -- named like "print*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^print/''.css');
      
    sort($directory_array);
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" media="print" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }

    /**
     * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value '"></script>'."\n";
      }

      
    /** CDN for jQuery core **/
    ?>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**
     * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' $page_directory '/' $value '"></script>' "\n";
      }

    /**
     * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.php');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value); echo "\n";
      }
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($page_directory '/' $value); echo "\n";
      }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';


    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   

    if (COLUMN_WIDTH == '0' || (in_array($current_page_base,explode(",",'popup_image,popup_image_additional')) )) {  

        echo 
    '';

    } else {
    $responsive_mobile '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_mobile.css' '" />'
    require(
    $template->get_template_dir('responsive_mobile.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/responsive_mobile.php');

    $responsive_tablet '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_tablet.css' '" />'
    require(
    $template->get_template_dir('responsive_tablet.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/responsive_tablet.php');

    $responsive_default '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_default.css' '" />'

    echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive.css' '" />';

    if (
    $detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {

        echo 
    $responsive_mobile;


    } else if (
    $detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){

        echo 
    $responsive_tablet;


    } else if (
    $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){

        echo 
    '';

    } else {

        echo 
    $responsive_default;

      }  
    }

    if(
    $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isNonResponsive' or $detect->isTablet() && $_SESSION['display_mode']=='isNonResponsive' or $_SESSION['display_mode']=='isNonResponsive'){
    $fluidisFixed 'fluidIsFixed';
    } else {
    $fluidisFixed '';
    }
    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   
    ?>

    <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />


    </head>
    <?php // NOTE: Blank line following is intended: ?>
    And this is the header code that need to go in my header file:
    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_header.php 6 2012-05-07 21:43:01Z numinix $
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&trade; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
    * load the loader files
    */

    if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
        
    $RI_CJLoader->autoloadLoaders();
        
    $RI_CJLoader->loadCssJsFiles();
        
    $files $RI_CJLoader->header();    
        
        foreach(
    $files['css'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if (!
    $RI_CJLoader->get('minify_css') || $file['external']) {
          echo 
    '<link rel="stylesheet" type="text/css" href="'.$file['src'].'" />'."\n";
        } else {
          echo 
    '<link rel="stylesheet" type="text/css" href="min/?f='.$file['src'].'&amp;'.$RI_CJLoader->get('minify_time').'" />'."\n";
        }
            
        foreach(
    $files['jscript'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if(!
    $RI_CJLoader->get('minify_js') || $file['external']) {
          echo 
    '<script type="text/javascript" src="'.$file['src'].'"></script>'."\n";
        } else {
          echo 
    '<script type="text/javascript" src="min/?f='.$file['src'].'&amp;'.$RI_CJLoader->get('minify_time').'"></script>'."\n";
        }
    }
    //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
    ?>
    </head>
    <?php // NOTE: Blank line following is intended: ?>
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

  6. #836
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default Re: Westminster New

    I can't edit anymore, but this i my header file, whem put together:

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br 

    />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * 

    @version GIT: $Id: Author: DrByte  Jul 5 2014 Modified in v1.5.4 $
     * Altered by rbarbour (ZCAdditions.com), Responsive DIY Template Default for 1.5.x 

    (65)
     * Modified by Anne (Picaflor-Azul.com) Westminster New v1.3
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>


    <?php
    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    

    if (!class_exists('Mobile_Detect')) {
    include_once(
    DIR_WS_CLASSES 'Mobile_Detect.php'); 
    $detect = new Mobile_Detect;
    }

    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>

    />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&reg; Team. Responsive zen cart design by 

    Picaflor Azul. " />
    <meta name="generator" content="shopping cart program by Zen Cart&reg;, 

    http://www.zen-cart.com eCommerce" />

    <?php // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-

    scale=1.0, minimum-scale=1.0, user-scalable=no" />

    <?php // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode

    (",",constant('ROBOTS_PAGES_TO_SKIP'))) || 

    $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER 

    DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>
    <?php
    /**
    * load the loader files
    */

    if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
        
    $RI_CJLoader->autoloadLoaders();
        
    $RI_CJLoader->loadCssJsFiles();
        
    $files $RI_CJLoader->header();    
        
        foreach(
    $files['css'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if (!
    $RI_CJLoader->get('minify_css') || $file['external']) {
          echo 
    '<link rel="stylesheet" type="text/css" href="'.$file['src'].'" />'."\n";
        } else {
          echo 
    '<link rel="stylesheet" type="text/css" href="min/?f='.$file

    ['src'].'&amp;'.$RI_CJLoader->get('minify_time').'" />'."\n";
        }
            
        foreach(
    $files['jscript'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if(!
    $RI_CJLoader->get('minify_js') || $file['external']) {
          echo 
    '<script type="text/javascript" src="'.$file['src'].'"></script>'."\n";
        } else {
          echo 
    '<script type="text/javascript" src="min/?f='.$file['src'].'&amp;'.

    $RI_CJLoader->get('minify_time').'"></script>'."\n";
        }
    }
    //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath 

    ' || page: ' $current_page ' || template: ' $current_template ' || main = 

    . ($this_is_home_page 'YES' 'NO') . ' -->';
    ?>
    <?php
    /**
     * load all template-specific stylesheets, named like "style*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir

    ('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^style/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" href="' $template-

    >
    get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value 

    '" />'."\n";
      }
    /**
     * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-

    category basis. Concept by Juxi Zoza.
     */
      
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'

    '';
      
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
      
    $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      if (
    $current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename 

    $current_page_base . (int)$ezpage_id;
      
    $sheets_array = array('/' $_SESSION['language'] . '_stylesheet',
                            
    '/' $tmp_pagename,
                            
    '/' $_SESSION['language'] . '_' $tmp_pagename,
                            
    '/c_' $cPath,
                            
    '/' $_SESSION['language'] . '_c_' $cPath,
                            
    '/m_' $manufacturers_id,
                            
    '/' $_SESSION['language'] . '_m_' 

    (int)
    $manufacturers_id,
                            
    '/p_' $tmp_products_id,
                            
    '/' $_SESSION['language'] . '_p_' $tmp_products_id
                            
    );
      while(list (
    $key$value) = each($sheets_array)) {
        
    //echo "<!--looking for: $value-->\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE

    $current_page_base'css') . $value '.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" 

    href="' 
    $perpagefile .'" />'."\n";
      }

    /**
     *  custom category handling for a parent and all its children ... works for any 

    c_XX_XX_children.css  where XX_XX is any parent category
     */
      
    $tmp_cats explode('_'$cPath);
      
    $value '';
      foreach(
    $tmp_cats as $val) {
        
    $value .= $val;
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE

    $current_page_base'css') . '/c_' $value '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" 

    href="' 
    $perpagefile .'" />'."\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE

    $current_page_base'css') . '/' $_SESSION['language'] . '_c_' $value 

    '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" 

    href="' 
    $perpagefile .'" />'."\n";
        
    $value .= '_';
      }

    /**
     * load printer-friendly stylesheets -- named like "print*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir

    ('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^print/''.css');
      
    sort($directory_array);
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" media="print" href="' $template-

    >
    get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value 

    '" />'."\n";
      }

    /**
     * load all site-wide jscript_*.js files from 

    includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir

    ('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' .  $template->get_template_dir

    ('.js',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value 

    '"></script>'."\n";
      }

      
    /** CDN for jQuery core **/
    ?>
    <script type="text/javascript">window.jQuery || 

    document.write(unescape('%3Cscript type="text/javascript" 

    src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
    <script 

    type="text/javascript">window.jQuery || document.write(unescape('%3Cscript 

    type="text/javascript" src="<?php echo $template->get_template_dir

    ('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'); ?>/jquery.min.js"%3E

    %3C/script%3E'));</script>

    <?php
    /**
     * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, 

    alphabetically
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/'

    '.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' $page_directory '/' $value 

    '"></script>' "\n";
      }

    /**
     * load all site-wide jscript_*.php files from 

    includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir

    ('.php',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.php');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all site-wide jscript_*.php files from 

    includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied 

    in-full to the browser page
     */
        
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE

    $current_page_base,'jscript') . '/' $value); echo "\n";
      }
    /**
     * include content from all page-specific jscript_*.php files from 

    includes/modules/pages/PAGENAME, alphabetically.
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from 

    includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied 

    in-full to the browser page
     */
        
    require($page_directory '/' $value); echo "\n";
      }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath 

    ' || page: ' $current_page ' || template: ' $current_template ' || main = 

    . ($this_is_home_page 'YES' 'NO') . ' -->';


    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   

    if (COLUMN_WIDTH == '0' || (in_array($current_page_base,explode

    (",",'popup_image,popup_image_additional')) )) {  

        echo 
    '';

    } else {
    $responsive_mobile '<link rel="stylesheet" type="text/css" href="' $template-

    >
    get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 

    'responsive_mobile.css' '" />'
    require(
    $template->get_template_dir('responsive_mobile.php',DIR_WS_TEMPLATE

    $current_page_base,'common'). '/responsive_mobile.php');

    $responsive_tablet '<link rel="stylesheet" type="text/css" href="' $template-

    >
    get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 

    'responsive_tablet.css' '" />'
    require(
    $template->get_template_dir('responsive_tablet.php',DIR_WS_TEMPLATE

    $current_page_base,'common'). '/responsive_tablet.php');

    $responsive_default '<link rel="stylesheet" type="text/css" href="' $template-

    >
    get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 

    'responsive_default.css' '" />'

    echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir

    ('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive.css' '" 

    />'
    ;

    if (
    $detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect-

    >
    isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && 

    $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {

        echo 
    $responsive_mobile;


    } else if (
    $detect->isTablet() or $detect->isMobile() && $_SESSION

    ['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION

    ['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){

        echo 
    $responsive_tablet;


    } else if (
    $detect->isMobile() && !$detect->isTablet() && $_SESSION

    ['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION

    ['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){

        echo 
    '';

    } else {

        echo 
    $responsive_default;

      }  
    }

    if(
    $detect->isMobile() && !$detect->isTablet() && $_SESSION

    ['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION

    ['display_mode']=='isDesktop' or $detect->isMobile() && !$detect->isTablet() && 

    $_SESSION['display_mode']=='isNonResponsive' or $detect->isTablet() && $_SESSION

    ['display_mode']=='isNonResponsive' or $_SESSION

    ['display_mode']=='isNonResponsive'){
    $fluidisFixed 'fluidIsFixed';
    } else {
    $fluidisFixed '';
    }
    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   
    ?>

    <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE

    $current_page_base,'jscript') . '/css_browser_selector.js' ?>

    type="text/javascript"></script>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" 

    rel="stylesheet" />


    </head>
    <?php // NOTE: Blank line following is intended: ?>
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

  7. #837
    Join Date
    Mar 2011
    Posts
    17
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by picaflor-azul View Post
    I don't know the exact post number.

    Thanks,

    Anne
    Thank you, post 591 found it :)
    Last edited by flagmanuk; 28 Mar 2015 at 01:30 PM.

  8. #838
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by RiazShahid View Post
    Hi,
    Just installed this template on my website. Can some one please let me know how to edit Page Title and Footer. Because even after editing header.php these two things are same as before (Westminster New Zen Cart Template)
    My guess is that you are not editing the template override files. See the FAQs section of this site for a tutorial about how to change your page title.

    See the readme.html file for instructions on how to edit the footer.

    Thanks,

    Anne

  9. #839
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by Pompidompie View Post
    I would like to instal fast and easy checkout. I am now trying to get CSS/JS Loader installed, but if I change the header file i go wrong because I keep getting a blank page. I most be putting the code at the wrong place, but i don't know enough about codes I don't know where i'm going wrong.
    Can someone help me with this please?

    This i my header file:

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: DrByte  Jul 5 2014 Modified in v1.5.4 $
     * Altered by rbarbour (ZCAdditions.com), Responsive DIY Template Default for 1.5.x (65)
     * Modified by Anne (Picaflor-Azul.com) Westminster New v1.3
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>


    <?php
    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    

    if (!class_exists('Mobile_Detect')) {
    include_once(
    DIR_WS_CLASSES 'Mobile_Detect.php'); 
    $detect = new Mobile_Detect;
    }

    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart® Team. Responsive zen cart design by Picaflor Azul. " />
    <meta name="generator" content="shopping cart program by Zen Cart®, http://www.zen-cart.com eCommerce" />

    <?php // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />

    <?php // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)    ?>

    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
     * load all template-specific stylesheets, named like "style*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^style/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }
    /**
     * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
     */
      
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
      
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
      
    $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      if (
    $current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename $current_page_base . (int)$ezpage_id;
      
    $sheets_array = array('/' $_SESSION['language'] . '_stylesheet',
                            
    '/' $tmp_pagename,
                            
    '/' $_SESSION['language'] . '_' $tmp_pagename,
                            
    '/c_' $cPath,
                            
    '/' $_SESSION['language'] . '_c_' $cPath,
                            
    '/m_' $manufacturers_id,
                            
    '/' $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
                            
    '/p_' $tmp_products_id,
                            
    '/' $_SESSION['language'] . '_p_' $tmp_products_id
                            
    );
      while(list (
    $key$value) = each($sheets_array)) {
        
    //echo "<!--looking for: $value-->\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . $value '.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
      }

    /**
     *  custom category handling for a parent and all its children ... works for any c_XX_XX_children.css  where XX_XX is any parent category
     */
      
    $tmp_cats explode('_'$cPath);
      
    $value '';
      foreach(
    $tmp_cats as $val) {
        
    $value .= $val;
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . '/c_' $value '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . '/' $_SESSION['language'] . '_c_' $value '_children.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
        
    $value .= '_';
      }

    /**
     * load printer-friendly stylesheets -- named like "print*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^print/''.css');
      
    sort($directory_array);
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" media="print" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }

    /**
     * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value '"></script>'."\n";
      }

      
    /** CDN for jQuery core **/
    ?>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**
     * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' $page_directory '/' $value '"></script>' "\n";
      }

    /**
     * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.php');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value); echo "\n";
      }
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($page_directory '/' $value); echo "\n";
      }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';


    // (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   

    if (COLUMN_WIDTH == '0' || (in_array($current_page_base,explode(",",'popup_image,popup_image_additional')) )) {  

        echo 
    '';

    } else {
    $responsive_mobile '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_mobile.css' '" />'
    require(
    $template->get_template_dir('responsive_mobile.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/responsive_mobile.php');

    $responsive_tablet '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_tablet.css' '" />'
    require(
    $template->get_template_dir('responsive_tablet.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/responsive_tablet.php');

    $responsive_default '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive_default.css' '" />'

    echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' 'responsive.css' '" />';

    if (
    $detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {

        echo 
    $responsive_mobile;


    } else if (
    $detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){

        echo 
    $responsive_tablet;


    } else if (
    $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){

        echo 
    '';

    } else {

        echo 
    $responsive_default;

      }  
    }

    if(
    $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isNonResponsive' or $detect->isTablet() && $_SESSION['display_mode']=='isNonResponsive' or $_SESSION['display_mode']=='isNonResponsive'){
    $fluidisFixed 'fluidIsFixed';
    } else {
    $fluidisFixed '';
    }
    // (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)   
    ?>

    <script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/css_browser_selector.js' ?>" type="text/javascript"></script>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />


    </head>
    <?php // NOTE: Blank line following is intended: ?>
    And this is the header code that need to go in my header file:
    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_header.php 6 2012-05-07 21:43:01Z numinix $
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart™ Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
    * load the loader files
    */

    if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
        
    $RI_CJLoader->autoloadLoaders();
        
    $RI_CJLoader->loadCssJsFiles();
        
    $files $RI_CJLoader->header();    
        
        foreach(
    $files['css'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if (!
    $RI_CJLoader->get('minify_css') || $file['external']) {
          echo 
    '<link rel="stylesheet" type="text/css" href="'.$file['src'].'" />'."\n";
        } else {
          echo 
    '<link rel="stylesheet" type="text/css" href="min/?f='.$file['src'].'&'.$RI_CJLoader->get('minify_time').'" />'."\n";
        }
            
        foreach(
    $files['jscript'] as $file)
            if(
    $file['include']) {
          include(
    $file['src']);
        } else if(!
    $RI_CJLoader->get('minify_js') || $file['external']) {
          echo 
    '<script type="text/javascript" src="'.$file['src'].'"></script>'."\n";
        } else {
          echo 
    '<script type="text/javascript" src="min/?f='.$file['src'].'&'.$RI_CJLoader->get('minify_time').'"></script>'."\n";
        }
    }
    //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
    ?>
    </head>
    <?php // NOTE: Blank line following is intended: ?>

    As with any plugin install, if there are the same files in the plugin package and the template package, you will need to merge these files

    Thanks,

    Anne

  10. #840
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default Re: Westminster New

    I know Anne, but i can figure out what i need to do here.
    So far I have done step 1, 2 and 3.

    Step 4.... i have a completly blanc page. Absolutly nothing there anymore.
    I must have done something wrong, but i don't know what that is.



    1) Create a back-up of your files and database. Specifically back-up includes/templates/YOUR_TEMPLATE/common/html_header.php.
    2) Upload all files in this package while maintaining the directory structure (rename YOUR_TEMPLATE to your custom template folder name)
    3) Login to your and the configuration menu should be automatically added to CONFIGURATION->CSS/JS LOADER CONFIGURATION
    4) Open your website and if all CSS and JS are working correctly, the installation is complete
    5) If there are CSS issues, either your stylesheet isn't loading (make sure your CSS is in includes/templates/YOUR_TEMPLATE/css/) or your CSS is invalid and breaking when minified. Either correct your invalid CSS or disable the minify option in the configuration.
    6) If you had embedded JavaScript, CSS, or meta data into your backed-up html_header.php file, either move these lines of code to includes/templates/YOUR_TEMPLATE/jscript/jscript_sitewide.php (name of file can be anything and will load site-wide by Zen Cart), or build an auto loader for CSS JS Loader in includes/templates/YOUR_TEMPLATES/auto_loaders/ (recommended if using shared libraries like jQuery).
    TIPS
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

 

 

Similar Threads

  1. v155 Getting ajax error in v155 with v154 Westminster template
    By godt in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2016, 12:41 AM
  2. v155 Getting ajax error in v155 with v154 Westminster template
    By MCS_Computers in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2016, 03:58 PM
  3. v154 Modifying Top Menu - Westminster New
    By chelseaneedshelp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Mar 2015, 04:28 PM
  4. Westminster New doesn't work on mobile phone
    By Pompidompie in forum Addon Templates
    Replies: 3
    Last Post: 26 Mar 2015, 10:34 PM
  5. v151 westminster new Share and Connect
    By Larry0652 in forum Addon Templates
    Replies: 8
    Last Post: 24 Oct 2014, 03:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR