Plugin Directory

Changeset 1911472


Ignore:
Timestamp:
07/19/2018 08:54:36 AM (8 years ago)
Author:
naminbd
Message:

Update readme.txt

Location:
smart-popup/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smart-popup/trunk/readme.txt

    r1911343 r1911472  
    11=== Smart Popup  ===
    22Contributors: 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, optin
     3Tags: popup, modal, facebook popup, video popup, shortcode popup, bootstrap modal, optin, social popup
    44Donate link: http://nurul.ninja/supportme/
    55Requires PHP: 5.2.4
     
    1313
    1414== 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.
     15Smart 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.
     16You 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.
    2117You also add shrot code or image or any html in your popup.
    2218
    23 For short code use: [wps-popup id="<your-postID-here->"]
     19For short code use: [wps-popup id="ID"] (you can see this in popup list, just copy & past)
    2420
    25 Icon Credit :  https://www.flaticon.com
    2621
    2722
     
    3833  * Customize design as your need.
    3934 
     35
    4036= 3rd party supported plugins =
    41 
    4237  * Contact Form 7
    4338  * Ninja Forms
    44   * Neo Form
     39  * Neo Forms
    4540  * WP Forms
    4641  * WeForms
    4742  * Gravity Forms
    48   * Formidable Forms
    4943  * WP Google Maps
    5044  * HTML5 Maps
     45  * Shortcode Maker
    5146  * Review Builder
    5247  * 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/` directory
    59 2. Activate the plugin through the ‘Plugins’ menu in WordPress
    60 
    61 == Changelog ==
    62 
    63 = 1.0.0 =
    64 * Initial release. 
    6548 
    6649
     
    8265 
    8366
     67== Installation ==
     681. Download and install the plugin from WordPress dashboard. You can also upload the entire “Smart Popup” folder to the `/wp-content/plugins/` directory
     692. Activate the plugin through the ‘Plugins’ menu in WordPress
     70
     71== Changelog ==
     72
     73= 1.0.0 =
     74* Initial release. 
     75 
     76
    8477
    8578
     
    8780= What about support? =
    8881Create 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? =
     83Select popup type as 'YouTube' than add Video ID in YouTube Settings.
     84= How I add Facebook Page Likebox? =
     85Select popup type as 'Facebook' than add your Page URL in Facebook Settings.
     86= How to hide popup shortcode from Post Excerpt?
     87You can change settings from settings page for it.
  • smart-popup/trunk/smart-popup.php

    r1911343 r1911472  
    6868
    6969        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'));
    7171        add_filter("manage_{$this->custom_post_name}_posts_columns", array($this, 'manage_custom_columns'));
    7272        add_action("manage_{$this->custom_post_name}_posts_custom_column", array($this, 'manage_custom_columns_value'));
     
    8282
    8383        add_action('the_content', array($this, 'add_data_in_post_content'));
     84       
    8485    }
    8586
     
    153154            'rewrite' => false,
    154155            'query_var' => false,
    155             'menu_icon' => 'dashicons-testimonial', 
     156            'menu_icon' => 'dashicons-testimonial',
    156157            'show_in_nav_menus' => false,
    157158        );
     
    195196
    196197        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'));
    198199        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'));
    199200    }
     
    242243        switch ($column) {
    243244            case 'wpsp_sc' :
    244                 echo "[" . $this->short_code_name  . " id='{$post->ID}']";
     245                echo "[" . $this->short_code_name . " id='{$post->ID}']";
    245246                break;
    246247            case 'wpsp_type' :
     
    289290    function render_short_code($atts, $content = null) {
    290291
     292        if ( ! is_single() AND $this->global_setting['hide_in_excerpt'] == 'yes' ){
     293            return;
     294        }
    291295        $atts = array_change_key_case((array) $atts, CASE_LOWER);
    292296
     
    325329
    326330    function add_data_in_post_content($content) {
    327 
     331        if ( ! is_single() AND $this->global_setting['hide_in_excerpt'] == 'yes' ){
     332            return $content;
     333        }
    328334        $pattern = get_shortcode_regex(array('wps-popup'));
    329335        preg_match_all('/' . $pattern . '/s', $content, $matches);
     
    424430        return $content;
    425431    }
     432
     433           
    426434
    427435    function show_custom_popup_input() {
  • smart-popup/trunk/view/settings.php

    r1911343 r1911472  
    5959                </div>
    6060                 
     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>
    6181                 
    6282            </div>
     83           
     84           
    6385             <br/>
    6486             <br/>
Note: See TracChangeset for help on using the changeset viewer.