Changeset 1911472
- Timestamp:
- 07/19/2018 08:54:36 AM (8 years ago)
- Location:
- smart-popup/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (5 diffs)
-
smart-popup.php (modified) (8 diffs)
-
view/settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smart-popup/trunk/readme.txt
r1911343 r1911472 1 1 === Smart Popup === 2 2 Contributors: naminbd 3 Tags: popup, pop up, modal, bootstrap modal, wordpress popup, popup maker, exit popup, popups, awesome popup, jQuery Popup, smart popup, facebook popup, social popup, video popup, shortcode popup, optin3 Tags: popup, modal, facebook popup, video popup, shortcode popup, bootstrap modal, optin, social popup 4 4 Donate link: http://nurul.ninja/supportme/ 5 5 Requires PHP: 5.2.4 … … 13 13 14 14 == Description == 15 *** Smart Popup 16 * An exclusive popup plugin for wordpress 17 You can popup any content in your wordpress post or page as popup. You can add popup with 18 link or button or page/post on load. You can use some nice theme and customize button 19 and colors. 20 You can able to add your facebook page like and wall or you can add any video from youtube. 15 Smart Popup:: an exclusive popup (Modal) plugin for WordPress. You can show any content in your wordpress post or page as popup. You can add popup with link or button or page/post on load. 16 You can use some nice theme and customize button and colors. You can able to add your facebook page like and wall or you can add any video from youtube. 21 17 You also add shrot code or image or any html in your popup. 22 18 23 For short code use: [wps-popup id=" <your-postID-here->"]19 For short code use: [wps-popup id="ID"] (you can see this in popup list, just copy & past) 24 20 25 Icon Credit : https://www.flaticon.com26 21 27 22 … … 38 33 * Customize design as your need. 39 34 35 40 36 = 3rd party supported plugins = 41 42 37 * Contact Form 7 43 38 * Ninja Forms 44 * Neo Form 39 * Neo Forms 45 40 * WP Forms 46 41 * WeForms 47 42 * Gravity Forms 48 * Formidable Forms49 43 * WP Google Maps 50 44 * HTML5 Maps 45 * Shortcode Maker 51 46 * Review Builder 52 47 * Elementor Builder 53 54 55 56 57 == Installation ==58 1. Download and install the plugin from WordPress dashboard. You can also upload the entire “Smart Popup” folder to the `/wp-content/plugins/` directory59 2. Activate the plugin through the ‘Plugins’ menu in WordPress60 61 == Changelog ==62 63 = 1.0.0 =64 * Initial release.65 48 66 49 … … 82 65 83 66 67 == Installation == 68 1. Download and install the plugin from WordPress dashboard. You can also upload the entire “Smart Popup” folder to the `/wp-content/plugins/` directory 69 2. Activate the plugin through the ‘Plugins’ menu in WordPress 70 71 == Changelog == 72 73 = 1.0.0 = 74 * Initial release. 75 76 84 77 85 78 … … 87 80 = What about support? = 88 81 Create a support ticket at WordPress forum and I will take care of any issue. 89 90 91 92 82 = How I add Video From YouTube? = 83 Select popup type as 'YouTube' than add Video ID in YouTube Settings. 84 = How I add Facebook Page Likebox? = 85 Select popup type as 'Facebook' than add your Page URL in Facebook Settings. 86 = How to hide popup shortcode from Post Excerpt? 87 You can change settings from settings page for it. -
smart-popup/trunk/smart-popup.php
r1911343 r1911472 68 68 69 69 add_action('init', array($this, 'register_post_type')); 70 add_shortcode( $this->short_code_name, array($this, 'render_short_code'));70 add_shortcode($this->short_code_name, array($this, 'render_short_code')); 71 71 add_filter("manage_{$this->custom_post_name}_posts_columns", array($this, 'manage_custom_columns')); 72 72 add_action("manage_{$this->custom_post_name}_posts_custom_column", array($this, 'manage_custom_columns_value')); … … 82 82 83 83 add_action('the_content', array($this, 'add_data_in_post_content')); 84 84 85 } 85 86 … … 153 154 'rewrite' => false, 154 155 'query_var' => false, 155 'menu_icon' => 'dashicons-testimonial', 156 'menu_icon' => 'dashicons-testimonial', 156 157 'show_in_nav_menus' => false, 157 158 ); … … 195 196 196 197 add_submenu_page('edit.php?post_type=' . $this->custom_post_name, __('Theme', $this->text_domain), __('Theme', $this->text_domain), $capability, __('theme', $this->text_domain), array($this, 'manage_menu_pages')); 197 add_submenu_page('edit.php?post_type=' . $this->custom_post_name, __('How To USE', $this->text_domain), __('How to Use', $this->text_domain), $capability, __('how_to_use', $this->text_domain), array($this, 'manage_menu_pages'));198 //add_submenu_page('edit.php?post_type=' . $this->custom_post_name, __('How To USE', $this->text_domain), __('How to Use', $this->text_domain), $capability, __('how_to_use', $this->text_domain), array($this, 'manage_menu_pages')); 198 199 add_submenu_page('edit.php?post_type=' . $this->custom_post_name, __('WPSP Settings', $this->text_domain), __('Setting', $this->text_domain), $capability, __('global_settings', $this->text_domain), array($this, 'manage_menu_pages')); 199 200 } … … 242 243 switch ($column) { 243 244 case 'wpsp_sc' : 244 echo "[" . $this->short_code_name . " id='{$post->ID}']";245 echo "[" . $this->short_code_name . " id='{$post->ID}']"; 245 246 break; 246 247 case 'wpsp_type' : … … 289 290 function render_short_code($atts, $content = null) { 290 291 292 if ( ! is_single() AND $this->global_setting['hide_in_excerpt'] == 'yes' ){ 293 return; 294 } 291 295 $atts = array_change_key_case((array) $atts, CASE_LOWER); 292 296 … … 325 329 326 330 function add_data_in_post_content($content) { 327 331 if ( ! is_single() AND $this->global_setting['hide_in_excerpt'] == 'yes' ){ 332 return $content; 333 } 328 334 $pattern = get_shortcode_regex(array('wps-popup')); 329 335 preg_match_all('/' . $pattern . '/s', $content, $matches); … … 424 430 return $content; 425 431 } 432 433 426 434 427 435 function show_custom_popup_input() { -
smart-popup/trunk/view/settings.php
r1911343 r1911472 59 59 </div> 60 60 61 </div> 62 63 64 <div class="form-group"> 65 66 <label> Hide Popup for Post Excerpt </label> 67 68 <?php 69 $chhe_y = ''; 70 $chhe_n = ''; 71 if( $this->global_setting['hide_in_excerpt'] == 'yes') $chhe_y = 'checked' ; 72 if( $this->global_setting['hide_in_excerpt'] == 'no') $chhe_n = 'checked' ; 73 ?> 74 75 <div class="switch-field"> 76 <input type="radio" id="switch_left3" name="hide_in_excerpt" value="yes" <?php echo $chhe_y ?> /> 77 <label for="switch_left3">Yes</label> 78 <input type="radio" id="switch_right3" name="hide_in_excerpt" value="no" <?php echo $chhe_n ?> /> 79 <label for="switch_right3">No</label> 80 </div> 61 81 62 82 </div> 83 84 63 85 <br/> 64 86 <br/>
Note: See TracChangeset
for help on using the changeset viewer.