Changeset 1436760
- Timestamp:
- 06/14/2016 10:31:47 PM (10 years ago)
- Location:
- copyfight
- Files:
-
- 65 added
- 19 edited
-
assets/screenshot-2.png (modified) (previous)
-
tags/1.5.1 (added)
-
tags/1.5.1/LICENSE.txt (added)
-
tags/1.5.1/_inc (added)
-
tags/1.5.1/_inc/css (added)
-
tags/1.5.1/_inc/css/copyfight-admin.css (added)
-
tags/1.5.1/_inc/css/copyfight-admin.min.css (added)
-
tags/1.5.1/_inc/css/copyfight-cdn.css (added)
-
tags/1.5.1/_inc/css/copyfight-cdn.min.css (added)
-
tags/1.5.1/_inc/css/copyfight.css (added)
-
tags/1.5.1/_inc/css/copyfight.min.css (added)
-
tags/1.5.1/_inc/css/copyfight.php (added)
-
tags/1.5.1/_inc/css/noprint.css (added)
-
tags/1.5.1/_inc/css/noprint.min.css (added)
-
tags/1.5.1/_inc/css/print.css (added)
-
tags/1.5.1/_inc/css/print.min.css (added)
-
tags/1.5.1/_inc/img (added)
-
tags/1.5.1/_inc/img/certificate-background.png (added)
-
tags/1.5.1/_inc/img/copyfight-logo-color.svg (added)
-
tags/1.5.1/_inc/img/copyfight-logo-dark.svg (added)
-
tags/1.5.1/_inc/img/copyfight-logo-light.svg (added)
-
tags/1.5.1/_inc/img/copyfight-logo.png (added)
-
tags/1.5.1/_inc/img/copyfight_business_plan.png (added)
-
tags/1.5.1/_inc/img/copyfight_enterprise_plan.png (added)
-
tags/1.5.1/_inc/img/copyfight_freemium_plan.png (added)
-
tags/1.5.1/_inc/img/copyfight_premium_plan.png (added)
-
tags/1.5.1/_inc/img/icn-green.png (added)
-
tags/1.5.1/_inc/img/icn-grey-black.png (added)
-
tags/1.5.1/_inc/img/icn-red.png (added)
-
tags/1.5.1/_inc/img/icn-yellow.png (added)
-
tags/1.5.1/_inc/js (added)
-
tags/1.5.1/_inc/js/copyfight-admin.js (added)
-
tags/1.5.1/_inc/js/copyfight-admin.min.js (added)
-
tags/1.5.1/_inc/js/copyfight.js (added)
-
tags/1.5.1/_inc/js/copyfight.min.js (added)
-
tags/1.5.1/cache (added)
-
tags/1.5.1/cache/fontlist.txt (added)
-
tags/1.5.1/cache/index.php (added)
-
tags/1.5.1/class.copyfight-admin.php (added)
-
tags/1.5.1/class.copyfight.php (added)
-
tags/1.5.1/copyfight.php (added)
-
tags/1.5.1/index.php (added)
-
tags/1.5.1/languages (added)
-
tags/1.5.1/languages/copyfight-es_ES.mo (added)
-
tags/1.5.1/languages/copyfight-es_ES.po (added)
-
tags/1.5.1/languages/copyfight-nl_NL.mo (added)
-
tags/1.5.1/languages/copyfight-nl_NL.po (added)
-
tags/1.5.1/languages/copyfight-zh_CN.mo (added)
-
tags/1.5.1/languages/copyfight-zh_CN.po (added)
-
tags/1.5.1/readme.txt (added)
-
tags/1.5.1/uninstall.php (added)
-
tags/1.5.1/views (added)
-
tags/1.5.1/views/config.php (added)
-
tags/1.5.1/views/index.php (added)
-
tags/1.5.1/views/notice.php (added)
-
tags/1.5.1/views/plans.php (added)
-
tags/1.5.1/widgets.php (added)
-
trunk/_inc/css/copyfight-admin.css (modified) (2 diffs)
-
trunk/_inc/css/copyfight-admin.min.css (added)
-
trunk/_inc/css/copyfight-cdn.min.css (added)
-
trunk/_inc/css/copyfight.css (modified) (6 diffs)
-
trunk/_inc/css/copyfight.min.css (added)
-
trunk/_inc/css/copyfight.php (modified) (2 diffs)
-
trunk/_inc/css/noprint.css (added)
-
trunk/_inc/css/noprint.min.css (added)
-
trunk/_inc/css/print.css (added)
-
trunk/_inc/css/print.min.css (added)
-
trunk/_inc/js/copyfight-admin.min.js (added)
-
trunk/_inc/js/copyfight.js (modified) (5 diffs)
-
trunk/_inc/js/copyfight.min.js (added)
-
trunk/class.copyfight-admin.php (modified) (7 diffs)
-
trunk/class.copyfight.php (modified) (10 diffs)
-
trunk/copyfight.php (modified) (3 diffs)
-
trunk/languages/copyfight-es_ES.mo (modified) (previous)
-
trunk/languages/copyfight-es_ES.po (modified) (11 diffs)
-
trunk/languages/copyfight-nl_NL.mo (modified) (previous)
-
trunk/languages/copyfight-nl_NL.po (modified) (11 diffs)
-
trunk/languages/copyfight-zh_CN.mo (modified) (previous)
-
trunk/languages/copyfight-zh_CN.po (modified) (9 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/views/config.php (modified) (7 diffs)
-
trunk/views/notice.php (modified) (1 diff)
-
trunk/widgets.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copyfight/trunk/_inc/css/copyfight-admin.css
r1435845 r1436760 3 3 width: 175px; 4 4 height: 40px; 5 background: url(img/copyfight-logo-color.svg) no-repeat; 6 background-size: 100%; 5 background-repeat: no-repeat !important; 7 6 } 8 7 … … 348 347 content: "\f122"; 349 348 } 350 351 352 -
copyfight/trunk/_inc/css/copyfight.css
r1435861 r1436760 19 19 } 20 20 21 #copyfight_content .copyfight_blurred_lines { 21 #copyfight_content .copyfight_blurred_lines, 22 .copyfight_blurred_lines mark.copyfight { 22 23 color: transparent; 23 24 text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 24 25 } 25 26 #copyfight_notice {27 width: 100%;28 margin: 1em 0;29 background-color: red;30 color: white;31 text-align: center;32 border: none;33 }34 35 #copyright_notice {36 padding-top: 1em;37 }38 39 26 .copyfight_excerpt { 40 27 padding-bottom: 1em; … … 43 30 44 31 #copyfight_entry_links { 45 margin -top: 1em;32 margin: 2em 0; 46 33 display: block; 34 clear: both; 47 35 } 48 36 … … 51 39 float: left; 52 40 margin-right: 1em; 41 border: 0; 42 box-shadow: none; 53 43 } 54 44 … … 62 52 border: none; 63 53 box-shadow: none; 64 cursor: pointer !important;54 cursor: pointer; 65 55 display: none; 66 56 } … … 83 73 width: 50%; 84 74 height: 50%; 85 background-image: url( "img/certificate-background.png");75 background-image: url('img/certificate-background.png'); 86 76 background-repeat: no-repeat; 87 77 } … … 107 97 transform: scale(-1, -1); 108 98 } 99 100 #copyright_print_notice { 101 visibility: hidden; 102 } 103 104 img.copyfight_widget { 105 border: 0 !important; 106 box-shadow: none !important; 107 } -
copyfight/trunk/_inc/css/copyfight.php
r1435845 r1436760 1 1 <?php 2 3 header('Content-type: text/css; charset: UTF-8'); 2 4 3 5 $url = 'http' . (isset( $_SERVER['HTTPS'] ) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; … … 11 13 $subdir = substr( $copyfight_hash, 0, 1 ); 12 14 13 header('Content-type: text/css; charset: UTF-8'); 14 15 $css = file_get_contents( __DIR__ . '/copyfight-cdn.css' ); 15 $css = file_get_contents( __DIR__ . '/copyfight-cdn.min.css' ); 16 16 $css = str_replace( '{copyfight_hash}', $url . $subdir . '/' . $copyfight_hash, $css ); 17 17 $css = str_replace( '{copyfight_typeface}', $url . urldecode( $copyfight_typeface ), $css ); -
copyfight/trunk/_inc/js/copyfight.js
r1436024 r1436760 4 4 $('#copyfight_content').show(); 5 5 6 //copyfight notice7 $('body').on('copy', function() {8 parentEl = getSelectionParentElement();9 if ($(parentEl).attr('id') == 'copyfight_content' || $(parentEl).parents('#copyfight_content').length) {10 $('#copyfight_notice').attr('type', 'text');11 $('#copyfight_notice').prop('disabled', false);12 $('#copyfight_notice').select();13 $('#copyfight_notice').hide();14 $('#copyfight_notice').fadeIn('slow');15 document.execCommand('copy');16 $(window).scrollTop($('#copyfight_notice').position().top);17 $('#copyfight_notice').prop('disabled', true);18 }19 });20 21 function getSelectionParentElement() {22 var parentEl = null, sel;23 if (window.getSelection) {24 sel = window.getSelection();25 if (sel.rangeCount) {26 parentEl = sel.getRangeAt(0).commonAncestorContainer;27 if (parentEl.nodeType != 1) {28 parentEl = parentEl.parentNode.parentNode;29 }30 }31 } else if ( (sel = document.selection) && sel.type != "Control") {32 parentEl = sel.createRange().parentElement().parentElement();33 }34 return parentEl;35 }36 37 6 //safari specific 38 7 var is_chrome = navigator.userAgent.indexOf('Chrome') > -1; 39 var is_safari = navigator.userAgent.indexOf( "Safari") > -1;8 var is_safari = navigator.userAgent.indexOf('Safari') > -1; 40 9 if ((is_chrome) && (is_safari)) { is_safari = false; } 41 10 if (is_safari) { … … 121 90 $('body').css('cursor', 'default'); 122 91 e.preventDefault(); 123 $('mark .copyfight').contents().unwrap();92 $('mark').contents().unwrap(); 124 93 toggleEntryLinks(); 125 94 return false; … … 132 101 }); 133 102 $('#copyfight_content').on('mouseup', function() { 103 104 //remove non copyfight marks 105 if (!$('mark.copyfight').length) { 106 $('mark').contents().unwrap(); 107 } 134 108 135 109 var selection = window.getSelection().getRangeAt(0); … … 153 127 mark.setAttribute('class', 'copyfight'); 154 128 mark.appendChild(content); 155 /*156 mark.onclick = function () {157 $(this).contents().unwrap();158 toggleEntryLinks();159 }160 */161 129 selection.insertNode(mark); 162 130 131 //merge marks 132 var html = $('#copyfight_content').html().replace(/<\/mark><mark.*?>/g, ''); 133 $('#copyfight_content').html(html); 134 $('mark.copyfight').each(function (index, value) { 135 $(value).find('mark.copyfight').contents().unwrap(); 136 }); 137 138 //move in sight 163 139 if (!isElementInViewport($('#copyfight_entry_links'))) { 164 140 $('html, body').animate({ … … 173 149 } 174 150 151 //print 152 $('.copyfight_print_link').on('click', function(e) { 153 e.preventDefault(); 154 window.print(); 155 return false; 156 }); 157 158 //printscreen 159 if (copyfight.copyfight_printscreen == 'false') { 160 $(window).on('blur keydown', function() { 161 blur(); 162 }); 163 $(window).on('focus keyup', function() { 164 focus(); 165 }); 166 function blur() { 167 $('#copyfight_content noindex').wrapInner('<p class="copyfight_blurred_lines"></p>'); 168 } 169 function focus() { 170 $('.copyfight_blurred_lines').contents().unwrap(); 171 } 172 } 173 175 174 //add entry links 176 175 function toggleEntryLinks() { 177 176 if ($('mark.copyfight').length) { 178 $("#copyfight_entry_links a"). fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);177 $("#copyfight_entry_links a").show(); 179 178 } else { 180 179 $('#copyfight_entry_links a').hide(); -
copyfight/trunk/class.copyfight-admin.php
r1435861 r1436760 40 40 self::$initiated = true; 41 41 42 wp_register_style( 'copyfight-admin', COPYFIGHT_PLUGIN_URL . '_inc/css/copyfight-admin.css', array(), COPYFIGHT_VERSION ); 42 wp_register_style( 'copyfight-admin', COPYFIGHT_PLUGIN_URL . 43 '_inc/css/copyfight-admin.min.css', array(), COPYFIGHT_VERSION ); 43 44 wp_enqueue_style( 'copyfight-admin'); 44 45 45 wp_register_script( 'copyfight-admin', COPYFIGHT_PLUGIN_URL . '_inc/js/copyfight-admin.js', array('jquery'), COPYFIGHT_VERSION ); 46 wp_register_script( 'copyfight-admin', COPYFIGHT_PLUGIN_URL . 47 '_inc/js/copyfight-admin.min.js', array('jquery'), COPYFIGHT_VERSION ); 46 48 wp_localize_script( 'copyfight-admin', 'copyfight', array( 47 49 'ajax_url' => admin_url( 'admin-ajax.php' ), … … 57 59 add_action( 'wp_dashboard_setup', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_dashboard_widget'), 10, 2 ); 58 60 add_action( 'admin_menu', array( COPYFIGHT_CLASS_ADMIN, 'load_menu' ) ); 59 add_filter( 'plugin_action_links_' . plugin_basename( plugin_dir_path( __FILE__ ) . 'copyfight.php'), array( COPYFIGHT_CLASS_ADMIN, 'admin_plugin_settings_link' ) ); 61 add_filter( 'plugin_action_links_' . plugin_basename( plugin_dir_path( __FILE__ ) . 'copyfight.php'), 62 array( COPYFIGHT_CLASS_ADMIN, 'admin_plugin_settings_link' ) ); 60 63 61 64 add_action( 'manage_posts_custom_column', array( COPYFIGHT_CLASS_ADMIN, 'display_posts_copyfight'), 10, 2 ); … … 89 92 register_setting( 'copyfight_options_group', 'copyfight_debugging' ); 90 93 register_setting( 'copyfight_options_group', 'copyfight_right_click' ); 94 register_setting( 'copyfight_options_group', 'copyfight_print' ); 95 register_setting( 'copyfight_options_group', 'copyfight_printscreen' ); 96 register_setting( 'copyfight_options_group', 'copyfight_settings' ); 91 97 } 92 98 … … 98 104 99 105 public static function load_menu() { 100 $hook = add_options_page( 'Copyfight', 'Copyfight', 'manage_options', 'copyfight', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_configuration_page' ) ); 106 $hook = add_options_page( 'Copyfight', 'Copyfight', 'manage_options', 'copyfight', 107 array( COPYFIGHT_CLASS_ADMIN, 'copyfight_configuration_page' ) ); 101 108 add_action( "load-$hook", array( COPYFIGHT_CLASS_ADMIN, 'admin_help' ) ); 102 109 } … … 400 407 } 401 408 409 $copyfight_debugging = get_option( 'copyfight_debugging' ); 410 402 411 $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' ); 403 412 if ( $response->status->http == '0' || $response->status->mysql == '0' ) { … … 452 461 } 453 462 454 } else { 455 463 //debugging 464 if ( $copyfight_debugging == 'true' ) { 465 call_user_func( COPYFIGHT_CLASS_ADMIN . '::debug_log', 'post: id=' . $post_id . ', status=succes' ); 466 } 467 468 } else { 469 470 //debugging 471 if ( $copyfight_debugging == 'true' ) { 472 call_user_func( COPYFIGHT_CLASS_ADMIN . '::debug_log', 'post: id=' . $post_id . ', status=failed' ); 473 } 456 474 update_post_meta( $post_id, '_copyfight_status', 'disabled' ); 457 475 set_transient( 'copyfight_transient', $post_id, 60 ); … … 606 624 //copyfight version 607 625 call_user_func( COPYFIGHT_CLASS_ADMIN . '::debug_log', 'copyfight version: ' . COPYFIGHT_VERSION ); 626 627 //copyfight settings 628 $copyfight_settings = get_option( 'copyfight_settings' ); 629 call_user_func( COPYFIGHT_CLASS_ADMIN . '::debug_log', 'copyfight settings: ' . serialize( $copyfight_settings ) ); 608 630 } 609 631 return $response; -
copyfight/trunk/class.copyfight.php
r1436021 r1436760 42 42 add_shortcode( 'copyfight', array( COPYFIGHT_CLASS, 'copyfight_shortcode' ) ); 43 43 44 wp_register_style( 'copyfight', COPYFIGHT_PLUGIN_URL . '_inc/css/copyfight.css', array(), COPYFIGHT_VERSION ); 44 wp_register_style( 'copyfight', COPYFIGHT_PLUGIN_URL . 45 '_inc/css/copyfight.min.css', array(), COPYFIGHT_VERSION ); 45 46 wp_enqueue_style( 'copyfight'); 46 47 } … … 59 60 60 61 global $post; 61 $copyfight_content = get_post_meta( $post->ID, '_copyfight_content', true ); 62 $copyfight_status = get_post_meta( $post->ID, '_copyfight_status', true ); 63 64 if ( strlen( $copyfight_content ) && $copyfight_status == 'enabled' && is_singular() ) { 65 echo '<meta name="generator" content="Copyfight" />' . "\n"; 66 $copyfight_sev = get_option( 'copyfight_sev' ); 67 if ( $copyfight_sev == 'false' ) { 68 echo '<meta name="robots" content="noindex,nofollow,noarchive" />' . "\n"; 69 echo '<meta name="googlebot" content="noindex,nofollow,noarchive,noodp,nosnippet" />' . "\n"; 70 echo '<meta name="slurp" content="noindex,nofollow,noarchive,noodp,noydir" />' . "\n"; 71 echo '<meta name="msnbot" content="noindex,nofollow,noarchive,noodp" />' . "\n"; 72 echo '<meta name="teoma" content="noindex,nofollow,noarchive" />' . "\n"; 62 63 if ($post) { 64 $copyfight_content = get_post_meta( $post->ID, '_copyfight_content', true ); 65 $copyfight_status = get_post_meta( $post->ID, '_copyfight_status', true ); 66 67 if ( strlen( $copyfight_content ) && $copyfight_status == 'enabled' && is_singular() ) { 68 echo '<meta name="generator" content="Copyfight" />' . "\n"; 69 $copyfight_sev = get_option( 'copyfight_sev' ); 70 if ( $copyfight_sev == 'false' ) { 71 echo '<meta name="robots" content="noindex,nofollow,noarchive" />' . "\n"; 72 echo '<meta name="googlebot" content="noindex,nofollow,noarchive,noodp,nosnippet" />' . "\n"; 73 echo '<meta name="slurp" content="noindex,nofollow,noarchive,noodp,noydir" />' . "\n"; 74 echo '<meta name="msnbot" content="noindex,nofollow,noarchive,noodp" />' . "\n"; 75 echo '<meta name="teoma" content="noindex,nofollow,noarchive" />' . "\n"; 76 } 73 77 } 74 78 } … … 123 127 $copyfight_cdn = get_option( 'copyfight_cdn' ); 124 128 if ( $local_fonts_available && ( empty( $copyfight_cdn ) || $copyfight_cdn == 'false') ) { 125 wp_register_style( 'copyfight-cdn', COPYFIGHT_PLUGIN_URL . '_inc/css/copyfight.php?hash=' . $copyfight_hash . '&font=' . $copyfight_typeface, array(), COPYFIGHT_VERSION ); 129 wp_register_style( 'copyfight-cdn', COPYFIGHT_PLUGIN_URL 130 . '_inc/css/copyfight.php?hash=' . $copyfight_hash . '&font=' . $copyfight_typeface, array(), COPYFIGHT_VERSION ); 126 131 } else { 127 wp_register_style( 'copyfight-cdn', COPYFIGHT_CDN . 'copyfight.php?hash=' . $copyfight_hash . '&font=' . $copyfight_typeface, array(), COPYFIGHT_VERSION ); 132 wp_register_style( 'copyfight-cdn', COPYFIGHT_CDN 133 . 'copyfight.php?hash=' . $copyfight_hash . '&font=' . $copyfight_typeface, array(), COPYFIGHT_VERSION ); 128 134 } 129 135 wp_enqueue_style( 'copyfight-cdn' ); … … 149 155 $tpl .= '<!--googleon: anchor-->'; 150 156 157 158 //copyfight print 159 $copyfight_print = get_option( 'copyfight_print' ); 160 if ( !empty( $copyfight_print ) && $copyfight_print == 'true' ) { 161 wp_register_style( 'copyfight-print', COPYFIGHT_PLUGIN_URL . '_inc/css/print.min.css', array(), COPYFIGHT_VERSION ); 162 wp_enqueue_style( 'copyfight-print'); 163 } else { 164 wp_register_style( 'copyfight-noprint', COPYFIGHT_PLUGIN_URL . '_inc/css/noprint.min.css', array(), COPYFIGHT_VERSION ); 165 wp_enqueue_style( 'copyfight-noprint'); 166 $tpl .= '<div id="copyright_print_notice">' . 167 __( 'There is no content because this is a <a target="_blank" href="https://getcopyfight.com/">Copyfight</a> protected article.', 'copyfight' ) . '</div>'; 168 } 169 151 170 //copyright notice 152 171 $copyfight_copyright = get_option( 'copyfight_copyright' ); … … 157 176 //copyfight entry links 158 177 $tpl .= '<span id="copyfight_entry_links">'; 159 $tpl .= ' <a href="https://getcopyfight.com/" target="_blank"><img src="' . home_url() . '/wp-content/plugins/copyfight/_inc/img/copyfight-logo-dark.svg" alt="Protected by Copyfight"></a>'; 178 $tpl .= ' <a href="' . COPYFIGHT_HOME . '" target="_blank"><img src="' . COPYFIGHT_PLUGIN_URL . 179 '_inc/img/copyfight-logo-dark.svg" alt="' . __('Protected by Copyfight', 'copyfight') . '"></a>'; 160 180 $tpl .= ' <a class="copyfight_unselect_link">Unselect</a>'; 161 181 $tpl .= ' <a class="copyfight_copy_link">Copy</a>'; 162 182 $tpl .= ' <a class="copyfight_download_link">Download</a>'; 183 if ( !empty( $copyfight_print ) && $copyfight_print == 'true' ) { 184 $tpl .= ' <a class="copyfight_print_link">Print</a>'; 185 } 163 186 $tpl .= '</span>'; 164 187 165 //copyfight notice 166 $tpl .= '<input id="copyfight_notice" type="hidden" value="' . __( 'Copyfight prevented copying this content.', 'copyfight' ) . '">'; 188 //copyfight copy 167 189 $tpl .= '<input id="copyfight_copy" type="hidden" value="">'; 168 190 … … 174 196 $content = str_replace('{content}', $content, $tpl); 175 197 176 wp_register_script( 'copyfight', COPYFIGHT_PLUGIN_URL . '_inc/js/copyfight.js', array( 'jquery' ), COPYFIGHT_VERSION ); 198 wp_register_script( 'copyfight', COPYFIGHT_PLUGIN_URL . '_inc/js/copyfight.min.js', 199 array( 'jquery' ), COPYFIGHT_VERSION ); 177 200 178 201 //wp_localize_script … … 180 203 $wp_localize_script['ajax_url'] = admin_url( 'admin-ajax.php' ); 181 204 205 //right click 182 206 $copyfight_right_click = get_option( 'copyfight_right_click' ); 183 207 if ( !empty( $copyfight_right_click ) && $copyfight_right_click == 'false' ) { 184 208 $wp_localize_script['copyfight_right_click'] = 'false'; 185 209 } 210 211 //text selection 186 212 $copyfight_select = get_option( 'copyfight_select' ); 187 213 $copyfight_mapping = get_post_meta( $post->ID, '_copyfight_mapping', true ); … … 189 215 $wp_localize_script['copyfight_select'] = 'true'; 190 216 } 217 218 //printscreen 219 $copyfight_printscreen = get_option( 'copyfight_printscreen' ); 220 if ( !empty( $copyfight_printscreen ) && $copyfight_printscreen == 'false' ) { 221 $wp_localize_script['copyfight_printscreen'] = 'false'; 222 } 223 191 224 wp_localize_script( 'copyfight', 'copyfight', $wp_localize_script ); 192 225 wp_localize_script( 'copyfight', 'post', array( 'id' => $post->ID ) ); … … 241 274 if ( !empty( $_POST['selections'] ) && !empty( $_POST['postid'] ) ) { 242 275 243 //$post = get_post( $_POST['postid'] );244 276 $copyfight_mapping = (array) get_post_meta( $_POST['postid'], '_copyfight_mapping', true ); 245 277 … … 268 300 //text selection length 269 301 $copyfight_select_length = intval( get_option('copyfight_select_length') ); 302 $length = strlen( $response ); 270 303 $response = substr( $response, 0, $copyfight_select_length ); 271 304 $response = trim( $response ); 272 305 306 if ( $length > $copyfight_select_length ) { 307 $response .= '...'; 308 } 309 310 $copyfight_copyright = get_option( 'copyfight_copyright' ); 311 if ( strlen( $copyfight_copyright ) > 0 ) { 312 $response .= ' ' . $copyfight_copyright; 313 } 314 273 315 die( $response ); 274 316 } -
copyfight/trunk/copyfight.php
r1435845 r1436760 4 4 Plugin URI: https://getcopyfight.com/ 5 5 Description: Copyright protection 6 Version: 1.5. 06 Version: 1.5.1 7 7 Author: Copyfight 8 8 Author URI: https://getcopyfight.com/ … … 35 35 add_action( 'plugins_loaded', 'copyfight_textdomain' ); 36 36 37 define( 'COPYFIGHT_VERSION', '1.5. 0' );37 define( 'COPYFIGHT_VERSION', '1.5.1' ); 38 38 define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' ); 39 39 define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); … … 46 46 define( 'API_HOST', 'https://getcopyfight.com/' ); 47 47 define( 'COPYFIGHT_CDN', 'https://getcopyfight.com/wp-content/plugins/copyfight-api/cdn/' ); 48 define( 'COPYFIGHT_DEBUG_LOG', COPYFIGHT_PLUGIN_DIR . 'debug.log' ); 48 define( 'COPYFIGHT_DEBUG_FILE', 'debug.log' ); 49 define( 'COPYFIGHT_DEBUG_LOG', COPYFIGHT_PLUGIN_DIR . COPYFIGHT_DEBUG_FILE ); 49 50 50 51 register_activation_hook( __FILE__, array( COPYFIGHT_CLASS_ADMIN, 'plugin_activation' ) ); -
copyfight/trunk/languages/copyfight-es_ES.po
r1435845 r1436760 2 2 msgstr "" 3 3 "Project-Id-Version: Copyfight\n" 4 "POT-Creation-Date: 2016-06-1 3 15:23+0200\n"5 "PO-Revision-Date: 2016-06-1 3 15:23+0200\n"4 "POT-Creation-Date: 2016-06-15 00:08+0200\n" 5 "PO-Revision-Date: 2016-06-15 00:08+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: Copyfight <[email protected]>\n" … … 17 17 "X-Poedit-SearchPathExcluded-0: languages\n" 18 18 19 #: class.copyfight-admin.php: 4819 #: class.copyfight-admin.php:50 20 20 msgid "Error: empty API Key field" 21 21 msgstr "Error: API vacío campo Clave" 22 22 23 #: class.copyfight-admin.php: 94 class.copyfight-admin.php:19124 #: class.copyfight-admin.php:5 44views/config.php:4523 #: class.copyfight-admin.php:100 class.copyfight-admin.php:198 24 #: class.copyfight-admin.php:562 views/config.php:45 25 25 msgid "Settings" 26 26 msgstr "Ajustes" 27 27 28 #: class.copyfight-admin.php:13 128 #: class.copyfight-admin.php:138 29 29 msgid "A Copyfight error has occurred, your article is not protected." 30 30 msgstr "" 31 31 "Se ha producido un error de Derecho de Autor, el artículo no está protegido." 32 32 33 #: class.copyfight-admin.php:1 8433 #: class.copyfight-admin.php:191 34 34 msgid "Post" 35 35 msgid_plural "Posts" … … 37 37 msgstr[1] "entradas" 38 38 39 #: class.copyfight-admin.php:1 8539 #: class.copyfight-admin.php:192 40 40 msgid "Page" 41 41 msgid_plural "Pages" … … 43 43 msgstr[1] "páginas" 44 44 45 #: class.copyfight-admin.php:1 8645 #: class.copyfight-admin.php:193 46 46 msgid "Character" 47 47 msgid_plural "Characters" … … 49 49 msgstr[1] "caracteres" 50 50 51 #: class.copyfight-admin.php:1 8751 #: class.copyfight-admin.php:194 52 52 msgid "Word" 53 53 msgid_plural "Words" … … 55 55 msgstr[1] "palabras" 56 56 57 #: class.copyfight-admin.php:19 2 views/config.php:30657 #: class.copyfight-admin.php:199 views/config.php:341 58 58 msgid "Widget" 59 59 msgstr "" 60 60 61 #: class.copyfight-admin.php:2 87 class.copyfight-admin.php:30562 #: class.copyfight-admin.php:32 1views/config.php:63 views/config.php:8261 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 62 #: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82 63 63 #: views/config.php:101 views/config.php:159 views/config.php:178 64 #: views/config.php:197 views/config.php:216 views/config.php:255 65 #: views/config.php:274 views/config.php:323 64 #: views/config.php:197 views/config.php:216 views/config.php:252 65 #: views/config.php:271 views/config.php:290 views/config.php:309 66 #: views/config.php:358 66 67 msgid "Enabled" 67 68 msgstr "Enciende" 68 69 69 #: class.copyfight-admin.php:2 87 class.copyfight-admin.php:30570 #: class.copyfight-admin.php:32 1views/config.php:62 views/config.php:8170 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 71 #: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81 71 72 #: views/config.php:100 views/config.php:158 views/config.php:177 72 #: views/config.php:196 views/config.php:215 views/config.php:254 73 #: views/config.php:273 views/config.php:322 73 #: views/config.php:196 views/config.php:215 views/config.php:251 74 #: views/config.php:270 views/config.php:289 views/config.php:308 75 #: views/config.php:357 74 76 msgid "Disabled" 75 77 msgstr "Apagar" 76 78 77 #: class.copyfight-admin.php:2 89 class.copyfight-admin.php:56179 #: class.copyfight-admin.php:296 class.copyfight-admin.php:579 78 80 msgid "Status" 79 81 msgstr "Estado" 80 82 81 #: class.copyfight-admin.php:3 0783 #: class.copyfight-admin.php:314 82 84 msgid "Tags" 83 85 msgstr "Etiquetas" 84 86 85 #: class.copyfight-admin.php:3 2387 #: class.copyfight-admin.php:330 86 88 msgid "Blur" 87 89 msgstr "Difuminar" 88 90 89 #: class.copyfight-admin.php:5 14 class.copyfight-admin.php:64790 #: class.copyfight-admin.php:6 6491 #: class.copyfight-admin.php:532 class.copyfight-admin.php:669 92 #: class.copyfight-admin.php:686 91 93 msgid "A Copyfight error has occurred..." 92 94 msgstr "Se ha producido un error de Copyfight..." 93 95 94 #: class.copyfight-admin.php:5 15 class.copyfight-admin.php:64895 #: class.copyfight-admin.php:6 6596 #: class.copyfight-admin.php:533 class.copyfight-admin.php:670 97 #: class.copyfight-admin.php:687 96 98 msgid "Click here to try again..." 97 99 msgstr "Haga clic aquí para volver a intentarlo..." 98 100 99 #: class.copyfight-admin.php:5 33101 #: class.copyfight-admin.php:551 100 102 msgid "Overview" 101 103 msgstr "Visión de conjunto" 102 104 103 #: class.copyfight-admin.php:5 35105 #: class.copyfight-admin.php:553 104 106 msgid "Copyfight Overview" 105 107 msgstr "Descripción general de Overview" 106 108 107 #: class.copyfight-admin.php:5 36109 #: class.copyfight-admin.php:554 108 110 msgid "" 109 111 "Copyfight protects your content, so you can focus on more important things." … … 112 114 "importantes." 113 115 114 #: class.copyfight-admin.php:5 37116 #: class.copyfight-admin.php:555 115 117 msgid "" 116 118 "On this page, you are able to enter/remove an API key, view account " … … 120 122 "ver la información de la cuenta y ver las estadísticas." 121 123 122 #: class.copyfight-admin.php:5 46124 #: class.copyfight-admin.php:564 123 125 msgid "Copyfight Settings" 124 126 msgstr "Ajustes Copyfight" 125 127 126 #: class.copyfight-admin.php:5 47views/config.php:22128 #: class.copyfight-admin.php:565 views/config.php:22 127 129 msgid "API Key" 128 130 msgstr "API Clave" 129 131 130 #: class.copyfight-admin.php:5 47132 #: class.copyfight-admin.php:565 131 133 msgid "Enter/remove an API key." 132 134 msgstr "Introducir/eliminar una clave de API." 133 135 134 #: class.copyfight-admin.php:5 48views/config.php:49136 #: class.copyfight-admin.php:566 views/config.php:49 135 137 msgid "Default settings" 136 138 msgstr "Configuración por defecto" 137 139 138 #: class.copyfight-admin.php:5 48140 #: class.copyfight-admin.php:566 139 141 msgid "Edit your default settings." 140 142 msgstr "Editar la configuración por defecto." 141 143 142 #: class.copyfight-admin.php:5 49views/config.php:145144 #: class.copyfight-admin.php:567 views/config.php:145 143 145 msgid "General settings" 144 146 msgstr "Configuración general" 145 147 146 #: class.copyfight-admin.php:5 49148 #: class.copyfight-admin.php:567 147 149 msgid "Edit your general settings." 148 150 msgstr "Editar la configuración general." 149 151 150 #: class.copyfight-admin.php:5 50 views/config.php:303152 #: class.copyfight-admin.php:568 views/config.php:338 151 153 msgid "Other settings" 152 154 msgstr "Otros ajustes" 153 155 154 #: class.copyfight-admin.php:5 50156 #: class.copyfight-admin.php:568 155 157 msgid "Edit your other settings." 156 158 msgstr "Editar otros ajustes." 157 159 158 #: class.copyfight-admin.php:5 57160 #: class.copyfight-admin.php:575 159 161 msgid "Account" 160 162 msgstr "Cuenta" 161 163 162 #: class.copyfight-admin.php:5 59164 #: class.copyfight-admin.php:577 163 165 msgid "Copyfight Account" 164 166 msgstr "Cuenta de Copyfight" 165 167 166 #: class.copyfight-admin.php:5 60168 #: class.copyfight-admin.php:578 167 169 msgid "Subscription Type" 168 170 msgstr "Tipo de suscripción" 169 171 170 #: class.copyfight-admin.php:5 60172 #: class.copyfight-admin.php:578 171 173 msgid "The Copyfight subscription plan" 172 174 msgstr "El plan de suscripción Copyfight" 173 175 174 #: class.copyfight-admin.php:5 61176 #: class.copyfight-admin.php:579 175 177 msgid "The subscription status - active, cancelled or suspended" 176 178 msgstr "El estado de suscripción - activo, cancelado o suspendido" 177 179 178 #: class.copyfight-admin.php:5 66180 #: class.copyfight-admin.php:584 179 181 msgid "For more information:" 180 182 msgstr "Para más información:" 181 183 182 #: class.copyfight-admin.php:5 67184 #: class.copyfight-admin.php:585 183 185 msgid "Copyfight FAQ" 184 186 msgstr "Copyfight FAQ" 185 187 186 #: class.copyfight-admin.php:5 68188 #: class.copyfight-admin.php:586 187 189 msgid "Copyfight Support" 188 190 msgstr "Soporte Copyfight" 189 191 190 #: class.copyfight.php:166 192 #: class.copyfight.php:177 widgets.php:23 widgets.php:41 193 msgid "Protected by Copyfight" 194 msgstr "Protegido por Copyfight" 195 196 #: class.copyfight.php:188 191 197 msgid "Copyfight prevented copying this content." 192 198 msgstr "Copyfight impide la copia este contenido." 193 199 194 #: class.copyfight.php:2 11 class.copyfight.php:220200 #: class.copyfight.php:245 class.copyfight.php:254 195 201 msgid "" 196 202 "There is no content because this is a <a target=\"_blank\" href=\"https://" … … 284 290 msgstr "" 285 291 286 #: views/config.php:205 views/config.php:23 8292 #: views/config.php:205 views/config.php:235 287 293 msgid "Text selection" 288 294 msgstr "La selección de texto" … … 292 298 msgstr "Longitud" 293 299 294 #: views/config.php:24 4 views/config.php:257300 #: views/config.php:241 views/config.php:254 295 301 msgid "Search Engine Visibility" 296 302 msgstr "Visibilidad del motor de búsqueda" 297 303 298 #: views/config.php:26 3 views/config.php:276304 #: views/config.php:260 views/config.php:273 299 305 msgid "Right click" 300 306 msgstr "Botón derecho del mouse" 301 307 302 #: views/config.php:282 views/config.php:292 308 #: views/config.php:279 views/config.php:292 309 msgid "Print" 310 msgstr "Imprimir" 311 312 #: views/config.php:298 views/config.php:311 313 msgid "Printscreen" 314 msgstr "" 315 316 #: views/config.php:317 views/config.php:327 303 317 msgid "Copyright notice" 304 318 msgstr "Aviso de copyright" 305 319 306 #: views/config.php:3 08320 #: views/config.php:343 307 321 msgid "Widget settings" 308 322 msgstr "Configuración del widget" 309 323 310 #: views/config.php:3 08324 #: views/config.php:343 311 325 msgid "Click here" 312 326 msgstr "Haga clic aquí" 313 327 314 #: views/config.php:3 08328 #: views/config.php:343 315 329 msgid "to add and edit the Copyfight widget settings." 316 330 msgstr "añadir y editar la configuración del widget Copyfight." 317 331 318 #: views/config.php:3 12 views/config.php:325332 #: views/config.php:347 views/config.php:360 319 333 msgid "Debugging" 320 334 msgstr "Depuración" … … 342 356 msgid "Widget for Copyfight." 343 357 msgstr "Widget para Copyfight." 344 345 #: widgets.php:23 widgets.php:41346 msgid "Protected by Copyfight"347 msgstr "Protegido por Copyfight"348 358 349 359 #: widgets.php:47 -
copyfight/trunk/languages/copyfight-nl_NL.po
r1435845 r1436760 4 4 msgstr "" 5 5 "Project-Id-Version: Copyfight\n" 6 "POT-Creation-Date: 2016-06-1 3 15:22+0200\n"7 "PO-Revision-Date: 2016-06-1 3 15:23+0200\n"6 "POT-Creation-Date: 2016-06-15 00:08+0200\n" 7 "PO-Revision-Date: 2016-06-15 00:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Copyfight <[email protected]>\n" … … 19 19 "X-Poedit-SearchPathExcluded-0: languages\n" 20 20 21 #: class.copyfight-admin.php: 4821 #: class.copyfight-admin.php:50 22 22 msgid "Error: empty API Key field" 23 23 msgstr "Fout: leeg API sleutel veld" 24 24 25 #: class.copyfight-admin.php: 94 class.copyfight-admin.php:19126 #: class.copyfight-admin.php:5 44views/config.php:4525 #: class.copyfight-admin.php:100 class.copyfight-admin.php:198 26 #: class.copyfight-admin.php:562 views/config.php:45 27 27 msgid "Settings" 28 28 msgstr "Configuratie" 29 29 30 #: class.copyfight-admin.php:13 130 #: class.copyfight-admin.php:138 31 31 msgid "A Copyfight error has occurred, your article is not protected." 32 32 msgstr "Een Copyright fout is opgetreden, uw artikel is niet beschermd." 33 33 34 #: class.copyfight-admin.php:1 8434 #: class.copyfight-admin.php:191 35 35 msgid "Post" 36 36 msgid_plural "Posts" … … 38 38 msgstr[1] "berichten" 39 39 40 #: class.copyfight-admin.php:1 8540 #: class.copyfight-admin.php:192 41 41 msgid "Page" 42 42 msgid_plural "Pages" … … 44 44 msgstr[1] "pagina's" 45 45 46 #: class.copyfight-admin.php:1 8646 #: class.copyfight-admin.php:193 47 47 msgid "Character" 48 48 msgid_plural "Characters" … … 50 50 msgstr[1] "karakters" 51 51 52 #: class.copyfight-admin.php:1 8752 #: class.copyfight-admin.php:194 53 53 msgid "Word" 54 54 msgid_plural "Words" … … 56 56 msgstr[1] "woorden" 57 57 58 #: class.copyfight-admin.php:19 2 views/config.php:30658 #: class.copyfight-admin.php:199 views/config.php:341 59 59 msgid "Widget" 60 60 msgstr "" 61 61 62 #: class.copyfight-admin.php:2 87 class.copyfight-admin.php:30563 #: class.copyfight-admin.php:32 1views/config.php:63 views/config.php:8262 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 63 #: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82 64 64 #: views/config.php:101 views/config.php:159 views/config.php:178 65 #: views/config.php:197 views/config.php:216 views/config.php:255 66 #: views/config.php:274 views/config.php:323 65 #: views/config.php:197 views/config.php:216 views/config.php:252 66 #: views/config.php:271 views/config.php:290 views/config.php:309 67 #: views/config.php:358 67 68 msgid "Enabled" 68 69 msgstr "Aan" 69 70 70 #: class.copyfight-admin.php:2 87 class.copyfight-admin.php:30571 #: class.copyfight-admin.php:32 1views/config.php:62 views/config.php:8171 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 72 #: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81 72 73 #: views/config.php:100 views/config.php:158 views/config.php:177 73 #: views/config.php:196 views/config.php:215 views/config.php:254 74 #: views/config.php:273 views/config.php:322 74 #: views/config.php:196 views/config.php:215 views/config.php:251 75 #: views/config.php:270 views/config.php:289 views/config.php:308 76 #: views/config.php:357 75 77 msgid "Disabled" 76 78 msgstr "Uit" 77 79 78 #: class.copyfight-admin.php:2 89 class.copyfight-admin.php:56180 #: class.copyfight-admin.php:296 class.copyfight-admin.php:579 79 81 msgid "Status" 80 82 msgstr "Status" 81 83 82 #: class.copyfight-admin.php:3 0784 #: class.copyfight-admin.php:314 83 85 msgid "Tags" 84 86 msgstr "Tags" 85 87 86 #: class.copyfight-admin.php:3 2388 #: class.copyfight-admin.php:330 87 89 msgid "Blur" 88 90 msgstr "Vervagen" 89 91 90 #: class.copyfight-admin.php:5 14 class.copyfight-admin.php:64791 #: class.copyfight-admin.php:6 6492 #: class.copyfight-admin.php:532 class.copyfight-admin.php:669 93 #: class.copyfight-admin.php:686 92 94 msgid "A Copyfight error has occurred..." 93 95 msgstr "Er is een Copyfight fout opgetreden..." 94 96 95 #: class.copyfight-admin.php:5 15 class.copyfight-admin.php:64896 #: class.copyfight-admin.php:6 6597 #: class.copyfight-admin.php:533 class.copyfight-admin.php:670 98 #: class.copyfight-admin.php:687 97 99 msgid "Click here to try again..." 98 100 msgstr "Klik hier om opnieuw te proberen..." 99 101 100 #: class.copyfight-admin.php:5 33102 #: class.copyfight-admin.php:551 101 103 msgid "Overview" 102 104 msgstr "Overzicht" 103 105 104 #: class.copyfight-admin.php:5 35106 #: class.copyfight-admin.php:553 105 107 msgid "Copyfight Overview" 106 108 msgstr "Copyfight Overzicht" 107 109 108 #: class.copyfight-admin.php:5 36110 #: class.copyfight-admin.php:554 109 111 msgid "" 110 112 "Copyfight protects your content, so you can focus on more important things." … … 113 115 "belangrijke zaken." 114 116 115 #: class.copyfight-admin.php:5 37117 #: class.copyfight-admin.php:555 116 118 msgid "" 117 119 "On this page, you are able to enter/remove an API key, view account " … … 121 123 "bekijken." 122 124 123 #: class.copyfight-admin.php:5 46125 #: class.copyfight-admin.php:564 124 126 msgid "Copyfight Settings" 125 127 msgstr "Copyfight Configuratie" 126 128 127 #: class.copyfight-admin.php:5 47views/config.php:22129 #: class.copyfight-admin.php:565 views/config.php:22 128 130 msgid "API Key" 129 131 msgstr "API key" 130 132 131 #: class.copyfight-admin.php:5 47133 #: class.copyfight-admin.php:565 132 134 msgid "Enter/remove an API key." 133 135 msgstr "API-sleutel invoeren of verwijderen." 134 136 135 #: class.copyfight-admin.php:5 48views/config.php:49137 #: class.copyfight-admin.php:566 views/config.php:49 136 138 msgid "Default settings" 137 139 msgstr "Standaard instellingen" 138 140 139 #: class.copyfight-admin.php:5 48141 #: class.copyfight-admin.php:566 140 142 msgid "Edit your default settings." 141 143 msgstr "Bewerk uw standaardinstellingen." 142 144 143 #: class.copyfight-admin.php:5 49views/config.php:145145 #: class.copyfight-admin.php:567 views/config.php:145 144 146 msgid "General settings" 145 147 msgstr "Algemene instellingen" 146 148 147 #: class.copyfight-admin.php:5 49149 #: class.copyfight-admin.php:567 148 150 msgid "Edit your general settings." 149 151 msgstr "Bewerk uw algemene instellingen." 150 152 151 #: class.copyfight-admin.php:5 50 views/config.php:303153 #: class.copyfight-admin.php:568 views/config.php:338 152 154 msgid "Other settings" 153 155 msgstr "Overige instellingen" 154 156 155 #: class.copyfight-admin.php:5 50157 #: class.copyfight-admin.php:568 156 158 msgid "Edit your other settings." 157 159 msgstr "Bewerk uw andere instellingen." 158 160 159 #: class.copyfight-admin.php:5 57161 #: class.copyfight-admin.php:575 160 162 msgid "Account" 161 163 msgstr "Account" 162 164 163 #: class.copyfight-admin.php:5 59165 #: class.copyfight-admin.php:577 164 166 msgid "Copyfight Account" 165 167 msgstr "" 166 168 167 #: class.copyfight-admin.php:5 60169 #: class.copyfight-admin.php:578 168 170 msgid "Subscription Type" 169 171 msgstr "Abonnementstype" 170 172 171 #: class.copyfight-admin.php:5 60173 #: class.copyfight-admin.php:578 172 174 msgid "The Copyfight subscription plan" 173 175 msgstr "Het Copyfight abonnementen overzicht" 174 176 175 #: class.copyfight-admin.php:5 61177 #: class.copyfight-admin.php:579 176 178 msgid "The subscription status - active, cancelled or suspended" 177 179 msgstr "Abonnementstatus - actief, geannuleerd of geschorst" 178 180 179 #: class.copyfight-admin.php:5 66181 #: class.copyfight-admin.php:584 180 182 msgid "For more information:" 181 183 msgstr "Voor meer info:" 182 184 183 #: class.copyfight-admin.php:5 67185 #: class.copyfight-admin.php:585 184 186 msgid "Copyfight FAQ" 185 187 msgstr "Copyfight Veelgestelde Vragen" 186 188 187 #: class.copyfight-admin.php:5 68189 #: class.copyfight-admin.php:586 188 190 msgid "Copyfight Support" 189 191 msgstr "Copyfight ondersteuning" 190 192 191 #: class.copyfight.php:166 193 #: class.copyfight.php:177 widgets.php:23 widgets.php:41 194 msgid "Protected by Copyfight" 195 msgstr "Beveiligd door Copyfight" 196 197 #: class.copyfight.php:188 192 198 msgid "Copyfight prevented copying this content." 193 199 msgstr "Copyfight voorkwam het kopiëren van deze content." 194 200 195 #: class.copyfight.php:2 11 class.copyfight.php:220201 #: class.copyfight.php:245 class.copyfight.php:254 196 202 msgid "" 197 203 "There is no content because this is a <a target=\"_blank\" href=\"https://" 198 204 "getcopyfight.com/\">Copyfight</a> protected article." 199 205 msgstr "" 200 "Er is geen inhoud gekopieerd, want dit is een <a target=\"_blank\" href="201 " \"https://getcopyfight.com/\">Copyfight</a> beschermd artikel."206 "Er is geen inhoud, want dit is een <a target=\"_blank\" href=\"https://" 207 "getcopyfight.com/\">Copyfight</a> beschermd artikel." 202 208 203 209 #: views/config.php:4 … … 284 290 msgstr "" 285 291 286 #: views/config.php:205 views/config.php:23 8292 #: views/config.php:205 views/config.php:235 287 293 msgid "Text selection" 288 294 msgstr "Text selectie" … … 292 298 msgstr "Lengte" 293 299 294 #: views/config.php:24 4 views/config.php:257300 #: views/config.php:241 views/config.php:254 295 301 msgid "Search Engine Visibility" 296 302 msgstr "Zoekmachine zichtbaarheid" 297 303 298 #: views/config.php:26 3 views/config.php:276304 #: views/config.php:260 views/config.php:273 299 305 msgid "Right click" 300 306 msgstr "Rechtermuisknop" 301 307 302 #: views/config.php:282 views/config.php:292 308 #: views/config.php:279 views/config.php:292 309 msgid "Print" 310 msgstr "Afdrukken" 311 312 #: views/config.php:298 views/config.php:311 313 msgid "Printscreen" 314 msgstr "" 315 316 #: views/config.php:317 views/config.php:327 303 317 msgid "Copyright notice" 304 318 msgstr "Copyright melding" 305 319 306 #: views/config.php:3 08320 #: views/config.php:343 307 321 msgid "Widget settings" 308 322 msgstr "Widget instellingen" 309 323 310 #: views/config.php:3 08324 #: views/config.php:343 311 325 msgid "Click here" 312 326 msgstr "Klik hier" 313 327 314 #: views/config.php:3 08328 #: views/config.php:343 315 329 msgid "to add and edit the Copyfight widget settings." 316 330 msgstr "voor het toevoegen en wijzigen van de Copyfight widget instellingen." 317 331 318 #: views/config.php:3 12 views/config.php:325332 #: views/config.php:347 views/config.php:360 319 333 msgid "Debugging" 320 334 msgstr "Debuggen" … … 341 355 msgid "Widget for Copyfight." 342 356 msgstr "Widget voor Copyfight." 343 344 #: widgets.php:23 widgets.php:41345 msgid "Protected by Copyfight"346 msgstr "Beveiligd door Copyfight"347 357 348 358 #: widgets.php:47 -
copyfight/trunk/languages/copyfight-zh_CN.po
r1435845 r1436760 4 4 msgstr "" 5 5 "Project-Id-Version: Copyfight\n" 6 "POT-Creation-Date: 2016-06- 08 20:30+0200\n"7 "PO-Revision-Date: 2016-06-1 0 14:00+0200\n"6 "POT-Creation-Date: 2016-06-15 00:08+0200\n" 7 "PO-Revision-Date: 2016-06-15 00:09+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Copyfight <[email protected]>\n" … … 19 19 "X-Poedit-SearchPathExcluded-0: languages\n" 20 20 21 #: class.copyfight-admin.php: 7821 #: class.copyfight-admin.php:50 22 22 msgid "Error: empty API Key field" 23 23 msgstr "錯誤:沒有填寫API密碼" 24 24 25 #: class.copyfight-admin.php:1 23 class.copyfight-admin.php:22026 #: class.copyfight-admin.php:56 8views/config.php:4525 #: class.copyfight-admin.php:100 class.copyfight-admin.php:198 26 #: class.copyfight-admin.php:562 views/config.php:45 27 27 msgid "Settings" 28 28 msgstr "設置" 29 29 30 #: class.copyfight-admin.php:1 6030 #: class.copyfight-admin.php:138 31 31 msgid "A Copyfight error has occurred, your article is not protected." 32 32 msgstr "發現Copyfight錯誤,你的文章是不受保護的。" 33 33 34 #: class.copyfight-admin.php: 21334 #: class.copyfight-admin.php:191 35 35 msgid "Post" 36 36 msgid_plural "Posts" … … 38 38 msgstr[1] "信息" 39 39 40 #: class.copyfight-admin.php: 21440 #: class.copyfight-admin.php:192 41 41 msgid "Page" 42 42 msgid_plural "Pages" … … 44 44 msgstr[1] "頁" 45 45 46 #: class.copyfight-admin.php: 21546 #: class.copyfight-admin.php:193 47 47 msgid "Character" 48 48 msgid_plural "Characters" … … 50 50 msgstr[1] "字符" 51 51 52 #: class.copyfight-admin.php: 21652 #: class.copyfight-admin.php:194 53 53 msgid "Word" 54 54 msgid_plural "Words" … … 56 56 msgstr[1] "字" 57 57 58 #: class.copyfight-admin.php: 221 views/config.php:28658 #: class.copyfight-admin.php:199 views/config.php:341 59 59 msgid "Widget" 60 60 msgstr "小工具" 61 61 62 #: class.copyfight-admin.php: 316 class.copyfight-admin.php:33463 #: class.copyfight-admin.php:3 50views/config.php:63 views/config.php:8262 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 63 #: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82 64 64 #: views/config.php:101 views/config.php:159 views/config.php:178 65 #: views/config.php:197 views/config.php:216 views/config.php:235 66 #: views/config.php:254 views/config.php:303 65 #: views/config.php:197 views/config.php:216 views/config.php:252 66 #: views/config.php:271 views/config.php:290 views/config.php:309 67 #: views/config.php:358 67 68 msgid "Enabled" 68 69 msgstr "啟用" 69 70 70 #: class.copyfight-admin.php: 316 class.copyfight-admin.php:33471 #: class.copyfight-admin.php:3 50views/config.php:62 views/config.php:8171 #: class.copyfight-admin.php:294 class.copyfight-admin.php:312 72 #: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81 72 73 #: views/config.php:100 views/config.php:158 views/config.php:177 73 #: views/config.php:196 views/config.php:215 views/config.php:234 74 #: views/config.php:253 views/config.php:302 74 #: views/config.php:196 views/config.php:215 views/config.php:251 75 #: views/config.php:270 views/config.php:289 views/config.php:308 76 #: views/config.php:357 75 77 msgid "Disabled" 76 78 msgstr "已禁用" 77 79 78 #: class.copyfight-admin.php: 318 class.copyfight-admin.php:58580 #: class.copyfight-admin.php:296 class.copyfight-admin.php:579 79 81 msgid "Status" 80 82 msgstr "狀態" 81 83 82 #: class.copyfight-admin.php:3 3684 #: class.copyfight-admin.php:314 83 85 msgid "Tags" 84 86 msgstr "標籤" 85 87 86 #: class.copyfight-admin.php:3 5288 #: class.copyfight-admin.php:330 87 89 msgid "Blur" 88 90 msgstr "模" 89 91 90 #: class.copyfight-admin.php:53 8 class.copyfight-admin.php:67191 #: class.copyfight-admin.php:68 892 #: class.copyfight-admin.php:532 class.copyfight-admin.php:669 93 #: class.copyfight-admin.php:686 92 94 msgid "A Copyfight error has occurred..." 93 95 msgstr "發現Copyfight錯誤…" 94 96 95 #: class.copyfight-admin.php:53 9 class.copyfight-admin.php:67296 #: class.copyfight-admin.php:68 997 #: class.copyfight-admin.php:533 class.copyfight-admin.php:670 98 #: class.copyfight-admin.php:687 97 99 msgid "Click here to try again..." 98 100 msgstr "點擊這裡再試一次…" 99 101 100 #: class.copyfight-admin.php:55 7102 #: class.copyfight-admin.php:551 101 103 msgid "Overview" 102 104 msgstr "概覽" 103 105 104 #: class.copyfight-admin.php:55 9106 #: class.copyfight-admin.php:553 105 107 msgid "Copyfight Overview" 106 108 msgstr "Copyfight概覽" 107 109 108 #: class.copyfight-admin.php:5 60110 #: class.copyfight-admin.php:554 109 111 msgid "" 110 112 "Copyfight protects your content, so you can focus on more important things." 111 113 msgstr "Copyfight保護您的內容,這樣你就可以專注於更重要的事情。" 112 114 113 #: class.copyfight-admin.php:5 61115 #: class.copyfight-admin.php:555 114 116 msgid "" 115 117 "On this page, you are able to enter/remove an API key, view account " … … 117 119 msgstr "在這個頁面,你可以輸入/刪除API密碼,查看帳戶信息和統計數據。" 118 120 119 #: class.copyfight-admin.php:5 70121 #: class.copyfight-admin.php:564 120 122 msgid "Copyfight Settings" 121 123 msgstr "Copyfight設置" 122 124 123 #: class.copyfight-admin.php:5 71views/config.php:22125 #: class.copyfight-admin.php:565 views/config.php:22 124 126 msgid "API Key" 125 127 msgstr "API密碼" 126 128 127 #: class.copyfight-admin.php:5 71129 #: class.copyfight-admin.php:565 128 130 msgid "Enter/remove an API key." 129 131 msgstr "輸入/刪除API密碼" 130 132 131 #: class.copyfight-admin.php:5 72views/config.php:49133 #: class.copyfight-admin.php:566 views/config.php:49 132 134 msgid "Default settings" 133 135 msgstr "默認設置" 134 136 135 #: class.copyfight-admin.php:5 72137 #: class.copyfight-admin.php:566 136 138 msgid "Edit your default settings." 137 139 msgstr "編輯您的默認設置。" 138 140 139 #: class.copyfight-admin.php:5 73views/config.php:145141 #: class.copyfight-admin.php:567 views/config.php:145 140 142 msgid "General settings" 141 143 msgstr "常規設置" 142 144 143 #: class.copyfight-admin.php:5 73145 #: class.copyfight-admin.php:567 144 146 msgid "Edit your general settings." 145 147 msgstr "編輯您的常規設置" 146 148 147 #: class.copyfight-admin.php:5 74 views/config.php:283149 #: class.copyfight-admin.php:568 views/config.php:338 148 150 msgid "Other settings" 149 151 msgstr "其他設置" 150 152 151 #: class.copyfight-admin.php:5 74153 #: class.copyfight-admin.php:568 152 154 msgid "Edit your other settings." 153 155 msgstr "編輯您的其他設置" 154 156 155 #: class.copyfight-admin.php:5 81157 #: class.copyfight-admin.php:575 156 158 msgid "Account" 157 159 msgstr "帳戶" 158 160 159 #: class.copyfight-admin.php:5 83161 #: class.copyfight-admin.php:577 160 162 msgid "Copyfight Account" 161 163 msgstr "Copyfight帳戶" 162 164 163 #: class.copyfight-admin.php:5 84165 #: class.copyfight-admin.php:578 164 166 msgid "Subscription Type" 165 167 msgstr "訂閱類型" 166 168 167 #: class.copyfight-admin.php:5 84169 #: class.copyfight-admin.php:578 168 170 msgid "The Copyfight subscription plan" 169 171 msgstr "Copyfight訂閱計劃" 170 172 171 #: class.copyfight-admin.php:5 85173 #: class.copyfight-admin.php:579 172 174 msgid "The subscription status - active, cancelled or suspended" 173 175 msgstr "訂閱狀態 - 啟動,取消或暫停" 174 176 175 #: class.copyfight-admin.php:5 90177 #: class.copyfight-admin.php:584 176 178 msgid "For more information:" 177 179 msgstr "欲了解更多信息:" 178 180 179 #: class.copyfight-admin.php:5 91181 #: class.copyfight-admin.php:585 180 182 msgid "Copyfight FAQ" 181 183 msgstr "Copyfight常見問題解答" 182 184 183 #: class.copyfight-admin.php:5 92185 #: class.copyfight-admin.php:586 184 186 msgid "Copyfight Support" 185 187 msgstr "Copyfight支持" 186 188 187 #: class.copyfight.php:174 189 #: class.copyfight.php:177 widgets.php:23 widgets.php:41 190 msgid "Protected by Copyfight" 191 msgstr "Copyfight保護" 192 193 #: class.copyfight.php:188 188 194 msgid "Copyfight prevented copying this content." 189 195 msgstr "Copyfight防止複製此內容。" 190 196 191 #: class.copyfight.php: 199 class.copyfight.php:208197 #: class.copyfight.php:245 class.copyfight.php:254 192 198 msgid "" 193 199 "There is no content because this is a <a target=\"_blank\" href=\"https://" … … 278 284 msgstr "(無樣式內容的閃現)" 279 285 280 #: views/config.php:205 views/config.php:2 18286 #: views/config.php:205 views/config.php:235 281 287 msgid "Text selection" 282 288 msgstr "選擇文本" 283 289 284 #: views/config.php:224 views/config.php:237 290 #: views/config.php:218 291 msgid "Length" 292 msgstr "截" 293 294 #: views/config.php:241 views/config.php:254 285 295 msgid "Search Engine Visibility" 286 296 msgstr "搜索引擎可見性" 287 297 288 #: views/config.php:2 43 views/config.php:256298 #: views/config.php:260 views/config.php:273 289 299 msgid "Right click" 290 300 msgstr "右鍵點擊" 291 301 292 #: views/config.php:262 views/config.php:272 302 #: views/config.php:279 views/config.php:292 303 msgid "Print" 304 msgstr "刊" 305 306 #: views/config.php:298 views/config.php:311 307 msgid "Printscreen" 308 msgstr "" 309 310 #: views/config.php:317 views/config.php:327 293 311 msgid "Copyright notice" 294 312 msgstr "Copyright 聲明" 295 313 296 #: views/config.php: 288314 #: views/config.php:343 297 315 msgid "Widget settings" 298 316 msgstr "小工具設定" 299 317 300 #: views/config.php: 288318 #: views/config.php:343 301 319 msgid "Click here" 302 320 msgstr "點擊這裡" 303 321 304 #: views/config.php: 288322 #: views/config.php:343 305 323 msgid "to add and edit the Copyfight widget settings." 306 324 msgstr "添加和編輯的Copyright小工具設置。" 307 325 308 #: views/config.php: 292 views/config.php:305326 #: views/config.php:347 views/config.php:360 309 327 msgid "Debugging" 310 328 msgstr "調試" … … 330 348 msgid "Widget for Copyfight." 331 349 msgstr "Copyright小工具" 332 333 #: widgets.php:23 widgets.php:41334 msgid "Protected by Copyfight"335 msgstr "Copyfight保護"336 350 337 351 #: widgets.php:47 -
copyfight/trunk/readme.txt
r1435851 r1436760 7 7 Requires at least: 3.3.0 8 8 Tested up to: 4.5.2 9 Stable tag: 1.5. 09 Stable tag: 1.5.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html 12 12 13 Protecting your website against theft is now considered mandatory for website owners.13 Protecting your website against copyright infringement and plagiarism. 14 14 15 15 == Description == 16 16 This Copyfight plugin has been optimized for WordPress and includes a (dashboard) 17 widget, shortcode, post and page options to keep your content protected against infringement 18 and plagiarism. It also protects you against spam bots and data breaches. 17 widget, shortcode, post and page options to keep your content protected against 18 infringement and plagiarism. It also protects you against spam bots and data 19 breaches. 19 20 20 21 Copyfight distinguish itself not relying on JavaScript. That’s not such a … … 38 39 tags the post or page with the most important keywords. 39 40 41 Check the Copyfight website for more information: https://getcopyfight.com/ 42 40 43 == Installation == 41 44 Install Copyfight using the built-in plugin installer: 45 42 46 1. Go to Plugins > Add New. 43 2. Type in the name of the WordPress Plugin (Copyfight) or descriptive keyword, author, or tag in Search Plugins box or 44 click a tag link below the screen. 47 48 2. Type in the name of the WordPress Plugin (Copyfight) or descriptive keyword, author, or tag in Search Plugins box or click a tag link below the screen. 49 45 50 3. Find the WordPress Plugin you wish to install. 46 4. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the 47 Plugin. 51 52 4. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the Plugin. 53 48 54 5. Click Install Now to install the WordPress Plugin. 55 49 56 6. The resulting installation screen will list the installation as successful or note any problems during the install. 57 50 58 7. If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions. 51 59 52 60 After activation none of your existing posts and pages are protected by default. First you'll have to request or fill in 53 a valid API Key and select a Default font. Updated and newly created posts and pages will be protected by default after61 a valid API Key and select a default font. Updated and newly created posts and pages will be protected by default after 54 62 successful activation. 55 63 … … 70 78 71 79 == Upgrade Notice == 72 Check the Copyfight website for the latest upgrade notices: https://getcopyfight.com/ Upgrades/80 Check the Copyfight website for the latest upgrade notices: https://getcopyfight.com/upgrades/ -
copyfight/trunk/uninstall.php
r1435845 r1436760 21 21 delete_option( 'copyfight_debugging' ); 22 22 delete_option( 'copyfight_right_click' ); 23 delete_option( 'copyfight_print' ); 24 delete_option( 'copyfight_printscreen' ); 25 delete_option( 'copyfight_settings' ); -
copyfight/trunk/views/config.php
r1435845 r1436760 1 <?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) {1 <?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) { 2 2 $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' ); 3 3 if ( $response->status->http == '0' || $response->status->mysql == '0' ) { … … 13 13 <div class="cf_settings"> 14 14 15 <div class="version"><?php _e( 'Version', 'copyfight'); ?> <?php echo COPYFIGHT_VERSION; ?></div>16 <a href="<?php echo COPYFIGHT_HOME; ?>" target="_blank"><div class="logo" ></div></a>15 <div class="version"><?php _e( 'Version', 'copyfight' ); ?> <?php echo COPYFIGHT_VERSION; ?></div> 16 <a href="<?php echo COPYFIGHT_HOME; ?>" target="_blank"><div class="logo" style="background: url('<?php echo COPYFIGHT_PLUGIN_URL; ?>_inc/img/copyfight-logo-color.svg'); background-size: 100%;"></div></a> 17 17 18 18 <form action="options.php" method="POST" id="copyfight-config"> 19 <?php settings_fields('copyfight_options_group' ); ?>19 <?php settings_fields('copyfight_options_group' ); ?> 20 20 <div class="activate-highlight activate-option"> 21 21 <div class="option-description"> 22 <strong><?php _e( 'API Key', 'copyfight'); ?></strong>23 <?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) { ?>22 <strong><?php _e( 'API Key', 'copyfight' ); ?></strong> 23 <?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) { ?> 24 24 <br/><br/> 25 <strong><?php _e( 'API Status', 'copyfight'); ?></strong> <?php echo $api_status_image; ?><br/>25 <strong><?php _e( 'API Status', 'copyfight' ); ?></strong> <?php echo $api_status_image; ?><br/> 26 26 <?php echo $api_status; ?> 27 27 <?php } ?> 28 28 </div> 29 29 <div class="right"> 30 <?php if ( strlen(get_option( 'copyfight_api_key')) == 0 ) { ?>31 <input id="copyfight_api_key" name="copyfight_api_key" type="text" size="15" value="<?php echo get_option( 'copyfight_api_key'); ?>" placeholder="<?php _e( 'Enter your email', 'copyfight'); ?>" class="regular-text code">32 <input type="submit" name="submit" id="copyfight_api_key_reset" class="button button-primary" value="<?php _e( 'Activate Copyfight', 'copyfight'); ?>">33 <p class="description"><?php _e( 'Enter your email address or API Key if you have one', 'copyfight'); ?></p>30 <?php if ( strlen(get_option( 'copyfight_api_key')) == 0 ) { ?> 31 <input id="copyfight_api_key" name="copyfight_api_key" type="text" size="15" value="<?php echo get_option( 'copyfight_api_key' ); ?>" placeholder="<?php _e( 'Enter your email', 'copyfight' ); ?>" class="regular-text code"> 32 <input type="submit" name="submit" id="copyfight_api_key_reset" class="button button-primary" value="<?php _e( 'Activate Copyfight', 'copyfight' ); ?>"> 33 <p class="description"><?php _e( 'Enter your email address or API Key if you have one', 'copyfight' ); ?></p> 34 34 <p> 35 35 <input type="checkbox" id="copyfight_newsletter" name="copyfight_newsletter" value="true" checked="checked"> 36 <label for="copyfight_newsletter"><?php _e( 'Receive email updates about Copyfight', 'copyfight'); ?></label>36 <label for="copyfight_newsletter"><?php _e( 'Receive email updates about Copyfight', 'copyfight' ); ?></label> 37 37 </p> 38 38 <?php } else { ?> 39 <input id="copyfight_api_key" name="copyfight_api_key" type="text" size="15" value="<?php echo get_option( 'copyfight_api_key'); ?>" class="regular-text code" readonly>40 <input type="submit" name="submit" id="copyfight_api_key_reset" class="button button-primary" value="<?php _e( 'Reset API Key', 'copyfight'); ?>">39 <input id="copyfight_api_key" name="copyfight_api_key" type="text" size="15" value="<?php echo get_option( 'copyfight_api_key' ); ?>" class="regular-text code" readonly> 40 <input type="submit" name="submit" id="copyfight_api_key_reset" class="button button-primary" value="<?php _e( 'Reset API Key', 'copyfight' ); ?>"> 41 41 <?php } ?> 42 42 </div> 43 43 </div> 44 44 45 <h3><?php _e( 'Settings', 'copyfight'); ?></h3>46 <p><?php _e( 'These settings are triggered right after a post or page has been saved. This means your posts might not have been protected, yet. Manually save your individual posts and pages first.', 'copyfight'); ?></p>45 <h3><?php _e( 'Settings', 'copyfight' ); ?></h3> 46 <p><?php _e( 'These settings are triggered right after a post or page has been saved. This means your posts might not have been protected, yet. Manually save your individual posts and pages first.', 'copyfight' ); ?></p> 47 47 48 48 <fieldset class="fieldset"> 49 <legend><?php _e( 'Default settings', 'copyfight'); ?></legend>49 <legend><?php _e( 'Default settings', 'copyfight' ); ?></legend> 50 50 <table class="form-table"> 51 51 <tr valign="top"> 52 <th scope="row"><label for="copyfight_status"><?php _e( 'Default status', 'copyfight'); ?></label></th>52 <th scope="row"><label for="copyfight_status"><?php _e( 'Default status', 'copyfight' ); ?></label></th> 53 53 <td style="white-space: nowrap"> 54 54 <select id="copyfight_status" name="copyfight_status"> 55 55 <?php 56 $copyfight_status = get_option( 'copyfight_status');56 $copyfight_status = get_option( 'copyfight_status' ); 57 57 if ( strlen( $copyfight_status ) == 0 ) { 58 update_option( 'copyfight_status', 'enabled');59 $copyfight_status = get_option( 'copyfight_status');60 } 61 ?> 62 <option <?php if ( $copyfight_status == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight'); ?></option>';63 <option <?php if ( $copyfight_status == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight'); ?></option>';64 </select> 65 <a id="copyfight_status_info_link" target="_blank" title="<?php _e( 'Default status', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-status/">66 <div class="dashicons dashicons-info"></div> 67 </a> 68 </td> 69 </tr> 70 <tr valign="top"> 71 <th scope="row"><label for="copyfight_tags"><?php _e( 'Default tags', 'copyfight'); ?></label></th>58 update_option( 'copyfight_status', 'enabled' ); 59 $copyfight_status = get_option( 'copyfight_status' ); 60 } 61 ?> 62 <option <?php if ( $copyfight_status == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 63 <option <?php if ( $copyfight_status == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 64 </select> 65 <a id="copyfight_status_info_link" target="_blank" title="<?php _e( 'Default status', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-status/"> 66 <div class="dashicons dashicons-info"></div> 67 </a> 68 </td> 69 </tr> 70 <tr valign="top"> 71 <th scope="row"><label for="copyfight_tags"><?php _e( 'Default tags', 'copyfight' ); ?></label></th> 72 72 <td style="white-space: nowrap"> 73 73 <select id="copyfight_tags" name="copyfight_tags"> 74 74 <?php 75 $copyfight_tags = get_option( 'copyfight_tags');75 $copyfight_tags = get_option( 'copyfight_tags' ); 76 76 if ( strlen( $copyfight_tags ) == 0 ) { 77 update_option( 'copyfight_tags', 'enabled');78 $copyfight_tags = get_option( 'copyfight_tags');79 } 80 ?> 81 <option <?php if ( $copyfight_tags == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight'); ?></option>';82 <option <?php if ( $copyfight_tags == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight'); ?></option>';83 </select> 84 <a id="copyfight_tags_info_link" target="_blank" title="<?php _e( 'Default tags', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-tags/">85 <div class="dashicons dashicons-info"></div> 86 </a> 87 </td> 88 </tr> 89 <tr valign="top"> 90 <th scope="row"><label for="copyfight_blur"><?php _e( 'Default blur', 'copyfight'); ?></label></th>77 update_option( 'copyfight_tags', 'enabled' ); 78 $copyfight_tags = get_option( 'copyfight_tags' ); 79 } 80 ?> 81 <option <?php if ( $copyfight_tags == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 82 <option <?php if ( $copyfight_tags == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 83 </select> 84 <a id="copyfight_tags_info_link" target="_blank" title="<?php _e( 'Default tags', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-tags/"> 85 <div class="dashicons dashicons-info"></div> 86 </a> 87 </td> 88 </tr> 89 <tr valign="top"> 90 <th scope="row"><label for="copyfight_blur"><?php _e( 'Default blur', 'copyfight' ); ?></label></th> 91 91 <td style="white-space: nowrap"> 92 92 <select id="copyfight_blur" name="copyfight_blur"> 93 93 <?php 94 $copyfight_blur = get_option( 'copyfight_blur');94 $copyfight_blur = get_option( 'copyfight_blur' ); 95 95 if ( strlen( $copyfight_blur ) == 0 ) { 96 update_option( 'copyfight_blur', 'disabled');97 $copyfight_blur = get_option( 'copyfight_blur');98 } 99 ?> 100 <option <?php if ( $copyfight_blur == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight'); ?></option>';101 <option <?php if ( $copyfight_blur == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight'); ?></option>';102 </select> 103 <a id="copyfight_blur_info_link" target="_blank" title="<?php _e( 'Default blur', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-blur/">104 <div class="dashicons dashicons-info"></div> 105 </a> 106 </td> 107 </tr> 108 <tr valign="top"> 109 <th scope="row"><label for="copyfight_typeface"><?php _e( 'Typeface', 'copyfight'); ?></label></th>96 update_option( 'copyfight_blur', 'disabled' ); 97 $copyfight_blur = get_option( 'copyfight_blur' ); 98 } 99 ?> 100 <option <?php if ( $copyfight_blur == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 101 <option <?php if ( $copyfight_blur == 'enabled') { echo 'selected '; } ?>value="enabled"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 102 </select> 103 <a id="copyfight_blur_info_link" target="_blank" title="<?php _e( 'Default blur', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-blur/"> 104 <div class="dashicons dashicons-info"></div> 105 </a> 106 </td> 107 </tr> 108 <tr valign="top"> 109 <th scope="row"><label for="copyfight_typeface"><?php _e( 'Typeface', 'copyfight' ); ?></label></th> 110 110 <td style="white-space: nowrap"> 111 111 <select id="copyfight_typeface" name="copyfight_typeface"> … … 114 114 $fontlist = file_get_contents( COPYFIGHT_FONTLIST ); 115 115 $fonts = unserialize( $fontlist ); 116 $copyfight_typeface = get_option( 'copyfight_typeface');116 $copyfight_typeface = get_option( 'copyfight_typeface' ); 117 117 if ( strlen( $copyfight_typeface ) == 0 ) { 118 update_option( 'copyfight_typeface', 'opensans/OpenSans-Regular.ttf');119 $copyfight_typeface = get_option( 'copyfight_typeface');118 update_option( 'copyfight_typeface', 'opensans/OpenSans-Regular.ttf' ); 119 $copyfight_typeface = get_option( 'copyfight_typeface' ); 120 120 } 121 121 asort($fonts); … … 131 131 <?php add_thickbox(); ?> 132 132 <div id="copyfight_typeface_info_loader"><img src="/wp-admin/images/wpspin_light-2x.gif" /></div> 133 <a id="copyfight_typeface_info_link" title="<?php _e( 'Typeface', 'copyfight'); ?>" href="#TB_inline?width=640&height=320&inlineId=copyfight_typeface_info" class="thickbox">133 <a id="copyfight_typeface_info_link" title="<?php _e( 'Typeface', 'copyfight' ); ?>" href="#TB_inline?width=640&height=320&inlineId=copyfight_typeface_info" class="thickbox"> 134 134 <div class="dashicons dashicons-info copyfight_typeface_info"></div> 135 135 </a> … … 140 140 </fieldset> 141 141 142 <p><?php _e( 'These settings have an immediate effect on your content.', 'copyfight'); ?></p>142 <p><?php _e( 'These settings have an immediate effect on your content.', 'copyfight' ); ?></p> 143 143 144 144 <fieldset class="fieldset"> 145 <legend><?php _e( 'General settings', 'copyfight'); ?></legend>145 <legend><?php _e( 'General settings', 'copyfight' ); ?></legend> 146 146 <table class="form-table"> 147 147 <tr valign="top"> 148 <th scope="row"><label for="copyfight_cdn"><?php _e( 'Content Delivery Network', 'copyfight'); ?></label></th>148 <th scope="row"><label for="copyfight_cdn"><?php _e( 'Content Delivery Network', 'copyfight' ); ?></label></th> 149 149 <td style="white-space: nowrap"> 150 150 <select id="copyfight_cdn" name="copyfight_cdn"> 151 151 <?php 152 $copyfight_cdn = get_option( 'copyfight_cdn');152 $copyfight_cdn = get_option( 'copyfight_cdn' ); 153 153 if ( strlen( $copyfight_cdn ) == 0 ) { 154 update_option( 'copyfight_cdn', 'false');155 $copyfight_cdn = get_option( 'copyfight_cdn');156 } 157 ?> 158 <option <?php if ( $copyfight_cdn == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight'); ?></option>';159 <option <?php if ( $copyfight_cdn == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight'); ?></option>';160 </select> 161 <a id="copyfight_cdn_info_link" target="_blank" title="<?php _e( 'Content Delivery Network', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-content-delivery-network/">162 <div class="dashicons dashicons-info"></div> 163 </a> 164 </td> 165 </tr> 166 <tr valign="top"> 167 <th scope="row"><label for="copyfight_excerpt"><?php _e( 'Use excerpt', 'copyfight'); ?></label></th>154 update_option( 'copyfight_cdn', 'false' ); 155 $copyfight_cdn = get_option( 'copyfight_cdn' ); 156 } 157 ?> 158 <option <?php if ( $copyfight_cdn == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 159 <option <?php if ( $copyfight_cdn == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 160 </select> 161 <a id="copyfight_cdn_info_link" target="_blank" title="<?php _e( 'Content Delivery Network', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-content-delivery-network/"> 162 <div class="dashicons dashicons-info"></div> 163 </a> 164 </td> 165 </tr> 166 <tr valign="top"> 167 <th scope="row"><label for="copyfight_excerpt"><?php _e( 'Use excerpt', 'copyfight' ); ?></label></th> 168 168 <td style="white-space: nowrap"> 169 169 <select id="copyfight_excerpt" name="copyfight_excerpt"> 170 170 <?php 171 $copyfight_excerpt = get_option( 'copyfight_excerpt');171 $copyfight_excerpt = get_option( 'copyfight_excerpt' ); 172 172 if ( strlen( $copyfight_excerpt ) == 0 ) { 173 update_option( 'copyfight_excerpt', 'true');174 $copyfight_excerpt = get_option( 'copyfight_excerpt');175 } 176 ?> 177 <option <?php if ( $copyfight_excerpt == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight'); ?></option>';178 <option <?php if ( $copyfight_excerpt == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight'); ?></option>';179 </select> 180 <a id="copyfight_excerpt_info_link" target="_blank" title="<?php _e( 'Use excerpt', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-excerpt/">181 <div class="dashicons dashicons-info"></div> 182 </a> 183 </td> 184 </tr> 185 <tr valign="top"> 186 <th scope="row"><label for="copyfight_fouc"><?php _e( 'FOUC Protection', 'copyfight'); ?><br/><?php _e('(Flash Of Unstyled Content)', 'copyfight'); ?></label></th>173 update_option( 'copyfight_excerpt', 'true' ); 174 $copyfight_excerpt = get_option( 'copyfight_excerpt' ); 175 } 176 ?> 177 <option <?php if ( $copyfight_excerpt == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 178 <option <?php if ( $copyfight_excerpt == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 179 </select> 180 <a id="copyfight_excerpt_info_link" target="_blank" title="<?php _e( 'Use excerpt', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-excerpt/"> 181 <div class="dashicons dashicons-info"></div> 182 </a> 183 </td> 184 </tr> 185 <tr valign="top"> 186 <th scope="row"><label for="copyfight_fouc"><?php _e( 'FOUC Protection', 'copyfight' ); ?><br/><?php _e( '(Flash Of Unstyled Content)', 'copyfight' ); ?></label></th> 187 187 <td style="white-space: nowrap"> 188 188 <select id="copyfight_fouc" name="copyfight_fouc"> 189 189 <?php 190 $copyfight_fouc = get_option( 'copyfight_fouc');190 $copyfight_fouc = get_option( 'copyfight_fouc' ); 191 191 if ( strlen( $copyfight_fouc ) == 0 ) { 192 update_option( 'copyfight_fouc', 'true');193 $copyfight_fouc = get_option( 'copyfight_fouc');194 } 195 ?> 196 <option <?php if ( $copyfight_fouc == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight'); ?></option>';197 <option <?php if ( $copyfight_fouc == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight'); ?></option>';192 update_option( 'copyfight_fouc', 'true' ); 193 $copyfight_fouc = get_option( 'copyfight_fouc' ); 194 } 195 ?> 196 <option <?php if ( $copyfight_fouc == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 197 <option <?php if ( $copyfight_fouc == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 198 198 </select> 199 199 <a id="copyfight_fouc_info_link" target="_blank" title="FOUC" href="<?php echo COPYFIGHT_HOME; ?>support/flash-of-unstyled-content-fouc/"> … … 203 203 </tr> 204 204 <tr valign="top"> 205 <th scope="row"><label for="copyfight_select"><?php _e( 'Text selection', 'copyfight'); ?></label></th>205 <th scope="row"><label for="copyfight_select"><?php _e( 'Text selection', 'copyfight' ); ?></label></th> 206 206 <td style="white-space: nowrap"> 207 207 <select id="copyfight_select" name="copyfight_select"> 208 208 <?php 209 $copyfight_select = get_option( 'copyfight_select');209 $copyfight_select = get_option( 'copyfight_select' ); 210 210 if ( strlen( $copyfight_select ) == 0 ) { 211 update_option( 'copyfight_select', 'true');212 $copyfight_select = get_option( 'copyfight_select');213 } 214 ?> 215 <option <?php if ( $copyfight_select == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight'); ?></option>';216 <option <?php if ( $copyfight_select == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight'); ?></option>';217 </select> 218 <label for="copyfight_select_length"><?php _e( 'Length', 'copyfight'); ?></label>211 update_option( 'copyfight_select', 'true' ); 212 $copyfight_select = get_option( 'copyfight_select' ); 213 } 214 ?> 215 <option <?php if ( $copyfight_select == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 216 <option <?php if ( $copyfight_select == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 217 </select> 218 <label for="copyfight_select_length"><?php _e( 'Length', 'copyfight' ); ?></label> 219 219 <select id="copyfight_select_length" name="copyfight_select_length"> 220 220 <?php 221 $copyfight_select_length = get_option( 'copyfight_select_length');221 $copyfight_select_length = get_option( 'copyfight_select_length' ); 222 222 if ( strlen( $copyfight_select_length ) == 0 ) { 223 update_option( 'copyfight_select_length', '10');224 $copyfight_select_length = get_option( 'copyfight_select_length');223 update_option( 'copyfight_select_length', '10' ); 224 $copyfight_select_length = get_option( 'copyfight_select_length' ); 225 225 } 226 226 ?> 227 227 <option <?php if ( $copyfight_select_length == '10') { echo 'selected '; } ?>value="10">10</option>'; 228 <option <?php if ( $copyfight_select_length == '20') { echo 'selected '; } ?>value="20">20</option>'; 229 <option <?php if ( $copyfight_select_length == '30') { echo 'selected '; } ?>value="30">30</option>'; 230 <option <?php if ( $copyfight_select_length == '40') { echo 'selected '; } ?>value="40">40</option>'; 228 <option <?php if ( $copyfight_select_length == '25') { echo 'selected '; } ?>value="25">25</option>'; 231 229 <option <?php if ( $copyfight_select_length == '50') { echo 'selected '; } ?>value="50">50</option>'; 232 <option <?php if ( $copyfight_select_length == '60') { echo 'selected '; } ?>value="60">60</option>';233 <option <?php if ( $copyfight_select_length == '70') { echo 'selected '; } ?>value="70">70</option>';234 <option <?php if ( $copyfight_select_length == '80') { echo 'selected '; } ?>value="80">80</option>';235 <option <?php if ( $copyfight_select_length == '90') { echo 'selected '; } ?>value="90">90</option>';236 230 <option <?php if ( $copyfight_select_length == '100') { echo 'selected '; } ?>value="100">100</option>'; 237 </select> 238 <a id="copyfight_select_info_link" target="_blank" title="<?php _e('Text selection', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-text-selection/"> 239 <div class="dashicons dashicons-info"></div> 240 </a> 241 </td> 242 </tr> 243 <tr valign="top"> 244 <th scope="row"><label for="copyfight_sev"><?php _e('Search Engine Visibility', 'copyfight'); ?></label></th> 231 <option <?php if ( $copyfight_select_length == '250') { echo 'selected '; } ?>value="250">250</option>'; 232 <option <?php if ( $copyfight_select_length == '500') { echo 'selected '; } ?>value="500">500</option>'; 233 <option <?php if ( $copyfight_select_length == '1000') { echo 'selected '; } ?>value="1000">1000</option>'; 234 </select> 235 <a id="copyfight_select_info_link" target="_blank" title="<?php _e( 'Text selection', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-text-selection/"> 236 <div class="dashicons dashicons-info"></div> 237 </a> 238 </td> 239 </tr> 240 <tr valign="top"> 241 <th scope="row"><label for="copyfight_sev"><?php _e( 'Search Engine Visibility', 'copyfight' ); ?></label></th> 245 242 <td style="white-space: nowrap"> 246 243 <select id="copyfight_sev" name="copyfight_sev"> 247 244 <?php 248 $copyfight_sev = get_option( 'copyfight_sev');245 $copyfight_sev = get_option( 'copyfight_sev' ); 249 246 if ( strlen( $copyfight_sev ) == 0 ) { 250 update_option( 'copyfight_sev', 'true');251 $copyfight_sev = get_option( 'copyfight_sev');252 } 253 ?> 254 <option <?php if ( $copyfight_sev == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight'); ?></option>';255 <option <?php if ( $copyfight_sev == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight'); ?></option>';256 </select> 257 <a id="copyfight_sev_info_link" target="_blank" title="<?php _e( 'Search Engine Visibility', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-search-engine-visibility/">258 <div class="dashicons dashicons-info"></div> 259 </a> 260 </td> 261 </tr> 262 <tr valign="top"> 263 <th scope="row"><label for="copyfight_ sev"><?php _e('Right click', 'copyfight'); ?></label></th>247 update_option( 'copyfight_sev', 'true' ); 248 $copyfight_sev = get_option( 'copyfight_sev' ); 249 } 250 ?> 251 <option <?php if ( $copyfight_sev == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 252 <option <?php if ( $copyfight_sev == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 253 </select> 254 <a id="copyfight_sev_info_link" target="_blank" title="<?php _e( 'Search Engine Visibility', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-search-engine-visibility/"> 255 <div class="dashicons dashicons-info"></div> 256 </a> 257 </td> 258 </tr> 259 <tr valign="top"> 260 <th scope="row"><label for="copyfight_right_click"><?php _e( 'Right click', 'copyfight' ); ?></label></th> 264 261 <td style="white-space: nowrap"> 265 262 <select id="copyfight_right_click" name="copyfight_right_click"> 266 263 <?php 267 $copyfight_right_click = get_option( 'copyfight_right_click');264 $copyfight_right_click = get_option( 'copyfight_right_click' ); 268 265 if ( strlen( $copyfight_right_click ) == 0 ) { 269 update_option('copyfight_right_click', 'true'); 270 $copyfight_right_click = get_option('copyfight_right_click'); 271 } 272 ?> 273 <option <?php if ( $copyfight_right_click == 'false') { echo 'selected '; } ?>value="false"><?php _e('Disabled', 'copyfight'); ?></option>'; 274 <option <?php if ( $copyfight_right_click == 'true') { echo 'selected '; } ?>value="true"><?php _e('Enabled', 'copyfight'); ?></option>'; 275 </select> 276 <a id="copyfight_right_click_info_link" target="_blank" title="<?php _e('Right click', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-right-click/"> 277 <div class="dashicons dashicons-info"></div> 278 </a> 279 </td> 280 </tr> 281 <tr valign="top"> 282 <th scope="row"><label for="copyfight_copyright"><?php _e('Copyright notice', 'copyfight'); ?></label></th> 266 update_option( 'copyfight_right_click', 'true' ); 267 $copyfight_right_click = get_option( 'copyfight_right_click' ); 268 } 269 ?> 270 <option <?php if ( $copyfight_right_click == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 271 <option <?php if ( $copyfight_right_click == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 272 </select> 273 <a id="copyfight_right_click_info_link" target="_blank" title="<?php _e( 'Right click', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-right-click/"> 274 <div class="dashicons dashicons-info"></div> 275 </a> 276 </td> 277 </tr> 278 <tr valign="top"> 279 <th scope="row"><label for="copyfight_print"><?php _e( 'Print', 'copyfight' ); ?></label></th> 280 <td style="white-space: nowrap"> 281 <select id="copyfight_print" name="copyfight_print"> 282 <?php 283 $copyfight_print = get_option( 'copyfight_print' ); 284 if ( strlen( $copyfight_print ) == 0 ) { 285 update_option( 'copyfight_print', 'false' ); 286 $copyfight_print = get_option( 'copyfight_print' ); 287 } 288 ?> 289 <option <?php if ( $copyfight_print == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 290 <option <?php if ( $copyfight_print == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 291 </select> 292 <a id="copyfight_print_info_link" target="_blank" title="<?php _e( 'Print', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-print/"> 293 <div class="dashicons dashicons-info"></div> 294 </a> 295 </td> 296 </tr> 297 <tr valign="top"> 298 <th scope="row"><label for="copyfight_printscreen"><?php _e( 'Printscreen', 'copyfight' ); ?></label></th> 299 <td style="white-space: nowrap"> 300 <select id="copyfight_printscreen" name="copyfight_printscreen"> 301 <?php 302 $copyfight_printscreen = get_option( 'copyfight_printscreen' ); 303 if ( strlen( $copyfight_printscreen ) == 0 ) { 304 update_option( 'copyfight_printscreen', 'false' ); 305 $copyfight_printscreen = get_option( 'copyfight_printscreen' ); 306 } 307 ?> 308 <option <?php if ( $copyfight_printscreen == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 309 <option <?php if ( $copyfight_printscreen == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 310 </select> 311 <a id="copyfight_printscreen_info_link" target="_blank" title="<?php _e( 'Printscreen', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-printscreen/"> 312 <div class="dashicons dashicons-info"></div> 313 </a> 314 </td> 315 </tr> 316 <tr valign="top"> 317 <th scope="row"><label for="copyfight_copyright"><?php _e( 'Copyright notice', 'copyfight' ); ?></label></th> 283 318 <td style="white-space: nowrap"> 284 319 <?php 285 $copyfight_copyright = get_option( 'copyfight_copyright');320 $copyfight_copyright = get_option( 'copyfight_copyright' ); 286 321 if ( $copyfight_copyright === false ) { 287 322 $copyfight_copyright = 'Copyright © ' . date('Y') . ' ' . get_bloginfo( 'name' ) . '.'; 288 update_option( 'copyfight_copyright', $copyfight_copyright);323 update_option( 'copyfight_copyright', $copyfight_copyright); 289 324 } 290 325 ?> 291 326 <input id="copyfight_copyright" name="copyfight_copyright" type="text" size="15" value="<?php echo $copyfight_copyright; ?>" class="regular-text code"> 292 <a id="copyfight_copyright_info_link" target="_blank" title="<?php _e( 'Copyright notice', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-copyright-notice/">327 <a id="copyfight_copyright_info_link" target="_blank" title="<?php _e( 'Copyright notice', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-copyright-notice/"> 293 328 <div class="dashicons dashicons-info"></div> 294 329 </a> … … 301 336 302 337 <fieldset class="fieldset"> 303 <legend><?php _e( 'Other settings', 'copyfight'); ?></legend>338 <legend><?php _e( 'Other settings', 'copyfight' ); ?></legend> 304 339 <table class="form-table"> 305 340 <tr valign="top"> 306 <th scope="row">< label for="copyfight_copyright"><?php _e('Widget', 'copyfight'); ?></label></th>307 <td style="white-space: nowrap"> 308 <p class="widget"><a target="_blank" href="<?php echo get_admin_url() . 'widgets.php'; ?>" title="<?php _e( 'Widget settings', 'copyfight'); ?>"><?php _e('Click here', 'copyfight'); ?></a> <?php _e('to add and edit the Copyfight widget settings.', 'copyfight'); ?></p>309 </td> 310 </tr> 311 <tr valign="top"> 312 <th scope="row"><label for="copyfight_debugging"><?php _e( 'Debugging', 'copyfight'); ?></label></th>341 <th scope="row"><?php _e( 'Widget', 'copyfight' ); ?></th> 342 <td style="white-space: nowrap"> 343 <p class="widget"><a target="_blank" href="<?php echo get_admin_url() . 'widgets.php'; ?>" title="<?php _e( 'Widget settings', 'copyfight' ); ?>"><?php _e( 'Click here', 'copyfight' ); ?></a> <?php _e( 'to add and edit the Copyfight widget settings.', 'copyfight' ); ?></p> 344 </td> 345 </tr> 346 <tr valign="top"> 347 <th scope="row"><label for="copyfight_debugging"><?php _e( 'Debugging', 'copyfight' ); ?></label></th> 313 348 <td style="white-space: nowrap"> 314 349 <select id="copyfight_debugging" name="copyfight_debugging"> 315 350 <?php 316 $copyfight_debugging = get_option( 'copyfight_debugging');351 $copyfight_debugging = get_option( 'copyfight_debugging' ); 317 352 if ( strlen( $copyfight_debugging ) == 0 ) { 318 update_option('copyfight_debugging', 'true'); 319 $copyfight_debugging = get_option('copyfight_debugging'); 320 } 321 ?> 322 <option <?php if ( $copyfight_debugging == 'false') { echo 'selected '; } ?>value="false"><?php _e('Disabled', 'copyfight'); ?></option>'; 323 <option <?php if ( $copyfight_debugging == 'true') { echo 'selected '; } ?>value="true"><?php _e('Enabled', 'copyfight'); ?></option>'; 324 </select> 325 <a id="copyfight_debugging_info_link" target="_blank" title="<?php _e('Debugging', 'copyfight'); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-debugging/"> 326 <div class="dashicons dashicons-info"></div> 327 </a> 353 update_option( 'copyfight_debugging', 'true' ); 354 $copyfight_debugging = get_option( 'copyfight_debugging' ); 355 } 356 ?> 357 <option <?php if ( $copyfight_debugging == 'false') { echo 'selected '; } ?>value="false"><?php _e( 'Disabled', 'copyfight' ); ?></option>'; 358 <option <?php if ( $copyfight_debugging == 'true') { echo 'selected '; } ?>value="true"><?php _e( 'Enabled', 'copyfight' ); ?></option>'; 359 </select> 360 <a id="copyfight_debugging_info_link" target="_blank" title="<?php _e( 'Debugging', 'copyfight' ); ?>" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-debugging/"> 361 <div class="dashicons dashicons-info"></div> 362 </a> 363 <?php 364 global $wpdb; 365 $sql = 'SELECT * FROM ' . $wpdb->prefix . 'options WHERE 1 AND option_name LIKE "%s" AND option_name != \'copyfight_settings\''; 366 $query = $wpdb->prepare( $sql, 'copyfight_%' ); 367 $copyfight_settings = $wpdb->get_results( $query ); 368 update_option( 'copyfight_settings', $copyfight_settings ); 369 if ( $copyfight_debugging == 'false' ) { 370 if ( file_exists( COPYFIGHT_DEBUG_LOG ) && !unlink( COPYFIGHT_DEBUG_LOG ) ) { 371 echo 'Error deleting ' . COPYFIGHT_DEBUG_FILE; 372 } 373 } else { ?> 374 <a href="<?php echo COPYFIGHT_PLUGIN_URL . COPYFIGHT_DEBUG_FILE; ?>" target="_blank"><?php echo COPYFIGHT_DEBUG_FILE; ?></a> 375 <?php } ?> 328 376 </td> 329 377 </tr> -
copyfight/trunk/views/notice.php
r1362714 r1436760 7 7 </div> 8 8 </div> 9 <div class="aa_description"><?php _e( '<strong>Almost done</strong> - activate Copyfight and protect your content', 'copyfight');?></div>9 <div class="aa_description"><?php _e( '<strong>Almost done</strong> - activate Copyfight and protect your content', 'copyfight' );?></div> 10 10 </div> 11 11 </form> -
copyfight/trunk/widgets.php
r1417916 r1436760 12 12 'Copyfight_Widget', 13 13 'Copyfight', 14 array( 'description' => __( 'Widget for Copyfight.', 'copyfight' ) ,)14 array( 'description' => __( 'Widget for Copyfight.', 'copyfight' ) ) 15 15 ); 16 16 } … … 21 21 echo '<p>'; 22 22 echo '<a href="' . COPYFIGHT_HOME . '" target="_blank">'; 23 echo '<img src="' . COPYFIGHT_PLUGIN_URL . '_inc/img/copyfight-logo-' . $instance['logo'] . '.svg" alt="' . __('Protected by Copyfight', 'copyfight') . '">';23 echo '<img class="copyfight_widget" src="' . COPYFIGHT_PLUGIN_URL . '_inc/img/copyfight-logo-' . $instance['logo'] . '.svg" alt="' . __('Protected by Copyfight', 'copyfight') . '">'; 24 24 echo '</a>'; 25 25 echo '</p>'; … … 39 39 40 40 if ( $instance ) { 41 $instance = wp_parse_args( (array) $instance, array( 'title' => __( 'Protected by Copyfight', 'copyfight') ) );41 $instance = wp_parse_args( (array) $instance, array( 'title' => __( 'Protected by Copyfight', 'copyfight' ) ) ); 42 42 $title = esc_attr( $instance['title'] ); 43 43 $logo = esc_attr( $instance['logo'] ); … … 45 45 46 46 <p> 47 <label for="<?php echo $this->get_field_id( 'title'); ?>"><?php _e('Title:', 'copyfight'); ?></label>48 <input class="widefat" id="<?php echo $this->get_field_id( 'link'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />47 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'copyfight' ); ?></label> 48 <input class="widefat" id="<?php echo $this->get_field_id( 'link' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /> 49 49 </p> 50 50 51 51 <p> 52 <label for="<?php echo $this->get_field_id( 'logo'); ?>"><?php _e('Logo:', 'copyfight'); ?></label>53 <select class="widefat" id="<?php echo $this->get_field_id( 'logo'); ?>" name="<?php echo $this->get_field_name('logo'); ?>">54 <option <?php if ( $logo == 'color' ) { echo 'selected '; } ?>value="color"><?php _e('Color', 'copyfight'); ?></option>';55 <option <?php if ( $logo == 'dark' ) { echo 'selected '; } ?>value="dark"><?php _e('Dark', 'copyfight'); ?></option>';56 <option <?php if ( $logo == 'light' ) { echo 'selected '; } ?>value="light"><?php _e('Light', 'copyfight'); ?></option>';52 <label for="<?php echo $this->get_field_id( 'logo' ); ?>"><?php _e( 'Logo:', 'copyfight' ); ?></label> 53 <select class="widefat" id="<?php echo $this->get_field_id( 'logo' ); ?>" name="<?php echo $this->get_field_name( 'logo' ); ?>"> 54 <option <?php if ( $logo == 'color' ) { echo 'selected '; } ?>value="color"><?php _e( 'Color', 'copyfight' ); ?></option>'; 55 <option <?php if ( $logo == 'dark' ) { echo 'selected '; } ?>value="dark"><?php _e( 'Dark', 'copyfight' ); ?></option>'; 56 <option <?php if ( $logo == 'light' ) { echo 'selected '; } ?>value="light"><?php _e( 'Light', 'copyfight' ); ?></option>'; 57 57 </select> 58 58 </p>
Note: See TracChangeset
for help on using the changeset viewer.