Changeset 209250
- Timestamp:
- 02/23/2010 08:00:28 AM (16 years ago)
- Location:
- wp-popup-scheduler/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-popup-scheduler.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-popup-scheduler/trunk/readme.txt
r192524 r209250 2 2 Contributors: Damien Oh 3 3 Donate link: http://maketecheasier.com/wordpress-plugins/wordpress-popup-scheduler 4 Stable tag: tag/1. 2.8.34 Stable tag: tag/1.3.0 5 5 Tags: popup, popup scheduler, 6 6 Requires at least: 2.3.0 7 Tested up to: 2.9. 17 Tested up to: 2.9.2 8 8 9 9 Description: A multi purpose popup scheduler that blog owner can use to deliver their message effectively to their readers. … … 46 46 47 47 == Logs == 48 1.3.0 - Added new feature: show popup automatically when the popup content changes 48 49 1.2.8.3 - Fixed PHP/javascript variable incompatibility. Minify javascript 49 50 1.2.8.2 - Fixed a forward slashes bug in the content area -
wp-popup-scheduler/trunk/wp-popup-scheduler.php
r192524 r209250 5 5 Plugin URI: http://maketecheasier.com/ 6 6 Description: Wp Popup Scheduler allows you to add a popup box to your blog. You can customize the popup to suit your blog theme and schedule it to popup as and when you like it. 7 Version: 1. 2.8.37 Version: 1.3.0 8 8 Author: Damien Oh 9 9 Author URI: http://maketecheasier.com/about … … 54 54 'headline_align' => "center", 55 55 'wps_path' => "", 56 'rich_text'=>"1",); 56 'rich_text'=>"1", 57 'content_hash'=>""); 57 58 58 59 add_option('WPS_setting', $WPS_config, 'Settings for WordPress Popup Scheduler'); … … 87 88 $disp_msg = $_POST['display_message']; 88 89 $WPS['display_message'] = strTrimTotal($disp_msg); 90 $WPS['content_hash'] = md5($WPS['display_message'].$WPS['popup_title']); 89 91 $WPS['close_text'] = strip_tags($_POST['close_text']); 90 92 $WPS['display_page'] = $_POST['display_page']; … … 170 172 add_filter('the_content', 'WPS_hook'); 171 173 } 174 } 175 } 176 else if( $WPS['show_popup_on'] == "onupdate") 177 { 178 if ($_COOKIE['WPS_content_hash'] != $WPS['content_hash']) 179 { setcookie('WPS_content_hash', $WPS['content_hash']); 180 if($displayed_mode != "before_post" && $displayed_mode != "after_post") 181 add_filter('wp_footer', 'load_WPS_message'); 182 else 183 add_filter('the_content', 'WPS_hook'); 172 184 } 173 185 } … … 306 318 <td><p><input type="radio" name="schedule_option" value="consecutive" <?php if($WPS['schedule_option']=="consecutive") echo 'checked="checked"';?> /> <?php _e("for");?> <input type="text" name="show_popup_consec" value="<?php echo $WPS['show_popup_consec'];?>" maxlength="3" size="1" /> <?php _e("days");?></p> 307 319 <p><input type="radio" name="schedule_option" value="interval" <?php if($WPS['schedule_option']=="interval") echo 'checked="checked"';?>/> <?php _e("every");?> <input type="text" name="show_popup_interval" maxlength="2" size="2" value="<?php echo $WPS['show_popup_interval']; ?>" /> <?php _e("days");?></p></td></tr> 308 <tr><td><input type="radio" name="show_popup_on" id="show_popup_everytime" value="everytime" <?php if($WPS['show_popup_on']=="everytime") echo 'checked="checked"';?> onclick="checkDisplay()"/></td><td><?php _e("at all time");?>.</td></tr></table> 320 <tr><td><input type="radio" name="show_popup_on" id="show_popup_everytime" value="everytime" <?php if($WPS['show_popup_on']=="everytime") echo 'checked="checked"';?> onclick="checkDisplay()"/></td><td><?php _e("at all time");?>.</td></tr> 321 <tr><td><input type="radio" name="show_popup_on" value="onupdate" <?php if($WPS['show_popup_on']=="onupdate") echo 'checked="checked"';?> /></td><td><?php _e("whenever you make changes to the popup content.");?></td></tr></table> 309 322 <p> </p> 310 323 <h3><?php _e("Set delay for popup");?></h3>
Note: See TracChangeset
for help on using the changeset viewer.