Thread: Westminster New

Page 34 of 187 FirstFirst ... 2432333435364484134 ... LastLast
Results 331 to 340 of 1865
  1. #331
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,930
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by nipinuk View Post
    Has anyone installed CSS JS Loader plugin with this template? I've had to install it as it is required for the Fast and Easy Checkout plugin. I noticed that my source code is a bit untidy.

    Temporary link to source code: view-source:tinyurl.com/kljdboe (cut and paste into url. Doesn't work if you put http:// before it)

    I've got a couple of issues:

    1. Should I be concerned that I'm getting 'undefined' in my header as follows and do I fix it (see line 31 and 46)?
    Code:
    if (typeof jQuery == 'undefined') {
        document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
    2. I notice that there is duplication of stylesheet and script (line 23-34 with line 38-49). The file affected is includes/templates/westminster_new/common/html_header.php and it's definitely the css js loader bit that's causing the duplication as I've spent two days trying different things and searching for an answer. Lol, it's pretty obvious I'm no programmer! Has anyone managed to sort this? I would be very grateful if someone could point me in the right direction.

    Thank you!
    I have installed css/js loader many times with this template with no issues. You need to merge the files carefully correctly.



    Thanks,

    Anne

  2. #332
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Westminster New

    Thanks for your quick reply Anne. Back to the drawing board for me then! Many thanks!

  3. #333
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Westminster New

    Just a quick update in case anyone is having the same problem as I am.

    1. If you are getting
    Code:
    if (typeof jQuery == 'undefined') {
        document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
    it's just from using the zen colorbox plugin

    2. If you've installed CSS JS Loader plugin, you will (if you haven't carefully merged html_header.php) get duplication code for stylesheets and scripts. What you need to do is replace the code below in includes/templates/westminster_new/common/html_header.php
    Code:
    <?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";
      }
    
    /**
     * 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";
      }
    with
    Code:
    <?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";
        }
    }
    Thank you Anne. I think I just needed you to say carefully! :)

  4. #334
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Westminster New

    Admin page titles changed.

    Admin: Modules: Payment
    Admin: Modules: Shipping
    Admin: Modules: Order Total

    When I navigate to any of those 3 pages within Admin, the title displayed is "Flexible Footer Menu" instead of the proper page title.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  5. #335
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Westminster New

    This is a bug in the Flexible Footer Columns Menu for 1.5.x plugin,

    open: /YOUR_ADMIN_FOLDER/includes/languages/english/extra_definitions/flexible_footer_menu.php

    find:
    define('HEADING_TITLE','Flexible Footer Menu');

    change to:
    //define('HEADING_TITLE','Flexible Footer Menu');

    Quote Originally Posted by RixStix View Post
    Admin page titles changed.

    Admin: Modules: Payment
    Admin: Modules: Shipping
    Admin: Modules: Order Total

    When I navigate to any of those 3 pages within Admin, the title displayed is "Flexible Footer Menu" instead of the proper page title.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  6. #336
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Westminster New

    Thank you Raymond,

    That took care of things.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  7. #337

    Default Re: Westminster New

    I have had this template installed for a couple of months now and it has been nothing but awesome! Thanks, Anne :)

    There is however, one issue that I have just noticed. In the mobile version, I click on the little menu icon to display the dropdown menu options. If I scroll down to select and option, the dropdown menu vanishes. This is on an Android phone. I have not tested this on any other devices. Any ideas on what maybe causing this to happen?

    Also, which code in the tpl_main_page.php do I remove to get rid of the "Back To Top" button?

  8. #338

    Default Re: Westminster New

    Link to my site is www.LoveKariDae.com in case that will help....

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

    Default Re: Westminster New

    Quote Originally Posted by reciecup View Post
    I have had this template installed for a couple of months now and it has been nothing but awesome! Thanks, Anne :)

    There is however, one issue that I have just noticed. In the mobile version, I click on the little menu icon to display the dropdown menu options. If I scroll down to select and option, the dropdown menu vanishes. This is on an Android phone. I have not tested this on any other devices. Any ideas on what maybe causing this to happen?

    Also, which code in the tpl_main_page.php do I remove to get rid of the "Back To Top" button?
    The fix for this is to replace the menu ;) I am planning on submitting an update for this template soon using a great mobile friendly menu that was developed by rbarbour --thank you Raymond!

    Thanks,

    Anne

  10. #340

    Default Re: Westminster New

    Quote Originally Posted by picaflor-azul View Post
    The fix for this is to replace the menu ;) I am planning on submitting an update for this template soon using a great mobile friendly menu that was developed by rbarbour --thank you Raymond!

    Thanks,

    Anne
    Okay, gotcha! i'll keep an eye out for that update.
    Any comments on what code to remove in the tpl_main_page.php to remove the "Back To Top" button?

 

 

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