Changeset 3269513
- Timestamp:
- 04/09/2025 09:07:00 AM (11 months ago)
- Location:
- privatecontent-free
- Files:
-
- 269 added
- 2 deleted
- 4 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-10.png (added)
-
assets/screenshot-11.png (added)
-
assets/screenshot-12.png (added)
-
assets/screenshot-13.png (added)
-
assets/screenshot-14.png (added)
-
assets/screenshot-2.PNG (added)
-
assets/screenshot-2.jpg (deleted)
-
assets/screenshot-3.PNG (added)
-
assets/screenshot-3.jpg (deleted)
-
assets/screenshot-4.jpg (added)
-
assets/screenshot-5.png (added)
-
assets/screenshot-6.jpg (added)
-
assets/screenshot-7.png (added)
-
assets/screenshot-8.png (added)
-
assets/screenshot-9.png (added)
-
tags/1.0.2 (added)
-
tags/1.0.2/builders_integration (added)
-
tags/1.0.2/builders_integration/guten_elements (added)
-
tags/1.0.2/builders_integration/guten_elements/common.js (added)
-
tags/1.0.2/builders_integration/guten_elements/login (added)
-
tags/1.0.2/builders_integration/guten_elements/login/login.js (added)
-
tags/1.0.2/builders_integration/guten_elements/login/login.php (added)
-
tags/1.0.2/builders_integration/guten_elements/logout (added)
-
tags/1.0.2/builders_integration/guten_elements/logout/logout.js (added)
-
tags/1.0.2/builders_integration/guten_elements/logout/logout.php (added)
-
tags/1.0.2/builders_integration/guten_elements/registr (added)
-
tags/1.0.2/builders_integration/guten_elements/registr/registr.js (added)
-
tags/1.0.2/builders_integration/guten_elements/registr/registr.php (added)
-
tags/1.0.2/builders_integration/guten_elements/user_del (added)
-
tags/1.0.2/builders_integration/guten_elements/user_del/user_del.js (added)
-
tags/1.0.2/builders_integration/guten_elements/user_del/user_del.php (added)
-
tags/1.0.2/builders_integration/gutenberg.php (added)
-
tags/1.0.2/classes (added)
-
tags/1.0.2/classes/PhpXlsxGenerator.php (added)
-
tags/1.0.2/classes/datetime_getimestamp_fix.php (added)
-
tags/1.0.2/classes/engine_import_export.php (added)
-
tags/1.0.2/classes/lc_fontAwesome_helper.php (added)
-
tags/1.0.2/classes/messages_style.php (added)
-
tags/1.0.2/classes/meta_manag.php (added)
-
tags/1.0.2/classes/pc_anti_bruteforce_static.php (added)
-
tags/1.0.2/classes/pc_form_framework.php (added)
-
tags/1.0.2/classes/pc_static.php (added)
-
tags/1.0.2/classes/pc_wp_user_caps_static.php (added)
-
tags/1.0.2/classes/posts_restr_cache.php (added)
-
tags/1.0.2/classes/restrictions_wizard.php (added)
-
tags/1.0.2/classes/simple_form_validator.php (added)
-
tags/1.0.2/classes/upgrader_operations.php (added)
-
tags/1.0.2/classes/users_import_export.php (added)
-
tags/1.0.2/classes/users_manag.php (added)
-
tags/1.0.2/classes/wp_user_sync.php (added)
-
tags/1.0.2/css (added)
-
tags/1.0.2/css/admin.css (added)
-
tags/1.0.2/css/fontAwesome (added)
-
tags/1.0.2/css/fontAwesome/css (added)
-
tags/1.0.2/css/fontAwesome/css/all.min.css (added)
-
tags/1.0.2/css/fontAwesome/v5.15.2.txt (added)
-
tags/1.0.2/css/fontAwesome/webfonts (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-brands-400.eot (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-brands-400.svg (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-brands-400.woff (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-regular-400.eot (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-regular-400.svg (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-regular-400.woff (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-solid-900.eot (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-solid-900.svg (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-solid-900.woff (added)
-
tags/1.0.2/css/fontAwesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.0.2/css/front_wp_topbar.css (added)
-
tags/1.0.2/css/frontend.css (added)
-
tags/1.0.2/css/frontend.min.css (added)
-
tags/1.0.2/css/frontend.min_for_divi.css (added)
-
tags/1.0.2/img (added)
-
tags/1.0.2/img/ADVs (added)
-
tags/1.0.2/img/ADVs/adv_btm_bg.webp (added)
-
tags/1.0.2/img/ADVs/adv_main.png (added)
-
tags/1.0.2/img/ADVs/adv_top_bg.webp (added)
-
tags/1.0.2/img/ADVs/bundle_logo.svg (added)
-
tags/1.0.2/img/ADVs/discount_ribbon.svg (added)
-
tags/1.0.2/img/ADVs/gradient_shape.svg (added)
-
tags/1.0.2/img/ADVs/pcfm.png (added)
-
tags/1.0.2/img/ADVs/pcma.png (added)
-
tags/1.0.2/img/ADVs/pcpp.png (added)
-
tags/1.0.2/img/ADVs/pcua.png (added)
-
tags/1.0.2/img/ADVs/pcud.png (added)
-
tags/1.0.2/img/ADVs/semi_transp_pattern.webp (added)
-
tags/1.0.2/img/cs_icon.svg (added)
-
tags/1.0.2/img/csv_exp_icon.svg (added)
-
tags/1.0.2/img/csv_imp_icon.svg (added)
-
tags/1.0.2/img/engine_exp_icon.svg (added)
-
tags/1.0.2/img/engine_imp_icon.svg (added)
-
tags/1.0.2/img/lcweb_logo.png (added)
-
tags/1.0.2/img/mess_styles (added)
-
tags/1.0.2/img/mess_styles/bold_colors.jpg (added)
-
tags/1.0.2/img/mess_styles/bold_colors_w_icon.jpg (added)
-
tags/1.0.2/img/mess_styles/minimal.jpg (added)
-
tags/1.0.2/img/mess_styles/outlined_w_icon.jpg (added)
-
tags/1.0.2/img/mess_styles/soft_colors.jpg (added)
-
tags/1.0.2/img/mess_styles/soft_colors_w_icon.jpg (added)
-
tags/1.0.2/img/pc_exp_icon.svg (added)
-
tags/1.0.2/img/pc_imp_icon.svg (added)
-
tags/1.0.2/img/pc_logo.svg (added)
-
tags/1.0.2/img/pc_page_icon.png (added)
-
tags/1.0.2/img/preset_styles_demo (added)
-
tags/1.0.2/img/preset_styles_demo/dark.jpg (added)
-
tags/1.0.2/img/preset_styles_demo/light.jpg (added)
-
tags/1.0.2/img/preset_styles_demo/minimal.jpg (added)
-
tags/1.0.2/img/users_icon_tinymce.png (added)
-
tags/1.0.2/img/vc_icon.png (added)
-
tags/1.0.2/img/wp_imp_icon.svg (added)
-
tags/1.0.2/img/wp_synced.png (added)
-
tags/1.0.2/js (added)
-
tags/1.0.2/js/admin.js (added)
-
tags/1.0.2/js/frontend.js (added)
-
tags/1.0.2/js/frontend.min.js (added)
-
tags/1.0.2/js/lc-color-picker (added)
-
tags/1.0.2/js/lc-color-picker/lc_color_picker.js (added)
-
tags/1.0.2/js/lc-color-picker/lc_color_picker.min.js (added)
-
tags/1.0.2/js/lc-range-n-num (added)
-
tags/1.0.2/js/lc-range-n-num/LICENSE (added)
-
tags/1.0.2/js/lc-range-n-num/lc_range_n_num.js (added)
-
tags/1.0.2/js/lc-range-n-num/lc_range_n_num.min.js (added)
-
tags/1.0.2/js/lc-select (added)
-
tags/1.0.2/js/lc-select/lc_select.js (added)
-
tags/1.0.2/js/lc-select/lc_select.min.js (added)
-
tags/1.0.2/js/lc-select/themes (added)
-
tags/1.0.2/js/lc-select/themes/dark.css (added)
-
tags/1.0.2/js/lc-select/themes/dark_prefixed.css (added)
-
tags/1.0.2/js/lc-select/themes/lcwp_prefixed.css (added)
-
tags/1.0.2/js/lc-select/themes/light.css (added)
-
tags/1.0.2/js/lc-select/themes/light_prefixed.css (added)
-
tags/1.0.2/js/lc-switch (added)
-
tags/1.0.2/js/lc-switch/LICENSE (added)
-
tags/1.0.2/js/lc-switch/lc_switch.js (added)
-
tags/1.0.2/js/lc-switch/lc_switch.min.js (added)
-
tags/1.0.2/js/lc-wp-popup-message (added)
-
tags/1.0.2/js/lc-wp-popup-message/LICENSE (added)
-
tags/1.0.2/js/lc-wp-popup-message/lc_wp_popup_message.js (added)
-
tags/1.0.2/js/lc-wp-popup-message/lc_wp_popup_message.min.js (added)
-
tags/1.0.2/js/magnific_popup (added)
-
tags/1.0.2/js/magnific_popup/jquery.magnific-popup.js (added)
-
tags/1.0.2/js/magnific_popup/magnific-popup.css (added)
-
tags/1.0.2/js/magnific_popup/magnific-popup.min.css (added)
-
tags/1.0.2/js/magnific_popup/magnific-popup.pckg-CODE-TWEAKED-TO-AVOID-INTERFERENCES.txt (added)
-
tags/1.0.2/js/magnific_popup/magnific-popup.pckg.js (added)
-
tags/1.0.2/js/tinymce_btn.js (added)
-
tags/1.0.2/lang_admin (added)
-
tags/1.0.2/lang_admin/privatecontent-free-fa_IR.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-fa_IR.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free-it_IT.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-it_IT.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free-nl_BE.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-nl_BE.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free-nl_NL.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-nl_NL.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free-pt_BR.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-pt_BR.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free-sv_SE.mo (added)
-
tags/1.0.2/lang_admin/privatecontent-free-sv_SE.po (added)
-
tags/1.0.2/lang_admin/privatecontent-free.pot (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/privatecontent-free-af_ZA.mo (added)
-
tags/1.0.2/languages/privatecontent-free-af_ZA.po (added)
-
tags/1.0.2/languages/privatecontent-free-bg_BG.mo (added)
-
tags/1.0.2/languages/privatecontent-free-bg_BG.po (added)
-
tags/1.0.2/languages/privatecontent-free-cs_CZ.mo (added)
-
tags/1.0.2/languages/privatecontent-free-cs_CZ.po (added)
-
tags/1.0.2/languages/privatecontent-free-da_DK.mo (added)
-
tags/1.0.2/languages/privatecontent-free-da_DK.po (added)
-
tags/1.0.2/languages/privatecontent-free-de_DE.mo (added)
-
tags/1.0.2/languages/privatecontent-free-de_DE.po (added)
-
tags/1.0.2/languages/privatecontent-free-el.mo (added)
-
tags/1.0.2/languages/privatecontent-free-el.po (added)
-
tags/1.0.2/languages/privatecontent-free-el_GR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-el_GR.po (added)
-
tags/1.0.2/languages/privatecontent-free-es_AR.MO (added)
-
tags/1.0.2/languages/privatecontent-free-es_AR.PO (added)
-
tags/1.0.2/languages/privatecontent-free-es_ES.mo (added)
-
tags/1.0.2/languages/privatecontent-free-es_ES.po (added)
-
tags/1.0.2/languages/privatecontent-free-et.mo (added)
-
tags/1.0.2/languages/privatecontent-free-et.po (added)
-
tags/1.0.2/languages/privatecontent-free-fa_IR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-fa_IR.po (added)
-
tags/1.0.2/languages/privatecontent-free-fi.mo (added)
-
tags/1.0.2/languages/privatecontent-free-fi.po (added)
-
tags/1.0.2/languages/privatecontent-free-fr_FR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-fr_FR.po (added)
-
tags/1.0.2/languages/privatecontent-free-hr_HR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-hr_HR.po (added)
-
tags/1.0.2/languages/privatecontent-free-hu_HU.mo (added)
-
tags/1.0.2/languages/privatecontent-free-hu_HU.po (added)
-
tags/1.0.2/languages/privatecontent-free-it_IT.mo (added)
-
tags/1.0.2/languages/privatecontent-free-it_IT.po (added)
-
tags/1.0.2/languages/privatecontent-free-ka_KA.mo (added)
-
tags/1.0.2/languages/privatecontent-free-ka_KA.po (added)
-
tags/1.0.2/languages/privatecontent-free-nb_NO.mo (added)
-
tags/1.0.2/languages/privatecontent-free-nb_NO.po (added)
-
tags/1.0.2/languages/privatecontent-free-nl_BE.mo (added)
-
tags/1.0.2/languages/privatecontent-free-nl_BE.po (added)
-
tags/1.0.2/languages/privatecontent-free-nl_NL.mo (added)
-
tags/1.0.2/languages/privatecontent-free-nl_NL.po (added)
-
tags/1.0.2/languages/privatecontent-free-pl_PL.mo (added)
-
tags/1.0.2/languages/privatecontent-free-pl_PL.po (added)
-
tags/1.0.2/languages/privatecontent-free-pt_BR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-pt_BR.po (added)
-
tags/1.0.2/languages/privatecontent-free-ro_RO.mo (added)
-
tags/1.0.2/languages/privatecontent-free-ro_RO.po (added)
-
tags/1.0.2/languages/privatecontent-free-ru_RU.mo (added)
-
tags/1.0.2/languages/privatecontent-free-ru_RU.po (added)
-
tags/1.0.2/languages/privatecontent-free-sk_SK.mo (added)
-
tags/1.0.2/languages/privatecontent-free-sk_SK.po (added)
-
tags/1.0.2/languages/privatecontent-free-sv_SE.mo (added)
-
tags/1.0.2/languages/privatecontent-free-sv_SE.po (added)
-
tags/1.0.2/languages/privatecontent-free-tr_TR.mo (added)
-
tags/1.0.2/languages/privatecontent-free-tr_TR.po (added)
-
tags/1.0.2/languages/privatecontent-free.pot (added)
-
tags/1.0.2/main_includes (added)
-
tags/1.0.2/main_includes/admin_ajax.php (added)
-
tags/1.0.2/main_includes/admin_menu.php (added)
-
tags/1.0.2/main_includes/cpt_and_ct.php (added)
-
tags/1.0.2/main_includes/custom_style.php (added)
-
tags/1.0.2/main_includes/db_manag.php (added)
-
tags/1.0.2/main_includes/front_ajax.php (added)
-
tags/1.0.2/main_includes/live_restr_preview.php (added)
-
tags/1.0.2/main_includes/login_widget.php (added)
-
tags/1.0.2/main_includes/nav_menu_option.php (added)
-
tags/1.0.2/main_includes/pcfree_welcome.php (added)
-
tags/1.0.2/main_includes/pcua_integration.php (added)
-
tags/1.0.2/main_includes/premium_adv.php (added)
-
tags/1.0.2/main_includes/public_api.php (added)
-
tags/1.0.2/main_includes/scripts_n_styles_include.php (added)
-
tags/1.0.2/main_includes/shortcodes.php (added)
-
tags/1.0.2/main_includes/tinymce_implementation.php (added)
-
tags/1.0.2/main_includes/user_auth.php (added)
-
tags/1.0.2/main_includes/user_categories.php (added)
-
tags/1.0.2/main_includes/user_pvt_page.php (added)
-
tags/1.0.2/main_includes/users_list.php (added)
-
tags/1.0.2/main_includes/wp_user_tricks.php (added)
-
tags/1.0.2/privatecontent-free.php (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/restrictions (added)
-
tags/1.0.2/restrictions/redirect_engine.php (added)
-
tags/1.0.2/settings (added)
-
tags/1.0.2/settings/custom_fields.php (added)
-
tags/1.0.2/settings/field_options.php (added)
-
tags/1.0.2/settings/mandatory_js.php (added)
-
tags/1.0.2/settings/nfpcf.php (added)
-
tags/1.0.2/settings/preset_styles.php (added)
-
tags/1.0.2/settings/settings_engine.php (added)
-
tags/1.0.2/settings/settings_style.css (added)
-
tags/1.0.2/settings/structure.php (added)
-
tags/1.0.2/settings/view.php (added)
-
tags/1.0.2/user_dashboard (added)
-
tags/1.0.2/user_dashboard/ajax.php (added)
-
tags/1.0.2/user_dashboard/dashboard_engine.php (added)
-
tags/1.0.2/user_dashboard/structure.php (added)
-
tags/1.0.2/user_dashboard/view.php (added)
-
tags/1.0.2/users_import_export (added)
-
tags/1.0.2/users_import_export/csv_export.php (added)
-
tags/1.0.2/users_import_export/csv_import.php (added)
-
tags/1.0.2/users_import_export/engine_export.php (added)
-
tags/1.0.2/users_import_export/engine_import.php (added)
-
tags/1.0.2/users_import_export/imp_exp_hub.php (added)
-
tags/1.0.2/users_import_export/pvtc_export.php (added)
-
tags/1.0.2/users_import_export/pvtc_import.php (added)
-
tags/1.0.2/users_import_export/wp_import.php (added)
-
tags/1.0.2/wpml-config.xml (added)
-
trunk/privatecontent-free.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/settings/settings_engine.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
privatecontent-free/trunk/privatecontent-free.php
r3269139 r3269513 6 6 Author: Luca Montanari (LCweb) 7 7 Author URI: https://lcweb.it 8 Version: 1.0. 18 Version: 1.0.2 9 9 License: GPLv2 or later 10 10 Requires at least: 5.0 … … 32 32 33 33 // plugin version 34 define('PC_VERS', '1.0. 1');34 define('PC_VERS', '1.0.2'); 35 35 36 36 // indovina indovinello -
privatecontent-free/trunk/readme.txt
r3269364 r3269513 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 108 108 == Screenshots == 109 109 110 1. Users list 111 2. Live restrictions preview 112 3. Backend user Dashboard 110 1. Login and registration forms 111 3. sectioned and fluid registration forms 112 3. User deletion and logout boxes 113 4. Live restrictions preview 114 5. Users list 115 6. Backend user dashboard 116 7. Posts/pages list - restrictions helper 117 8. Post editor - restrictions wizard 118 9. User category form 119 10. Main settings 120 11. Registration settings 121 12. WP user sync settings 122 13. Styling settings 123 14. Import/export hub 113 124 114 125 … … 117 128 118 129 = 1.0.2 = 130 * fixed: settings view 131 132 133 = 1.0.1 = 119 134 * added: anti-cache system for logged users (WP 6.8) 120 135 * new: better returned string handling for AJAX logout button -
privatecontent-free/trunk/settings/settings_engine.php
r3267439 r3269513 103 103 104 104 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>'; 106 106 107 107 // tabs … … 114 114 } 115 115 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">'; 117 117 118 118 foreach($this->structure[ $tab_id ] as $sect_id => $section) { … … 122 122 123 123 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>'; 125 125 } 126 126 … … 135 135 136 136 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>'; 138 138 } 139 139 … … 158 158 // nonce & submit button 159 159 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')) .'" /> 161 161 <input type="submit" name="'. esc_attr($this->submit_btn_name) .'" value="'. esc_attr__('Update Options', 'privatecontent-free') .'" class="button-primary lcwp_settings_submit" /> 162 162 … … 172 172 /* tabs code */ 173 173 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">'; 175 175 176 176 foreach($this->tabs as $i => $v) { … … 224 224 if($f['type'] == 'spacer') { 225 225 $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>'; 227 227 228 228 // store js visibility params … … 236 236 if($f['type'] == 'message') { 237 237 $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>'; 239 239 240 240 // store js visibility params … … 249 249 $tr_hidden = (isset($f['hide']) && $f['hide']) ? 'lcwp_sf_displaynone' : ''; 250 250 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) .'"> 252 252 <td class="lcwp_sf_label"><label>'. self::wp_kses_ext($f['label']) .'</label></td> 253 253 <td class="lcwp_sf_message" data-field-id="'. esc_attr($field_id) .'" colspan="2">'. self::wp_kses_ext($f['content']) .'</td> … … 274 274 275 275 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']) .'"> 277 277 <td colspan="3"> 278 278 <div class="lcwp_sf_fullw_helper" data-helper-name="'. esc_attr($field_id) .'"><div>'. self::wp_kses_ext($f['content']) .'</div></div> … … 291 291 292 292 $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) .'">'; 294 294 295 295 … … 735 735 736 736 // check nonce 737 $noncename = 'pvtcontent_admin'.'settings_nonce';737 $noncename = self::$css_prefix .'settings_nonce'; 738 738 if(!isset($_POST[$noncename]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST[$noncename])), 'lcwp')) { 739 739 $this->errors = array('Cheating?'); … … 922 922 public function handle_import_data() { 923 923 $import_str = sanitize_text_field($_GET['lcwp_sf_import']); 924 $nonce_attr = 'pvtcontent_admin'.'settings_nonce';924 $nonce_attr = self::$css_prefix .'settings_nonce'; 925 925 926 926 if(substr($import_str, 0, 4) == 'gzc_') { … … 1054 1054 } 1055 1055 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')) .'"; 1057 1057 }); 1058 1058
Note: See TracChangeset
for help on using the changeset viewer.