Changeset 1711367
- Timestamp:
- 08/10/2017 08:58:04 AM (9 years ago)
- Location:
- tally-theme-setup/trunk
- Files:
-
- 3 edited
-
loader-v2.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
tally-theme-setup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tally-theme-setup/trunk/loader-v2.php
r1706261 r1711367 143 143 if(($this->demo_data['home'] !== false) && $_REQUEST['target'] == 'setup_home'){ 144 144 $home_page_data = get_page_by_title( $this->demo_data['home'] ); 145 if($home_page_data && update_option( 'page_on_front', $home_page_data->ID)){ 145 if($home_page_data){ 146 update_option( 'page_on_front', $home_page_data->ID); 146 147 update_option( 'show_on_front', 'page' ); 147 148 update_option($this->options_name['home'], 'done'); … … 158 159 if(($this->demo_data['blog'] !== false) && $_REQUEST['target'] == 'setup_home'){ 159 160 $home_blog_data = get_page_by_title( $this->demo_data['blog'] ); 160 if($home_blog_data && update_option( 'page_for_posts', $home_blog_data->ID)){ 161 if($home_blog_data){ 162 update_option( 'page_for_posts', $home_blog_data->ID); 161 163 update_option($this->options_name['blog'], 'done'); 162 164 echo '<p>Set Blog page as Post page.</p>'; … … 236 238 $theme_demo_url = $this->demo_data['demo_url']; 237 239 240 //print_r($plugins_lists); 241 $plugins_lists_count = count($plugins_lists); 238 242 239 243 $installed_plugin_count = 0; 240 244 if(is_array($plugins_lists)){ 241 245 foreach($plugins_lists as $plugins_list){ 242 if( !is_plugin_active( $plugins_list )){246 if(is_plugin_active( $plugins_list )){ 243 247 $installed_plugin_count++; 244 } 245 } 246 } 247 248 //echo $plugins_list.'<br>'; 249 } 250 } 251 } 252 //echo $installed_plugin_count; 248 253 $all_data_imported = $this->is_all_data_imported(); 249 254 … … 273 278 <div class="tallythemesetup_notice"> 274 279 <h2><?php _e( 'Thanks for installing <strong>'.$theme->get( 'Name' ).'</strong> Theme', 'tally-theme-setup' ); ?></h2> 275 <?php if($installed_plugin_count == 0): ?>280 <?php if($installed_plugin_count == $plugins_lists_count): ?> 276 281 <?php if($is_current_page_impoter_page == true): ?> 277 282 <p>Now you are in the Sample Data Impoter page. Please click on <strong>Import Sample Data</strong> button to make your site look like the theme demo.</p> -
tally-theme-setup/trunk/readme.txt
r1706261 r1711367 3 3 Tags: tallythemes, importer, sample data, sample data importer 4 4 Requires at least: 4.4 5 Tested up to: 4.8 6 Stable tag: 2. 15 Tested up to: 4.8.1 6 Stable tag: 2.2 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 39 39 40 40 == Change log == 41 = 2.1 = 42 - BUG FIX: Plugin was not checking real plugin activation. 43 41 44 = 2.1 = 42 45 - BUG FIX: Plugin notice was showing in version two mood when no demo data was defined. -
tally-theme-setup/trunk/tally-theme-setup.php
r1706261 r1711367 7 7 Plugin URI: http://tallythemes.com/ 8 8 Description: Import demo content for Tally Themes 9 Version: 2. 19 Version: 2.2 10 10 Author: TallyThemes 11 11 Author URI: http://tallythemes.com/
Note: See TracChangeset
for help on using the changeset viewer.