WordPress.org

Plugin Directory

Changeset 1647124


Ignore:
Timestamp:
04/28/17 04:44:19 (7 months ago)
Author:
mndpsingh287
Message:

released version

Location:
newsletter-popup/trunk
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • newsletter-popup/trunk/app/inc/addnew.php

    r1609328 r1647124  
    447447?> 
    448448<div class="wrap"> 
     449<?php $this->load_help_desk();?> 
    449450<h2><?php _e('Add New', 'nlp'); ?></h2> 
    450451<form action="" method="post" name="nl_form"> 
  • newsletter-popup/trunk/app/inc/buy_pro.php

    r1609383 r1647124  
    11<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 
    22<div class="wrap nl_buy_pro"> 
     3<?php $this->load_help_desk();?> 
    34    <h1 class="wp-heading-inline"><?php _e('Pro Features', 'nlp'); ?></h1> 
    45    <a href="http://newsletterpopup.webdesi9.com/product/newsletter-popup/" class="page-title-action">Buy Now</a> 
  • newsletter-popup/trunk/app/inc/edititem.php

    r1609328 r1647124  
    4141</script> 
    4242<div class="wrap"> 
     43<?php $this->load_help_desk();?> 
    4344<h2><?php _e('Edit Popup', 'nlp'); ?></h2> 
    4445<?php if(isset($_GET['msg'])) { $this->flash($_GET['msg']); } ?> 
  • newsletter-popup/trunk/app/inc/editsettings.php

    r1564211 r1647124  
    1 <div class="wrap">       
     1<div class="wrap">   
     2<?php $this->load_help_desk();?>     
    23<h2><?php _e('Settings', 'nlp'); ?> </h2> 
    34<?php if(isset($_GET['msg'])) { $this->flash($_GET['msg']); } ?>         
     
    78    unset($_POST['save-nl-options']); 
    89    $updatedOptions = update_option('mk_newsletter_settings',$_POST); 
    9     if($updatedOptions) 
    10     { 
     10    if($updatedOptions){ 
    1111        echo 'Updating...'; 
    1212        $this->redirect('?page=wp_newsletter_edit_settings&msg=8'); 
  • newsletter-popup/trunk/app/inc/newsletter_type.php

    r1609328 r1647124  
    152152?> 
    153153<div class="wrap"> 
     154<?php $this->load_help_desk();?> 
    154155        <div id="icon-wp_newsletter-popup" class="icon32"><br></div> 
    155156             
  • newsletter-popup/trunk/app/inc/overview.php

    r1609328 r1647124  
    11<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 
    22<div class="wrap"> 
     3<?php $this->load_help_desk();?> 
    34        <div id="icon-wp_newsletter-popup" class="icon32"><br></div>             
    45        <h2><?php _e('Newsletter Popup Version', 'nlp'); ?> <?php echo MK_NEWSLETTER_VERSION; ?> </h2>        
  • newsletter-popup/trunk/app/inc/showitems.php

    r1585691 r1647124  
    1313?> 
    1414<div class="wrap"> 
     15<?php $this->load_help_desk();?> 
    1516<h2><?php _e('Manage Newsletter', 'nlp'); ?> <a href="admin.php?page=wp_newsletter_type" class="add-new-h2"> <?php _e('New Newsletter', 'nlp'); ?></a> <!--a href="admin.php?page=wp_newsletter_show_items&action=delete_cookies" class="add-new-h2"> <?php _e('Delete Newsletter Cookies', 'nlp'); ?></a--></h2> 
    1617<?php if(isset($_GET['msg'])) { $this->flash($_GET['msg']); } ?> 
  • newsletter-popup/trunk/app/inc/showlocalrecord.php

    r1585691 r1647124  
    1212} ?> 
    1313<div class="wrap"> 
     14<?php $this->load_help_desk();?> 
    1415<h2><?php _e('Subscribers List', 'nlp'); ?></h2> 
    1516<?php if(isset($_GET['msg'])) { $this->flash($_GET['msg']); } ?> 
  • newsletter-popup/trunk/app/mk_newsletter_controller.php

    r1609328 r1647124  
    391391      echo $redirect; 
    392392     } 
     393      /* 
     394     * Load Help Desk 
     395     */ 
     396     public function load_help_desk() { 
     397            $mkcontent = ''; 
     398            $mkcontent .='<div class="nlhdm" style="display:none;">'; 
     399            $mkcontent .='<div class="l_nlhdm">'; 
     400            $mkcontent .=''; 
     401            $mkcontent .='</div>'; 
     402            $mkcontent .='<div class="r_nlhdm">'; 
     403            $mkcontent .='<a class="close_nl_help fm_close_btn" href="javascript:void(0)" data-ct="rate_later" title="close">X</a><strong>Newsletter Popup</strong><p>We love and care about you. Our team is putting maximum efforts to provide you the best functionalities. It would be highly appreciable if you could spend a couple of seconds to give a Nice Review to the plugin to appreciate our efforts. So we can work hard to provide new features regularly :)</p></div><a class="close_nl_help fm_close_btn_1" href="javascript:void(0)" data-ct="rate_later" title="Remind me later">Later</a> <a class="close_nl_help fm_close_btn_2" href="https://wordpress.org/support/plugin/newsletter-popup/reviews/?filter=5" data-ct="rate_now" title="Rate us now" target="_blank">Rate Us</a> <a class="close_nl_help fm_close_btn_3" href="javascript:void(0)" data-ct="rate_never" title="Not interested">Never</a>'; 
     404            $mkcontent .='<div class="clear"></div></div>'; 
     405           if ( false === ( $mk_np_close_np_help_c = get_transient( 'mk_np_close_np_help_c' ) ) ) { 
     406                echo apply_filters('the_content', $mkcontent);   
     407           } 
     408        } 
    393409} 
  • newsletter-popup/trunk/mk_newsletter.php

    r1624866 r1647124  
    44Plugin URI: http://www.webdesi9.com/newsletter-popup 
    55Description: WordPress Newsletter Popup Plugin 
    6 Version: 1.1 
     6Version: 1.2 
    77Author: mndpsingh287 
    88Author URI: https://profiles.wordpress.org/mndpsingh287/ 
     
    1010if (defined('MK_NEWSLETTER_VERSION')) 
    1111    return; 
    12 define('MK_NEWSLETTER_VERSION', '1.0'); 
     12define('MK_NEWSLETTER_VERSION', '1.2'); 
    1313define('MK_NEWSLETTER_URL', plugin_dir_url( __FILE__ )); 
    1414define('MK_NEWSLETTER_PATH', plugin_dir_path( __FILE__ )); 
    1515define('MK_NEWSLETTER_PLUGIN', basename(dirname(__FILE__)) . '/' . basename(__FILE__)); 
    16 define('MK_NEWSLETTER_PLUGIN_VERSION', '1.0'); 
     16define('MK_NEWSLETTER_PLUGIN_VERSION', '1.2'); 
    1717if(!function_exists('wp_get_current_user')) { 
    1818    include(ABSPATH . "wp-includes/pluggable.php");  
     
    7373         
    7474        add_action( 'wp_ajax_nopriv_newsletter_service_validator', array(&$this, 'newsletter_service_validator'));   
     75         
     76        add_action("wp_ajax_mk_np_close_np_help", array($this, "mk_np_close_np_help")); 
    7577          
    7678        add_action( 'admin_init', array(&$this, 'enqueue_script') ); 
     
    170172        {   
    171173             $page = isset($_GET['page']) ? $_GET['page'] : ''; 
     174              wp_enqueue_style( 'nl_ad_css', plugins_url('/app/inc/css/nl_ad.css', __FILE__)); 
     175              wp_enqueue_script( 'nl_ad_js', plugins_url('/app/inc/js/nl_ad.js', __FILE__) ); 
    172176             if(!empty($page)) 
    173177             { 
     
    531535      die;   
    532536     } 
     537      /* 
     538      * set  
     539      */     
     540     public function mk_np_close_np_help() { 
     541           $what_to_do = sanitize_text_field($_POST['what_to_do']); 
     542           $expire_time = 15; 
     543          if($what_to_do == 'rate_now' || $what_to_do == 'rate_never') { 
     544             $expire_time = 365; 
     545          } else if($what_to_do == 'rate_later') { 
     546             $expire_time = 15; 
     547          }  
     548          if ( false === ( $mk_np_close_np_help_c = get_transient( 'mk_np_close_np_help_c' ) ) ) { 
     549               $set =  set_transient( 'mk_np_close_np_help_c', 'mk_np_close_np_help_c', 60 * 60 * 24 * $expire_time ); 
     550                 if($set) { 
     551                     echo 'ok'; 
     552                 } else { 
     553                     echo 'oh'; 
     554                 } 
     555               } else { 
     556                    echo 'ac'; 
     557               } 
     558           die; 
     559       } 
    533560    } 
    534561    new newsletter_popup(); 
  • newsletter-popup/trunk/readme.txt

    r1609383 r1647124  
    44Requires at least: 3.4 
    55Tested up to: 4.7.2 
    6 Stable tag: 1.1 
     6Stable tag: 1.2 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    6464* Fix CSS Issue and Bugs 
    6565 
     66= 1.2 28th April ,2017) = 
     67* Fix CSS Issue and Bugs 
     68 
    6669== Other Notes == 
    6770 
Note: See TracChangeset for help on using the changeset viewer.