Plugin Directory

Changeset 1815615


Ignore:
Timestamp:
02/05/2018 12:37:04 PM (8 years ago)
Author:
AdlPlugins
Message:

Released version 1.0.1

Location:
legal-pages/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • legal-pages/trunk/adl-legal-pages.php

    r1579911 r1815615  
    44Plugin URI: https://adlplugins.com/plugin/legal-pages-pro
    55Description: A very useful plugin to generate legal pages for your websites/ business. It is simple, easy and elegant to use. It comes with ready-made templates which gives you even better experience creating legal pages with ease. You can customize the page template too.
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: ADL plugins
    88Author URI: https://adlplugins.com
     
    3030
    3131// Make sure we don't expose any info if called directly
    32 if (!defined('ADL_LP_ALERT_MSG')) define( 'ADL_LP_ALERT_MSG', __( 'You should not access this file directly.!', 'adl-legal-pages' ) );
    33 if ( !defined('ABSPATH') ) die( ADL_LP_ALERT_MSG );
     32
     33defined('ABSPATH') || die( 'Cheating? Direct access is not allowed !!!' );
    3434if ( !defined('ADL_LP_BASE') ) { define('ADL_LP_BASE', plugin_basename( __FILE__ )); }
    3535
  • legal-pages/trunk/admin/assets/js/adl-lp-main.js

    r1579911 r1815615  
    11(function($){
    22// for making any tab as default tab for testing and working nicely after refresh.
    3 //     setTimeout(function () {
    4 //         $('a[href="#editTemplates"]').trigger('click');
    5 //     }, 200);
    6 
    73    // send user to the right tab based on the query string or url
    84    const QS = window.location.search;
     
    3733    $(".btn-pref .btn").click(function () {
    3834        $(".btn-pref .btn").removeClass("btn-primary").addClass("btn-default");
    39         // $(".tab").addClass("active"); // instead of this do the below
    4035        $(this).removeClass("btn-default").addClass("btn-primary");
    4136    });
     
    6459            }else{
    6560                autoCLoseMessage('Error: Something went wrong. <span id="adl_close_it">X</span>', 2000);
    66                 // for debugging only: add this : <pre>'+data+'</pre> below
    67                 // $('<div class="notice notice-error is-dismissible" id="successResult"><p>Error: Something went wrong.<pre>'+data+'</pre></p></div>').insertAfter(form);
    68 
    6961            }
    7062        });
     
    9688                autoCLoseMessage('Success: Data has been reset. <span id="adl_close_it">X</span>', 3000);
    9789            }else{
    98                 // for debugging only: add this : <pre>'+data+'</pre> below
    9990                $('<div class="notice notice-error is-dismissible" id="successResult"><p>Error: Something went wrong</p><pre>'+data+'</pre></div>').insertAfter(form);
    10091
     
    123114        // get submitted from data and serialize them and send them to the ajax handler
    124115
    125         //var iconBindingElement = jQuery('#adl_ajax_loader');
    126116        adlAjaxHandler( form, 'social_info_handler', formData, function(data){
    127117
     
    160150                autoCLoseMessage('Success: Data saved. <span id="adl_close_it">X</span>', 2000);
    161151            }else{
    162                 // for debugging only: add this : <pre>'+data+'</pre> below
    163152                $('<div class="notice notice-error is-dismissible" id="successResult"><p>Error: Something went wrong</p><pre>'+data+'</pre></div>').insertAfter(form);
    164153
     
    180169        $("#successResult").remove();
    181170        // get submitted from data and serialize them and send them to the ajax handler
    182 
    183         //var iconBindingElement = jQuery('#adl_ajax_loader');
    184171        adlAjaxHandler( form, 'misc_info_handler', formData, function(data){
    185 
    186172            if(data === 'success') {
    187173                autoCLoseMessage('Success: Data saved. <span id="adl_close_it">X</span>', 2000)
    188174            }else{
    189                 // for debugging only: add this : <pre>'+data+'</pre> below
    190175                $('<div class="notice notice-error is-dismissible" id="successResult"><p>Error: Something went wrong.<pre>'+data+'</pre></p></div>').insertAfter(form);
    191176
     
    225210                autoCLoseMessage('Template list updated successfully. <span id="adl_close_it">X</span>', 2000);
    226211                chooseTemplate.html('<h3>Choose a Template</h3>'+data);
    227                 // $('<div class="notice notice-success is-dismissible" id="successResult"><p>Success: Data saved.</p></div>').html(chooseTemplate);
    228                 //chooseTemplate.replaceWith('<div class="notice notice-success is-dismissible" id="successResult"><p>Success: Data saved.</p></div>');
    229             }else{
    230                 // for debugging only: add this : <pre>'+data+'</pre> below
    231                 // $('<div class="notice notice-error is-dismissible" id="successResult">'+data+'<p>Error: Something went wrong.</p></div>').html(chooseTemplate);
    232                 //chooseTemplate.html('<div class="notice notice-error is-dismissible" id="successResult">'+data+'<p>Error: Something went wrong.</p></div>');
     212
     213            }else{
    233214                chooseTemplate.html('');
    234215                autoCLoseMessage('<p class="notice notice-error">ERROR: something went wrong</p> <span id="adl_close_it"></span>', 3000);
     
    238219        });
    239220
    240         // alert('The option with value ' + $(this).val() );
    241         //Vanilla JS alternative
    242         // alert(this.options[this.selectedIndex].value);
    243         // alert(this.options[this.selectedIndex].textContent);
    244221    });
    245222
     
    295272                if(jsn){
    296273                    var parsedData = JSON.parse(data); // parsed JSON Object retuned from the database.
    297                     // lp_title.val(parsedData[0]); // set title value
    298                     // tinyMCE.activeEditor.setContent(parsedData[1]); // set tinyMCE content
    299                     // console.dir(parsedData);
     274
    300275
    301276                }
    302277                const msg = 'Page Created Successfully. You can view and edit page as normal page under WordPress Pages menu</br>'+parsedData[0] +'   ||   ' +parsedData[1]+'<span id="adl_close_it">X</span>';
    303278                autoCLoseMessage(msg, 8000);
    304                 // $(msg).insertBefore(cbtn);
    305                 // for debugging uncomment the line below. and see what is returned by the server. and it is best to var_dump() on the server side script to see what is received by the server.
    306                 // $('<div class="notice notice-error is-dismissible" id="successResult"><p>Error: Something went wrong.<pre>'+data+'</pre></p></div>').insertAfter(cbtn);
    307 
    308279
    309280            } else {
  • legal-pages/trunk/includes/classes/ADL_LP_ajax_handler.php

    r1579911 r1815615  
    11<?php
    2 if ( ! defined('ABSPATH') ) { die( ADL_LP_ALERT_MSG ); }
     2if ( ! defined('ABSPATH') ) { die( 'Cheating? Direct access is not allowed !!!' ); }
    33
    44if(!class_exists('ADL_LP_ajax_handler')):
     
    2929        add_action( 'wp_ajax_deleteLegalTemplate', array($this, 'deleteLegalTemplate'));
    3030
     31
    3132    }
    3233
     
    6566    public function addNewLegalTemplate() {
    6667        global $ADL_LP, $wpdb;
    67         var_dump($_POST);
    6868        if($ADL_LP->verifyNonce()) {
    6969            $lp_title = ( !empty($_POST['lp_title']) ) ? sanitize_text_field($_POST['lp_title']) : '';
  • legal-pages/trunk/includes/classes/ADL_LP_general.php

    r1579911 r1815615  
    11<?php
    2 if ( ! defined('ABSPATH') ) { die( ADL_LP_ALERT_MSG ); }
     2if ( ! defined('ABSPATH') ) { die( 'Cheating? Direct access is not allowed !!!' ); }
    33if(!class_exists('ADL_LP_general')):
    44class ADL_LP_general {
  • legal-pages/trunk/includes/classes/ADL_LP_helper.php

    r1579911 r1815615  
    11<?php
    22
    3 if ( ! defined('ABSPATH') ) { die( ADL_LP_ALERT_MSG ); }
     3if ( ! defined('ABSPATH') ) { die( 'Cheating? Direct access is not allowed !!!' ); }
    44
    55if( !class_exists( 'ADL_LP_helper' ) ) :
     
    4646        <div class="error"> <p>
    4747                <?php
    48                 echo ADL_LP_PLUGIN_NAME.' requires minimum PHP 5.4 to function properly. Please upgrade PHP version. The Plugin has been auto-deactivated.. You have PHP version '.PHP_VERSION;
     48                printf(esc_html__('%s requires minimum PHP 5.4 to function properly. Please upgrade PHP version. The Plugin has been auto-deactivated.. You have PHP version %d', ADL_LP_TEXTDOMAIN), ADL_LP_PLUGIN_NAME, PHP_VERSION);
    4949                ?>
    5050            </p></div>
  • legal-pages/trunk/main.php

    r1579911 r1815615  
    11<?php
    2 if ( ! defined('ABSPATH') ) { die( ADL_LP_ALERT_MSG ); } // die if the page is accessed directly
     2if ( ! defined('ABSPATH') ) { die( 'Cheating? Direct access is not allowed !!!' ); } // die if the page is accessed directly
    33
    44if ( ! class_exists('Adl_Legal_Pages') ) :
     
    1515        global $wpdb;
    1616            // Don't let the class/plugin instantiate outside of WordPress
    17             if ( ! defined('ABSPATH') ) { die( ADL_LP_ALERT_MSG ); }
     17            if ( ! defined('ABSPATH') ) { die( 'Cheating? Direct access is not allowed !!!' ); }
    1818            $this->template_table_name = $wpdb->prefix .'adl_lp_templates';
    1919            // load all classes and its object
  • legal-pages/trunk/readme.txt

    r1732717 r1815615  
    33Tags: legal, legal page, legal pages,  legal documents, law, legal page template, privacy policy, refund-policy, digital goods refund policy, linking policy, external links policy, cookie privacy policy, facebook policy, coppa - children’s online privacy policy, advertising disclosures, confidentiality disclosure, testimonials disclosure, affiliate disclosure, disclaimer, earnings disclaimer, medical disclaimer, terms of use, forced agreement to the terms, amazon affiliate, dmca, antispam, double dart cookie, about us, california privacy rights, end-user license agreement
    44Requires at least: 4.0
    5 Tested up to:  4.8.2
    6 Stable tag: 1.0
     5Tested up to:  4.9.2
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595== Changelog ==
    9696
     97= 1.0.1 =
     98* Removed dumped testing data when creating legal page template
     99* Improved Translation
    97100= 1.0 =
    98101* Initial release
  • legal-pages/trunk/views/upgrade-features.php

    r1579911 r1815615  
    22<h3>Main Features of the Pro Version</h3>
    33<ul>
    4     <li><li><span class="dashicons dashicons-yes"></span>
     4    <li><span class="dashicons dashicons-yes"></span>
    55        25 Legal Page Templates.
    66    </li>
    7     <li><li><span class="dashicons dashicons-yes"></span>
     7
     8    <li><span class="dashicons dashicons-yes"></span>
    89        Ability to show a very beautiful and customization EU-cookie agreement notice button. You can decide how to show the cookie agreement to the user.
    910    </li>
    10     <li><li><span class="dashicons dashicons-yes"></span>
     11
     12    <li><span class="dashicons dashicons-yes"></span>
    1113        You can show cookie agreement bar on any where in the page.
    1214    </li>
    13     <li><li><span class="dashicons dashicons-yes"></span>
     15
     16    <li><span class="dashicons dashicons-yes"></span>
    1417        You can also show cookie notice as a pop ups.
    1518    </li>
    16     <li><li><span class="dashicons dashicons-yes"></span>
     19    <li><span class="dashicons dashicons-yes"></span>
     20        You can customize the style and texts of cookie as much as you want.
     21    </li>
     22
     23
     24    <li><span class="dashicons dashicons-yes"></span>
    1725        Ability to show any types of popups with legal message to the user.
    1826    </li>
    19     <li><li><span class="dashicons dashicons-yes"></span>
     27
     28    <li><span class="dashicons dashicons-yes"></span>
    2029        Ability to lock down any content, page, posts using this plugin and allow user to view a certain content or page or post after they accept any terms and conditions you made.
    2130    </li>
    22     <li><li><span class="dashicons dashicons-yes"></span>
     31
     32    <li><span class="dashicons dashicons-yes"></span>
    2333        And many more.
    2434    </li>
Note: See TracChangeset for help on using the changeset viewer.