Plugin Directory

Changeset 1821403


Ignore:
Timestamp:
02/13/2018 03:43:13 PM (8 years ago)
Author:
etemplates
Message:

4.9.4 compatability

Location:
ect-seo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ect-seo/trunk/index.php

    r1582526 r1821403  
    66    Author:Andy Chapman
    77    Author URI:http://www.ecommercetemplates.com
    8     Version:1.5
     8    Version:1.6
    99*/
    1010
     
    1818    remove_action('wp_head','add_cs_meta',1);
    1919    $T=ect_seo_fun('t') ;
    20     echo '<title>'.$T.'</title>';
     20    if(preg_match('/[0-9]/',$T) && @$GLOBALS['ectcartpage']=='categories')
     21    {
     22        $Ex=explode('|',$T);
     23        echo '<title>'.$Ex[0].' | '.$Ex[1].' | All Products</title>';
     24    }
     25    else
     26        echo '<title>'.$T.'</title>';
    2127    add_cs_meta();
    2228}
     
    6975            $ECTWPDB=new wpdb($db_username, $db_password, $db_name, $db_host);
    7076        }
    71         //$Tbls=$ECTWPDB->get_results("show tables");
    7277        if(empty($Sec))
    7378        {
     
    127132        $Cat=GetCatName($catt);
    128133        $SecName=GetCatName($catt,'sec');
    129     //  $Title=esc_attr(get_bloginfo('name', 'display')).' store: ';
    130134       
    131135        $Srh=array('%SHOW_BLOG_NAME%','%PROD_NAME%','%SEC_NAME%','%PROD_ID%','%CAT_NAME%');
     
    138142        $Frm=get_option('ect_seo_pts',true);        $Title=str_replace($Srh,$Rep,$Frm);
    139143   
    140         /*if($topsection!= "")
    141             $Title=$Title.$topsection . ",3 ";
    142         $Title=$Title.$sectionname;*/
    143144        $Meta=str_replace('"','&quot;',$sectiondescription);
    144145       
     
    151152        $Cat=GetCatName($catt);
    152153        $SecName=GetCatName($catt,'sec');
    153         //$Title=esc_attr(get_bloginfo('name', 'display')).' store: ';
    154         //  if($topsection!= "")
    155         //      $Title=$Title.$topsection. ", ";
    156         //  $Title=$Title.$sectionname;
    157154        $Meta=str_replace('"','&quot;',$sectiondescription);
    158155   
     
    163160
    164161        $sectionname=$sectionname; 
    165         if(!$sectionname)
    166             $sectionname=$SecName;
    167         $Rep=array($BlogInfo,$productname,$sectionname,$productid,$topsection);
    168         $Frm='%CAT_NAME% | %SHOW_BLOG_NAME% ';
    169         $Title=str_replace($Srh,$Rep,$Frm);
    170         if($topsection)
    171             return GenerateSeoTags('categories',$Title,$Meta,$Key,$m,1);
    172         else
    173             return GenerateSeoTags('categories','','','',$m);
     162       
     163        $Rep=array($BlogInfo,$productname,$sectionname,$productid,$topsection);     
     164        $Frm=get_option('ect_seo_pts',true);       
     165        $Title=str_replace($Srh,$Rep,$Frm);
     166   
     167        $Meta=str_replace('"','&quot;',$sectiondescription);
     168       
     169
     170        return GenerateSeoTags('categories',$Title,$Meta,$Key,$m);
    174171    }
    175172    elseif(@$GLOBALS['ectcartpage']=='cart')
     
    340337        $Meta=get_option('ect_seo_'.$P.'_meta_description');
    341338        $Key=get_option('ect_seo_'.$P.'_meta_keywords');
    342         if($P=='products' || $P=='categories')
    343         {
    344             $cat=esc_sql($_GET['cat']);
    345             if(empty($pagetitle) && isset($cat) && !empty($cat))
    346                 $Title=$Meta='';
    347         }
    348         if($Off)
    349             $Title='';
     339        if(($P=='products') || ($P=='categories'))
     340        {
     341            if(isset($_GET['cat']))
     342            {
     343             $cat=esc_sql($_GET['cat']);
     344                $Title=GetCatName($_GET['id']);
     345            }
     346        }
     347       if($Off)
     348            $Title='';
    350349        $Title  =!empty($Title) ? $Title : $DefTitle;
    351350        $Meta   =!empty($Meta) ? $Meta : $DefDesc;
     
    359358
    360359        $Meta=$Meta1;
    361     //echo $productname;
    362360    if(empty($Title))
    363361        $Title=$post->post_title;
     
    378376            if(!empty($Title))     
    379377            {           
    380                 //$Srh=array('%SHOW_BLOG_NAME%','%PROD_NAME%','%SEC_NAME%','%PROD_ID%','%CAT_NAME%');
    381                 //$BlogInfo=esc_attr(get_bloginfo('name', 'display'))   ;
    382                 //$Rep=array($BlogInfo,$productname,$sectionname,$productid,$Cat);
    383378                return ($type=='t') ? $T : $M; 
    384379            }       
  • ect-seo/trunk/readme.txt

    r1582526 r1821403  
    44Tags: Wordpress ecommerce, ecommerce, online store, sell products, shopping cart, wordpress store, wordpress shopping cart, ecommerce software, seo, meta description, title tag, search engine friendly, search engine optimization
    55Requires at least: 3
    6 Tested up to: 4.7.1
    7 Stable tag: 1.5
     6Tested up to: 4.9.4
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777== Changelog ==
    7878
     79= 1.6 =
     80* Version check and PHP 7.1 compatibility. February 14 2018.
     81= 1.5 =
     82* Code fixes and version update. January 26 2017.
     83= 1.4 =
     84* Support for header files with no title code. November 28 2016.
     85= 1.3 =
     86* Title and meta description tags for home page. April 23rd 2015.
     87= 1.2 =
     88* Now compatible with user defined title and meta description tags as well as ordering the elements in the title. April 17th 2015.
     89= 1.1 =
     90* Compatible with all non-store pages and 3.8. December 18th 2013.
    7991= 1.0 =
    8092* Initial Release. June 18th 2013.
    81 = 1.1 =
    82 * Compatible with all non-store pages and 3.8. December 18th 2013.
    83 = 1.2 =
    84 * Now compatible with user defined title and meta description tags as well as ordering the elements in the title. April 17th 2015.
    85 = 1.3 =
    86 * Title and meta description tags for home page. April 23rd 2015.
    87 = 1.4 =
    88 * Support for header files with no title code. November 28 2016.
    89 = 1.5 =
    90 * Code fixes and version update. January 26 2017.
Note: See TracChangeset for help on using the changeset viewer.