Changeset 1821403
- Timestamp:
- 02/13/2018 03:43:13 PM (8 years ago)
- Location:
- ect-seo/trunk
- Files:
-
- 2 edited
-
index.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ect-seo/trunk/index.php
r1582526 r1821403 6 6 Author:Andy Chapman 7 7 Author URI:http://www.ecommercetemplates.com 8 Version:1. 58 Version:1.6 9 9 */ 10 10 … … 18 18 remove_action('wp_head','add_cs_meta',1); 19 19 $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>'; 21 27 add_cs_meta(); 22 28 } … … 69 75 $ECTWPDB=new wpdb($db_username, $db_password, $db_name, $db_host); 70 76 } 71 //$Tbls=$ECTWPDB->get_results("show tables");72 77 if(empty($Sec)) 73 78 { … … 127 132 $Cat=GetCatName($catt); 128 133 $SecName=GetCatName($catt,'sec'); 129 // $Title=esc_attr(get_bloginfo('name', 'display')).' store: ';130 134 131 135 $Srh=array('%SHOW_BLOG_NAME%','%PROD_NAME%','%SEC_NAME%','%PROD_ID%','%CAT_NAME%'); … … 138 142 $Frm=get_option('ect_seo_pts',true); $Title=str_replace($Srh,$Rep,$Frm); 139 143 140 /*if($topsection!= "")141 $Title=$Title.$topsection . ",3 ";142 $Title=$Title.$sectionname;*/143 144 $Meta=str_replace('"','"',$sectiondescription); 144 145 … … 151 152 $Cat=GetCatName($catt); 152 153 $SecName=GetCatName($catt,'sec'); 153 //$Title=esc_attr(get_bloginfo('name', 'display')).' store: ';154 // if($topsection!= "")155 // $Title=$Title.$topsection. ", ";156 // $Title=$Title.$sectionname;157 154 $Meta=str_replace('"','"',$sectiondescription); 158 155 … … 163 160 164 161 $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('"','"',$sectiondescription); 168 169 170 return GenerateSeoTags('categories',$Title,$Meta,$Key,$m); 174 171 } 175 172 elseif(@$GLOBALS['ectcartpage']=='cart') … … 340 337 $Meta=get_option('ect_seo_'.$P.'_meta_description'); 341 338 $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=''; 350 349 $Title =!empty($Title) ? $Title : $DefTitle; 351 350 $Meta =!empty($Meta) ? $Meta : $DefDesc; … … 359 358 360 359 $Meta=$Meta1; 361 //echo $productname;362 360 if(empty($Title)) 363 361 $Title=$post->post_title; … … 378 376 if(!empty($Title)) 379 377 { 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);383 378 return ($type=='t') ? $T : $M; 384 379 } -
ect-seo/trunk/readme.txt
r1582526 r1821403 4 4 Tags: 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 5 5 Requires at least: 3 6 Tested up to: 4. 7.17 Stable tag: 1. 56 Tested up to: 4.9.4 7 Stable tag: 1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 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. 79 91 = 1.0 = 80 92 * 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.