Plugin Directory

Changeset 3269513


Ignore:
Timestamp:
04/09/2025 09:07:00 AM (11 months ago)
Author:
LCweb Projects
Message:

v1.0.2 and screenshots update

Location:
privatecontent-free
Files:
269 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • privatecontent-free/trunk/privatecontent-free.php

    r3269139 r3269513  
    66Author: Luca Montanari (LCweb)
    77Author URI: https://lcweb.it
    8 Version: 1.0.1
     8Version: 1.0.2
    99License: GPLv2 or later
    1010Requires at least: 5.0
     
    3232
    3333// plugin version
    34 define('PC_VERS', '1.0.1');
     34define('PC_VERS', '1.0.2');
    3535
    3636// indovina indovinello
  • privatecontent-free/trunk/readme.txt

    r3269364 r3269513  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    108108== Screenshots ==
    109109
    110 1. Users list
    111 2. Live restrictions preview
    112 3. Backend user Dashboard
     1101. Login and registration forms
     1113. sectioned and fluid registration forms
     1123. User deletion and logout boxes
     1134. Live restrictions preview
     1145. Users list
     1156. Backend user dashboard
     1167. Posts/pages list - restrictions helper
     1178. Post editor - restrictions wizard
     1189. User category form
     11910. Main settings
     12011. Registration settings
     12112. WP user sync settings
     12213. Styling settings
     12314. Import/export hub
    113124
    114125
     
    117128
    118129= 1.0.2 =
     130* fixed: settings view
     131
     132
     133= 1.0.1 =
    119134* added: anti-cache system for logged users (WP 6.8)
    120135* new: better returned string handling for AJAX logout button
  • privatecontent-free/trunk/settings/settings_engine.php

    r3267439 r3269513  
    103103       
    104104        echo '
    105         <form name="'. esc_attr('pvtcontent_admin') .'settings_form" method="post" class="lcwp_settings_form '. esc_attr('pvtcontent_admin') .'settings_form form-wrap" action="'. esc_attr($form_action) .'" novalidate>';
     105        <form name="'. esc_attr(self::$css_prefix) .'settings_form" method="post" class="lcwp_settings_form '. esc_attr(self::$css_prefix) .'settings_form form-wrap" action="'. esc_attr($form_action) .'" novalidate>';
    106106       
    107107            // tabs
     
    114114                }
    115115               
    116                 echo '<div id="'. esc_attr($tab_id) .'" class="lcwp_settings_block '. esc_attr('pvtcontent_admin') .'settings_block">';
     116                echo '<div id="'. esc_attr($tab_id) .'" class="lcwp_settings_block '. esc_attr(self::$css_prefix) .'settings_block">';
    117117               
    118118                foreach($this->structure[ $tab_id ] as $sect_id => $section) {
     
    122122                   
    123123                    if($section['sect_name']) {
    124                        echo '<h3 class="lcwp_settings_sect_title '. esc_attr('pvtcontent_admin') .'settings_sect_title" data-sect-id="'. esc_attr($sect_id) .'">'. self::wp_kses_ext($section['sect_name']) .'</h3>';
     124                       echo '<h3 class="lcwp_settings_sect_title '. esc_attr(self::$css_prefix) .'settings_sect_title" data-sect-id="'. esc_attr($sect_id) .'">'. self::wp_kses_ext($section['sect_name']) .'</h3>';
    125125                    }
    126126                   
     
    135135                   
    136136                    if($use_table) {
    137                         echo '<table class="widefat lcwp_settings_table '. esc_attr('pvtcontent_admin') .'settings_block" data-sect-id="'. esc_attr($sect_id) .'"><tbody>';
     137                        echo '<table class="widefat lcwp_settings_table '. esc_attr(self::$css_prefix) .'settings_block" data-sect-id="'. esc_attr($sect_id) .'"><tbody>';
    138138                    }
    139139                   
     
    158158            // nonce & submit button
    159159            echo '
    160             <input type="hidden" name="'. esc_attr('pvtcontent_admin') .'settings_nonce" value="'. esc_attr(wp_create_nonce('lcwp')) .'" />
     160            <input type="hidden" name="'. esc_attr(self::$css_prefix) .'settings_nonce" value="'. esc_attr(wp_create_nonce('lcwp')) .'" />
    161161            <input type="submit" name="'. esc_attr($this->submit_btn_name) .'" value="'. esc_attr__('Update Options', 'privatecontent-free') .'" class="button-primary lcwp_settings_submit" />
    162162           
     
    172172    /* tabs code */
    173173    protected function tabs_code() {
    174         $code = '<h2 class="nav-tab-wrapper lcwp_settings_tabs '.'pvtcontent_admin'.'settings_tabs">';
     174        $code = '<h2 class="nav-tab-wrapper lcwp_settings_tabs '.self::$css_prefix.'settings_tabs">';
    175175       
    176176        foreach($this->tabs as $i => $v) {
     
    224224        if($f['type'] == 'spacer') {
    225225            $tr_hidden = (isset($f['hide']) && $f['hide']) ? 'lcwp_sf_displaynone' : '';
    226             echo '<tr class="lcwp_sf_tr '. esc_attr('pvtcontent_admin' . $field_id .' '. $tr_hidden) .'"><td class="lcwp_sf_spacer" data-field-id="'. esc_attr($field_id) .'" colspan="3"></td></tr>';
     226            echo '<tr class="lcwp_sf_tr '. esc_attr(self::$css_prefix . $field_id .' '. $tr_hidden) .'"><td class="lcwp_sf_spacer" data-field-id="'. esc_attr($field_id) .'" colspan="3"></td></tr>';
    227227           
    228228            // store js visibility params
     
    236236        if($f['type'] == 'message') {
    237237            $tr_hidden = (isset($f['hide']) && $f['hide']) ? 'lcwp_sf_displaynone' : '';
    238             echo '<tr class="lcwp_sf_tr '. esc_attr('pvtcontent_admin' . $field_id .' '. $tr_hidden) .'"><td class="lcwp_sf_message" data-field-id="'. esc_attr($field_id) .'" colspan="3">'. self::wp_kses_ext($f['content']) .'</td></tr>';
     238            echo '<tr class="lcwp_sf_tr '. esc_attr(self::$css_prefix . $field_id .' '. $tr_hidden) .'"><td class="lcwp_sf_message" data-field-id="'. esc_attr($field_id) .'" colspan="3">'. self::wp_kses_ext($f['content']) .'</td></tr>';
    239239           
    240240            // store js visibility params
     
    249249            $tr_hidden = (isset($f['hide']) && $f['hide']) ? 'lcwp_sf_displaynone' : '';
    250250            echo '
    251             <tr class="lcwp_sf_tr '. esc_attr('pvtcontent_admin' . $field_id .' '. $tr_hidden) .'">
     251            <tr class="lcwp_sf_tr '. esc_attr(self::$css_prefix . $field_id .' '. $tr_hidden) .'">
    252252                <td class="lcwp_sf_label"><label>'. self::wp_kses_ext($f['label']) .'</label></td>
    253253                <td class="lcwp_sf_message" data-field-id="'. esc_attr($field_id) .'" colspan="2">'. self::wp_kses_ext($f['content']) .'</td>
     
    274274           
    275275            echo '
    276             <tr class="lcwp_sf_fullw_helper_tr '. esc_attr('pvtcontent_admin' . $field_id .' '. $tr_hidden) .'" data-arrow-pos="'. esc_attr($arrow_pos) .'" data-linked-f="'. esc_attr('pvtcontent_admin' .  $f['linked_field']) .'">
     276            <tr class="lcwp_sf_fullw_helper_tr '. esc_attr(self::$css_prefix . $field_id .' '. $tr_hidden) .'" data-arrow-pos="'. esc_attr($arrow_pos) .'" data-linked-f="'. esc_attr(self::$css_prefix .  $f['linked_field']) .'">
    277277                <td colspan="3">
    278278                    <div class="lcwp_sf_fullw_helper" data-helper-name="'. esc_attr($field_id) .'"><div>'. self::wp_kses_ext($f['content']) .'</div></div>
     
    291291       
    292292        $tr_hidden = (isset($f['hide']) && $f['hide']) ? 'lcwp_sf_displaynone' : '';
    293         echo '<tr class="lcwp_sf_tr '. esc_attr('pvtcontent_admin' . $field_id .' '. $tr_hidden) .'">';
     293        echo '<tr class="lcwp_sf_tr '. esc_attr(self::$css_prefix . $field_id .' '. $tr_hidden) .'">';
    294294       
    295295       
     
    735735       
    736736        // check nonce
    737         $noncename = 'pvtcontent_admin' .'settings_nonce';
     737        $noncename = self::$css_prefix .'settings_nonce';
    738738        if(!isset($_POST[$noncename]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST[$noncename])), 'lcwp')) {
    739739            $this->errors = array('Cheating?');
     
    922922    public function handle_import_data() {
    923923        $import_str = sanitize_text_field($_GET['lcwp_sf_import']);
    924         $nonce_attr = 'pvtcontent_admin' .'settings_nonce';
     924        $nonce_attr = self::$css_prefix .'settings_nonce';
    925925       
    926926        if(substr($import_str, 0, 4) == 'gzc_') {
     
    10541054                }
    10551055               
    1056                 window.location.href = import_baseurl +"="+ encodeURIComponent(json_data.trim()) +"&lcwp_sf_is_importing&'. esc_js('pvtcontent_admin') .'settings_nonce='. esc_js(wp_create_nonce('lcwp')) .'";
     1056                window.location.href = import_baseurl +"="+ encodeURIComponent(json_data.trim()) +"&lcwp_sf_is_importing&'. esc_js(self::$css_prefix) .'settings_nonce='. esc_js(wp_create_nonce('lcwp')) .'";
    10571057            });
    10581058           
Note: See TracChangeset for help on using the changeset viewer.