Changeset 2698218
- Timestamp:
- 03/23/2022 10:11:41 AM (4 years ago)
- Location:
- easy-content-protector/trunk
- Files:
-
- 6 edited
-
assets/js/main.js (modified) (2 diffs)
-
assets/js/main.min.js (modified) (1 diff)
-
easy-content-protector.php (modified) (2 diffs)
-
inc/hooks/enqueue.php (modified) (2 diffs)
-
lang/easy-content-protector.pot (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-content-protector/trunk/assets/js/main.js
r2696224 r2698218 35 35 }, 36 36 37 drag_start: function( e ){37 selection_change: function( e ){ 38 38 39 Easy_Content_Protector.Snipits.show_alert( 'selection' ); 40 39 var get_selection = window.getSelection(); 40 if(get_selection.toString() !== '' ){ 41 get_selection.empty(); 42 Easy_Content_Protector.Snipits.show_alert( 'selection' ); 43 } 41 44 return false; 42 45 }, … … 100 103 101 104 if(config.disable_selection == "1" ){ 102 $(document).on( 'select start', snipits.drag_start);103 } 105 $(document).on( 'selectionchange', snipits.selection_change ); 106 } 104 107 105 108 if(config.disable_cut == "1" ){ -
easy-content-protector/trunk/assets/js/main.min.js
r2696224 r2698218 1 !function(c){"use strict";var s={Snipits:{close_alert:function(e){c(this).removeClass("open")},show_alert:function(e){c(".ecp-wrapper .ecp-alert").removeClass("open"),c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').addClass("open"),setTimeout(function(){c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').removeClass("open")},1500)},context_menu:function(e){return s.Snipits.show_alert("right-click"),!1}, drag_start:function(e){return s.Snipits.show_alert("selection"),!1},disable_cut:function(e){s.Snipits.show_alert("cut"),e.preventDefault()},disable_copy:function(e){s.Snipits.show_alert("copy"),e.preventDefault()},disable_paste:function(e){s.Snipits.show_alert("paste"),e.preventDefault()},inspect_element:function(e){(e.ctrlKey&&e.shiftKey&&73==e.which||123==e.which)&&(s.Snipits.show_alert("inspect-element"),e.preventDefault())},view_source:function(e){e.ctrlKey&&85==e.which&&(s.Snipits.show_alert("view-source"),e.preventDefault())}},Events:function(){var e=s.Snipits,t=content_protector_config;"1"==t.disable_right_click&&c(document).on("contextmenu",e.context_menu),"1"==t.disable_selection&&c(document).on("selectstart",e.drag_start),"1"==t.disable_cut&&c(document).on("cut",e.disable_cut),"1"==t.disable_copy&&c(document).on("copy",e.disable_copy),"1"==t.disable_paste&&c(document).on("paste",e.disable_paste),"1"==t.disable_inspect_element&&c(document).on("keydown",e.inspect_element),"1"==t.disable_view_source&&c(document).on("keydown",e.view_source),c(document).on("click",".ecp-alert",e.close_alert)},Ready:function(){var e=s;e.Snipits;e.Events()},Load:function(){},Resize:function(){},Scroll:function(){},Init:function(){var e=s,t=e.Ready,n=e.Load,i=e.Resize,o=e.Scroll;c(document).ready(t),c(window).load(n),c(window).scroll(o),c(window).resize(i)}};s.Init()}(jQuery);1 !function(c){"use strict";var s={Snipits:{close_alert:function(e){c(this).removeClass("open")},show_alert:function(e){c(".ecp-wrapper .ecp-alert").removeClass("open"),c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').addClass("open"),setTimeout(function(){c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').removeClass("open")},1500)},context_menu:function(e){return s.Snipits.show_alert("right-click"),!1},selection_change:function(e){var t=window.getSelection();return""!==t.toString()&&(t.empty(),s.Snipits.show_alert("selection")),!1},disable_cut:function(e){s.Snipits.show_alert("cut"),e.preventDefault()},disable_copy:function(e){s.Snipits.show_alert("copy"),e.preventDefault()},disable_paste:function(e){s.Snipits.show_alert("paste"),e.preventDefault()},inspect_element:function(e){(e.ctrlKey&&e.shiftKey&&73==e.which||123==e.which)&&(s.Snipits.show_alert("inspect-element"),e.preventDefault())},view_source:function(e){e.ctrlKey&&85==e.which&&(s.Snipits.show_alert("view-source"),e.preventDefault())}},Events:function(){var e=s.Snipits,t=content_protector_config;"1"==t.disable_right_click&&c(document).on("contextmenu",e.context_menu),"1"==t.disable_selection&&c(document).on("selectionchange",e.selection_change),"1"==t.disable_cut&&c(document).on("cut",e.disable_cut),"1"==t.disable_copy&&c(document).on("copy",e.disable_copy),"1"==t.disable_paste&&c(document).on("paste",e.disable_paste),"1"==t.disable_inspect_element&&c(document).on("keydown",e.inspect_element),"1"==t.disable_view_source&&c(document).on("keydown",e.view_source),c(document).on("click",".ecp-alert",e.close_alert)},Ready:function(){var e=s;e.Snipits;e.Events()},Load:function(){},Resize:function(){},Scroll:function(){},Init:function(){var e=s,t=e.Ready,n=e.Load,i=e.Resize,o=e.Scroll;c(document).ready(t),c(window).load(n),c(window).scroll(o),c(window).resize(i)}};s.Init()}(jQuery); -
easy-content-protector/trunk/easy-content-protector.php
r2696224 r2698218 4 4 Plugin URI: https://wordpress.org/plugins/easy-content-protector/ 5 5 Description: Simple way to protect your content 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: plugindeveloper 8 8 Author URI: https://profiles.wordpress.org/plugindeveloper/ … … 27 27 28 28 if(!defined('EASY_CONTENT_PROTECTOR_VERSION')){ 29 define( 'EASY_CONTENT_PROTECTOR_VERSION', '1.0. 0' );29 define( 'EASY_CONTENT_PROTECTOR_VERSION', '1.0.1' ); 30 30 } 31 31 -
easy-content-protector/trunk/inc/hooks/enqueue.php
r2696224 r2698218 38 38 ); 39 39 40 wp_enqueue_style( 'easy-content-protector-main-css', easy_content_protector_assets_url('css/main'.$prefix.'.css'), array(), '1.0. 0' );40 wp_enqueue_style( 'easy-content-protector-main-css', easy_content_protector_assets_url('css/main'.$prefix.'.css'), array(), '1.0.1' ); 41 41 42 43 wp_enqueue_script( 'easy-content-protector-main-js', easy_content_protector_assets_url('js/main'.$prefix.'.js'), array('jquery'), '1.0.0', true ); 42 wp_enqueue_script( 'easy-content-protector-main-js', easy_content_protector_assets_url('js/main'.$prefix.'.js'), array('jquery'), '1.0.1', true ); 44 43 45 44 wp_localize_script( 'easy-content-protector-main-js', 'content_protector_config', $data ); … … 52 51 53 52 if(isset($_GET['page']) && $_GET['page'] == 'easy-content-protector' ){ 54 wp_enqueue_style( 'easy-content-protector-admin', easy_content_protector_assets_url('css/admin'.$prefix.'.css'), array(), '1.0. 0' );53 wp_enqueue_style( 'easy-content-protector-admin', easy_content_protector_assets_url('css/admin'.$prefix.'.css'), array(), '1.0.1' ); 55 54 } 56 55 -
easy-content-protector/trunk/lang/easy-content-protector.pot
r2696224 r2698218 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Easy Content Protector 1.0. 0\n"5 "Project-Id-Version: Easy Content Protector 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: plugindeveloperofficial@gmail.com\n" 7 "POT-Creation-Date: 2022-03- 18 19:37:07+00:00\n"7 "POT-Creation-Date: 2022-03-23 10:08:22+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 14 14 "X-Generator: grunt-wp-i18n 1.0.3\n" 15 15 16 #: inc/classes/setting.php:28 16 #: inc/classes/setting.php:28 uploads/tags/1.0.0/inc/classes/setting.php:28 17 17 msgid "Page Heading" 18 18 msgstr "" 19 19 20 #: inc/classes/setting.php:29 20 #: inc/classes/setting.php:29 uploads/tags/1.0.0/inc/classes/setting.php:29 21 21 msgid "Section Title" 22 22 msgstr "" 23 23 24 #: inc/classes/setting.php:30 24 #: inc/classes/setting.php:30 uploads/tags/1.0.0/inc/classes/setting.php:30 25 25 msgid "Menu Name" 26 26 msgstr "" 27 27 28 #: inc/classes/setting.php:36 28 #: inc/classes/setting.php:36 uploads/tags/1.0.0/inc/classes/setting.php:36 29 29 msgid "Title" 30 30 msgstr "" 31 31 32 #: inc/classes/setting.php:37 32 #: inc/classes/setting.php:37 uploads/tags/1.0.0/inc/classes/setting.php:37 33 33 msgid "Description" 34 34 msgstr "" 35 35 36 #: inc/classes/setting.php:41 36 #: inc/classes/setting.php:41 uploads/tags/1.0.0/inc/classes/setting.php:41 37 37 msgid "Default Value." 38 38 msgstr "" 39 39 40 #: inc/classes/setting.php:42 40 #: inc/classes/setting.php:42 uploads/tags/1.0.0/inc/classes/setting.php:42 41 41 msgid "Field Name" 42 42 msgstr "" 43 43 44 #: inc/core/default.php:17 44 #: inc/core/default.php:17 uploads/tags/1.0.0/inc/core/default.php:17 45 45 msgid "Sorry this site disable right click" 46 46 msgstr "" 47 47 48 #: inc/core/default.php:19 48 #: inc/core/default.php:19 uploads/tags/1.0.0/inc/core/default.php:19 49 49 msgid "Sorry this site disable selection" 50 50 msgstr "" 51 51 52 #: inc/core/default.php:21 52 #: inc/core/default.php:21 uploads/tags/1.0.0/inc/core/default.php:21 53 53 msgid "Sorry this site is not allow cut." 54 54 msgstr "" 55 55 56 56 #: inc/core/default.php:23 inc/options/settings.php:60 57 #: uploads/tags/1.0.0/inc/core/default.php:23 58 #: uploads/tags/1.0.0/inc/options/settings.php:60 57 59 msgid "Sorry this site is not allow copy." 58 60 msgstr "" 59 61 60 #: inc/core/default.php:25 62 #: inc/core/default.php:25 uploads/tags/1.0.0/inc/core/default.php:25 61 63 msgid "Sorry this site is not allow paste." 62 64 msgstr "" 63 65 64 #: inc/core/default.php:27 66 #: inc/core/default.php:27 uploads/tags/1.0.0/inc/core/default.php:27 65 67 msgid "Sorry this site is not allow to inspect element." 66 68 msgstr "" 67 69 68 #: inc/core/default.php:29 70 #: inc/core/default.php:29 uploads/tags/1.0.0/inc/core/default.php:29 69 71 msgid "Sorry this site is not allow to view source." 70 72 msgstr "" 71 73 72 #: inc/hooks/notices.php:29 74 #: inc/hooks/notices.php:29 uploads/tags/1.0.0/inc/hooks/notices.php:29 73 75 msgid "" 74 76 "You are successfully installed the Copy Protection plugin. You can " … … 76 78 msgstr "" 77 79 78 #: inc/options/settings.php:17 80 #: inc/options/settings.php:17 uploads/tags/1.0.0/inc/options/settings.php:17 79 81 msgid "Content Protector Settings" 80 82 msgstr "" 81 83 82 #: inc/options/settings.php:18 84 #: inc/options/settings.php:18 uploads/tags/1.0.0/inc/options/settings.php:18 83 85 msgid "Content Protector Options" 84 86 msgstr "" 85 87 86 #: inc/options/settings.php:19 88 #: inc/options/settings.php:19 uploads/tags/1.0.0/inc/options/settings.php:19 87 89 msgid "Content Protector" 88 90 msgstr "" 89 91 90 #: inc/options/settings.php:25 92 #: inc/options/settings.php:25 uploads/tags/1.0.0/inc/options/settings.php:25 91 93 msgid "General Settings" 92 94 msgstr "" 93 95 94 #: inc/options/settings.php:26 96 #: inc/options/settings.php:26 uploads/tags/1.0.0/inc/options/settings.php:26 95 97 msgid "Hello Description" 96 98 msgstr "" 97 99 98 #: inc/options/settings.php:31 100 #: inc/options/settings.php:31 uploads/tags/1.0.0/inc/options/settings.php:31 99 101 msgid "Disable right click" 100 102 msgstr "" 101 103 102 #: inc/options/settings.php:37 104 #: inc/options/settings.php:37 uploads/tags/1.0.0/inc/options/settings.php:37 103 105 msgid "Message on right click" 104 106 msgstr "" 105 107 106 #: inc/options/settings.php:43 108 #: inc/options/settings.php:43 uploads/tags/1.0.0/inc/options/settings.php:43 107 109 msgid "Disable selection" 108 110 msgstr "" 109 111 110 #: inc/options/settings.php:49 112 #: inc/options/settings.php:49 uploads/tags/1.0.0/inc/options/settings.php:49 111 113 msgid "Message on selection" 112 114 msgstr "" 113 115 114 #: inc/options/settings.php:55 116 #: inc/options/settings.php:55 uploads/tags/1.0.0/inc/options/settings.php:55 115 117 msgid "Disable Copy" 116 118 msgstr "" 117 119 118 #: inc/options/settings.php:61 120 #: inc/options/settings.php:61 uploads/tags/1.0.0/inc/options/settings.php:61 119 121 msgid "Message on copy" 120 122 msgstr "" 121 123 122 #: inc/options/settings.php:67 124 #: inc/options/settings.php:67 uploads/tags/1.0.0/inc/options/settings.php:67 123 125 msgid "Disable Paste" 124 126 msgstr "" 125 127 126 #: inc/options/settings.php:73 128 #: inc/options/settings.php:73 uploads/tags/1.0.0/inc/options/settings.php:73 127 129 msgid "Message on paste" 128 130 msgstr "" 129 131 130 #: inc/options/settings.php:79 132 #: inc/options/settings.php:79 uploads/tags/1.0.0/inc/options/settings.php:79 131 133 msgid "Disable Cut" 132 134 msgstr "" 133 135 134 #: inc/options/settings.php:85 136 #: inc/options/settings.php:85 uploads/tags/1.0.0/inc/options/settings.php:85 135 137 msgid "Message on cut" 136 138 msgstr "" 137 139 138 #: inc/options/settings.php:91 140 #: inc/options/settings.php:91 uploads/tags/1.0.0/inc/options/settings.php:91 139 141 msgid "Disable Inspect Element" 140 142 msgstr "" 141 143 142 #: inc/options/settings.php:97 144 #: inc/options/settings.php:97 uploads/tags/1.0.0/inc/options/settings.php:97 143 145 msgid "Message on inspect element" 144 146 msgstr "" 145 147 146 #: inc/options/settings.php:103 148 #: inc/options/settings.php:103 uploads/tags/1.0.0/inc/options/settings.php:103 147 149 msgid "Disable View Source" 148 150 msgstr "" 149 151 150 #: inc/options/settings.php:109 152 #: inc/options/settings.php:109 uploads/tags/1.0.0/inc/options/settings.php:109 151 153 msgid "Message on view source" 152 154 msgstr "" 153 155 154 #: inc/options/settings.php:115 156 #: inc/options/settings.php:115 uploads/tags/1.0.0/inc/options/settings.php:115 155 157 msgid "Remove data on uninstall plugin" 156 158 msgstr "" -
easy-content-protector/trunk/readme.txt
r2696261 r2698218 5 5 Requires PHP: 5.4 6 6 Tested up to: 5.9.2 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPL V3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 53 53 54 54 == Changelog == 55 = 1.0.1 - 23/03/2022 = 56 <ul> 57 <li>Chrome Issue fixed on selection</li> 58 </ul> 59 55 60 = 1.0.0 - 19/03/2022 = 56 61 <ul>
Note: See TracChangeset
for help on using the changeset viewer.