Changeset 1541842
- Timestamp:
- 11/28/2016 10:20:52 AM (9 years ago)
- Location:
- ect-sitemap/trunk
- Files:
-
- 2 edited
-
ect-sitemap.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ect-sitemap/trunk/ect-sitemap.php
r1477635 r1541842 5 5 Author:Andy Chapman 6 6 Author URI:http://www.ecommercetemplates.com 7 Version:1. 57 Version:1.6 8 8 */ 9 9 define('PLUGIN_NAME','ect_sitemap_'); … … 42 42 43 43 $IsSeo=get_option('ect_sitemap_is_seo'); 44 45 44 $IsSeo=!empty($IsSeo) ? "checked='checked'" : ''; 46 45 47 46 if(isset($_GET['msg'])) 48 47 echo '<div id="message" class="updated below-h2"><p>Settings saved successfully .</p></div>'; 49 48 50 49 echo '<form method="post"> 51 50 <input type="hidden" name="def" value="1" />'; … … 94 93 echo '<li><input type="submit" value="Save Changes" /></li></ul>'; 95 94 echo '</form>'; 96 95 97 96 /* echo do_shortcode('[ECT_HTML_SITEMAP]');*/ 98 97 99 98 if(!empty($_POST)) 100 99 { … … 139 138 /* if(isset($DataArr['home'])) 140 139 $Str2.=HtmlInnerTag($DataArr['home']); */ 141 140 142 141 if(isset($DataArr['post'])) 143 142 $Str2.=HtmlInnerTag($DataArr['post'],'Posts'); 144 143 145 144 if(isset($DataArr['page'])) 146 145 $Str2.=HtmlInnerTag($DataArr['page'],'Pages'); 147 146 148 147 } 149 148 $D=StorePages(); 150 149 $Str2.=HtmlInnerTag($D,'Store'); 151 150 152 151 return $Str2; 153 152 } … … 161 160 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 162 161 xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 163 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">';162 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'; 164 163 $DataArr=DataToArray(); 165 164 if(!empty($DataArr)) … … 167 166 if(isset($DataArr['home'])) 168 167 $Str.=XmlInnerTag($DataArr['home']); 169 168 170 169 if(isset($DataArr['post'])) 171 170 $Str.=XmlInnerTag($DataArr['post']); … … 178 177 $Str.=GetCats(1); 179 178 $Str.=ListStoreProd('',1); 180 179 181 180 } 182 181 $Str.='</urlset>'; … … 295 294 $ExcludedPosts=get_option('ect_sitemap_excluded_posts'); 296 295 296 if(is_array($ExcludedPages) && is_array($ExcludedPosts)) 297 { 298 $ExtIDs=array_merge($ExcludedPages,$ExcludedPosts); 299 } 300 elseif(!empty($ExcludedPages) && empty($ExcludedPosts)) 301 { 302 $ExtIDs=$ExcludedPages; 303 } 304 elseif(empty($ExcludedPages) && !empty($ExcludedPosts)) 305 { 306 $ExtIDs=$ExcludedPosts; 307 } 308 297 309 $ExQ=''; 298 if(empty($NoC) && !empty($Ex cludedPages) && is_array($ExcludedPages))299 $ExQ='and ID NOT IN ('.implode(',',$ExcludedPages).')';300 301 if(empty($NoC) && !empty($ExcludedPosts) && is_array($ExcludedPosts))302 $ExQ.=','.implode(',',$ExcludedPosts).')';303 310 if(empty($NoC) && !empty($ExtIDs) && is_array($ExtIDs)) 311 { 312 $ExQ='and ID NOT IN ('.implode(',',$ExtIDs).')'; 313 } 314 /*if(empty($NoC) && !empty($ExcludedPosts) && is_array($ExcludedPosts)) 315 $ExQ.=','.implode(',',$ExcludedPosts).')';*/ 304 316 $Data=$wpdb->get_results("select ID,post_modified_gmt,post_title from ".$wpdb->prefix."posts where post_status='publish' $ExQ"); 305 317 if(!empty($Data)) … … 336 348 $LastM=date('Y-m-d',$LastM); 337 349 /*return $Data=array('Search'=>array('Url'=>site_url('/').'search.php','PostTitle'=>'Search','LastModify'=>$LastM),'Cart'=>array('Url'=>site_url('/').'cart.php','PostTitle'=>'Cart','LastModify'=>$LastM),'Products'=>array('Url'=>site_url('/').'products.php','PostTitle'=>'Products','LastModify'=>$LastM),'Categories'=>array('Url'=>site_url('/').'categories.php','PostTitle'=>'Categories','LastModify'=>$LastM));*/ 338 350 339 351 return $Data=array('Categories'=>array('Url'=>site_url('/').'categories.php','PostTitle'=>'Categories','LastModify'=>$LastM)); 340 352 } … … 362 374 if(true) 363 375 $CatName=$Pp->sectionName; 364 365 $k='products.php'; 376 377 378 $k='products.php'; 366 379 if($Pp->rootSection==0) 367 380 $k='categories.php'; -
ect-sitemap/trunk/readme.txt
r1477635 r1541842 4 4 Tags: Wordpress ecommerce, ecommerce, online store, sell products, shopping cart, wordpress store, wordpress shopping cart, ecommerce software, sitemap, site map, xml 5 5 Requires at least: 3 6 Tested up to: 4.6 7 Stable tag: 1. 56 Tested up to: 4.6.1 7 Stable tag: 1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.6 = 75 * URL rendering fix. September 30th 2016. 74 76 = 1.5 = 75 77 * URL rendering fix. August, 18th 2016.
Note: See TracChangeset
for help on using the changeset viewer.