Plugin Directory

Changeset 1436760


Ignore:
Timestamp:
06/14/2016 10:31:47 PM (10 years ago)
Author:
getcopyfight
Message:

version 1.5.1

Location:
copyfight
Files:
65 added
19 edited

Legend:

Unmodified
Added
Removed
  • copyfight/trunk/_inc/css/copyfight-admin.css

    r1435845 r1436760  
    33    width: 175px;
    44    height: 40px;
    5     background: url(img/copyfight-logo-color.svg) no-repeat;
    6     background-size: 100%;
     5    background-repeat: no-repeat !important;
    76}
    87
     
    348347    content: "\f122";
    349348}
    350 
    351 
    352 
  • copyfight/trunk/_inc/css/copyfight.css

    r1435861 r1436760  
    1919}
    2020
    21 #copyfight_content .copyfight_blurred_lines {
     21#copyfight_content .copyfight_blurred_lines,
     22.copyfight_blurred_lines mark.copyfight {
    2223    color: transparent;
    2324    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    2425}
    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 
    3926.copyfight_excerpt {
    4027    padding-bottom: 1em;
     
    4330
    4431#copyfight_entry_links {
    45     margin-top: 1em;
     32    margin: 2em 0;
    4633    display: block;
     34    clear: both;
    4735}
    4836
     
    5139    float: left;
    5240    margin-right: 1em;
     41    border: 0;
     42    box-shadow: none;
    5343}
    5444
     
    6252    border: none;
    6353    box-shadow: none;
    64     cursor: pointer !important;
     54    cursor: pointer;
    6555    display: none;
    6656}
     
    8373    width: 50%;
    8474    height: 50%;
    85     background-image: url("img/certificate-background.png");
     75    background-image: url('img/certificate-background.png');
    8676    background-repeat: no-repeat;
    8777}
     
    10797    transform: scale(-1, -1);
    10898}
     99
     100#copyright_print_notice {
     101    visibility: hidden;
     102}
     103
     104img.copyfight_widget {
     105    border: 0 !important;
     106    box-shadow: none !important;
     107}
  • copyfight/trunk/_inc/css/copyfight.php

    r1435845 r1436760  
    11<?php
     2
     3header('Content-type: text/css; charset: UTF-8');
    24
    35$url = 'http' . (isset( $_SERVER['HTTPS'] ) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
     
    1113$subdir = substr( $copyfight_hash, 0, 1 );
    1214
    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' );
    1616$css = str_replace( '{copyfight_hash}', $url . $subdir . '/' . $copyfight_hash, $css );
    1717$css = str_replace( '{copyfight_typeface}', $url . urldecode( $copyfight_typeface ), $css );
  • copyfight/trunk/_inc/js/copyfight.js

    r1436024 r1436760  
    44    $('#copyfight_content').show();
    55
    6     //copyfight notice
    7     $('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 
    376    //safari specific
    387    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;
    409    if ((is_chrome) && (is_safari)) { is_safari = false; }
    4110    if (is_safari) {
     
    12190        $('body').css('cursor', 'default');
    12291        e.preventDefault();
    123         $('mark.copyfight').contents().unwrap();
     92        $('mark').contents().unwrap();
    12493        toggleEntryLinks();
    12594        return false;
     
    132101        });
    133102        $('#copyfight_content').on('mouseup', function() {
     103
     104            //remove non copyfight marks
     105            if (!$('mark.copyfight').length) {
     106                $('mark').contents().unwrap();
     107            }
    134108
    135109            var selection = window.getSelection().getRangeAt(0);
     
    153127            mark.setAttribute('class', 'copyfight');
    154128            mark.appendChild(content);
    155             /*
    156             mark.onclick = function () {
    157                 $(this).contents().unwrap();
    158                 toggleEntryLinks();
    159             }
    160             */
    161129            selection.insertNode(mark);
    162130
     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
    163139            if (!isElementInViewport($('#copyfight_entry_links'))) {
    164140                $('html, body').animate({
     
    173149    }
    174150
     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
    175174    //add entry links
    176175    function toggleEntryLinks() {
    177176        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();
    179178        } else {
    180179            $('#copyfight_entry_links a').hide();
  • copyfight/trunk/class.copyfight-admin.php

    r1435861 r1436760  
    4040        self::$initiated = true;
    4141
    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 );
    4344        wp_enqueue_style( 'copyfight-admin');
    4445
    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 );
    4648        wp_localize_script( 'copyfight-admin', 'copyfight', array(
    4749            'ajax_url' => admin_url( 'admin-ajax.php' ),
     
    5759        add_action( 'wp_dashboard_setup', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_dashboard_widget'), 10, 2 );
    5860        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' ) );
    6063
    6164        add_action( 'manage_posts_custom_column', array( COPYFIGHT_CLASS_ADMIN, 'display_posts_copyfight'), 10, 2 );
     
    8992        register_setting( 'copyfight_options_group', 'copyfight_debugging' );
    9093        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' );
    9197    }
    9298
     
    98104
    99105    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' ) );
    101108        add_action( "load-$hook", array( COPYFIGHT_CLASS_ADMIN, 'admin_help' ) );
    102109    }
     
    400407        }
    401408
     409        $copyfight_debugging = get_option( 'copyfight_debugging' );
     410
    402411        $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' );
    403412        if ( $response->status->http == '0' || $response->status->mysql == '0' ) {
     
    452461            }
    453462
    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            }
    456474            update_post_meta( $post_id, '_copyfight_status', 'disabled' );
    457475            set_transient( 'copyfight_transient', $post_id, 60 );
     
    606624            //copyfight version
    607625            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 ) );
    608630        }
    609631        return $response;
  • copyfight/trunk/class.copyfight.php

    r1436021 r1436760  
    4242        add_shortcode( 'copyfight', array( COPYFIGHT_CLASS, 'copyfight_shortcode' ) );
    4343
    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 );
    4546        wp_enqueue_style( 'copyfight');
    4647    }
     
    5960
    6061        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                }
    7377            }
    7478        }
     
    123127            $copyfight_cdn = get_option( 'copyfight_cdn' );
    124128            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 );
    126131            } 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 );
    128134            }
    129135            wp_enqueue_style( 'copyfight-cdn' );
     
    149155            $tpl .= '<!--googleon: anchor-->';
    150156
     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
    151170            //copyright notice
    152171            $copyfight_copyright = get_option( 'copyfight_copyright' );
     
    157176            //copyfight entry links
    158177            $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>';
    160180            $tpl .= '   <a class="copyfight_unselect_link">Unselect</a>';
    161181            $tpl .= '   <a class="copyfight_copy_link">Copy</a>';
    162182            $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            }
    163186            $tpl .= '</span>';
    164187
    165             //copyfight notice
    166             $tpl .= '<input id="copyfight_notice" type="hidden" value="' . __( 'Copyfight prevented copying this content.', 'copyfight' ) . '">';
     188            //copyfight copy
    167189            $tpl .= '<input id="copyfight_copy" type="hidden" value="">';
    168190
     
    174196            $content = str_replace('{content}', $content, $tpl);
    175197
    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 );
    177200
    178201            //wp_localize_script
     
    180203            $wp_localize_script['ajax_url'] = admin_url( 'admin-ajax.php' );
    181204
     205            //right click
    182206            $copyfight_right_click = get_option( 'copyfight_right_click' );
    183207            if ( !empty( $copyfight_right_click ) && $copyfight_right_click == 'false' ) {
    184208                $wp_localize_script['copyfight_right_click'] = 'false';
    185209            }
     210
     211            //text selection
    186212            $copyfight_select = get_option( 'copyfight_select' );
    187213            $copyfight_mapping = get_post_meta( $post->ID, '_copyfight_mapping', true );
     
    189215                $wp_localize_script['copyfight_select'] = 'true';
    190216            }
     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
    191224            wp_localize_script( 'copyfight', 'copyfight', $wp_localize_script );
    192225            wp_localize_script( 'copyfight', 'post', array( 'id' => $post->ID ) );
     
    241274        if ( !empty( $_POST['selections'] ) && !empty( $_POST['postid'] ) ) {
    242275
    243             //$post = get_post( $_POST['postid'] );
    244276            $copyfight_mapping = (array) get_post_meta( $_POST['postid'], '_copyfight_mapping', true );
    245277
     
    268300            //text selection length
    269301            $copyfight_select_length = intval( get_option('copyfight_select_length') );
     302            $length = strlen( $response );
    270303            $response = substr( $response, 0, $copyfight_select_length );
    271304            $response = trim( $response );
    272305
     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
    273315            die( $response );
    274316        }
  • copyfight/trunk/copyfight.php

    r1435845 r1436760  
    44Plugin URI:         https://getcopyfight.com/
    55Description:        Copyright protection
    6 Version:            1.5.0
     6Version:            1.5.1
    77Author:             Copyfight
    88Author URI:         https://getcopyfight.com/
     
    3535add_action( 'plugins_loaded', 'copyfight_textdomain' );
    3636
    37 define( 'COPYFIGHT_VERSION', '1.5.0' );
     37define( 'COPYFIGHT_VERSION', '1.5.1' );
    3838define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' );
    3939define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    4646define( 'API_HOST', 'https://getcopyfight.com/' );
    4747define( 'COPYFIGHT_CDN', 'https://getcopyfight.com/wp-content/plugins/copyfight-api/cdn/' );
    48 define( 'COPYFIGHT_DEBUG_LOG', COPYFIGHT_PLUGIN_DIR . 'debug.log' );
     48define( 'COPYFIGHT_DEBUG_FILE', 'debug.log' );
     49define( 'COPYFIGHT_DEBUG_LOG', COPYFIGHT_PLUGIN_DIR . COPYFIGHT_DEBUG_FILE );
    4950
    5051register_activation_hook( __FILE__, array( COPYFIGHT_CLASS_ADMIN, 'plugin_activation' ) );
  • copyfight/trunk/languages/copyfight-es_ES.po

    r1435845 r1436760  
    22msgstr ""
    33"Project-Id-Version: Copyfight\n"
    4 "POT-Creation-Date: 2016-06-13 15:23+0200\n"
    5 "PO-Revision-Date: 2016-06-13 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"
    66"Last-Translator: \n"
    77"Language-Team: Copyfight <[email protected]>\n"
     
    1717"X-Poedit-SearchPathExcluded-0: languages\n"
    1818
    19 #: class.copyfight-admin.php:48
     19#: class.copyfight-admin.php:50
    2020msgid "Error: empty API Key field"
    2121msgstr "Error: API vacío campo Clave"
    2222
    23 #: class.copyfight-admin.php:94 class.copyfight-admin.php:191
    24 #: class.copyfight-admin.php:544 views/config.php:45
     23#: class.copyfight-admin.php:100 class.copyfight-admin.php:198
     24#: class.copyfight-admin.php:562 views/config.php:45
    2525msgid "Settings"
    2626msgstr "Ajustes"
    2727
    28 #: class.copyfight-admin.php:131
     28#: class.copyfight-admin.php:138
    2929msgid "A Copyfight error has occurred, your article is not protected."
    3030msgstr ""
    3131"Se ha producido un error de Derecho de Autor, el artículo no está protegido."
    3232
    33 #: class.copyfight-admin.php:184
     33#: class.copyfight-admin.php:191
    3434msgid "Post"
    3535msgid_plural "Posts"
     
    3737msgstr[1] "entradas"
    3838
    39 #: class.copyfight-admin.php:185
     39#: class.copyfight-admin.php:192
    4040msgid "Page"
    4141msgid_plural "Pages"
     
    4343msgstr[1] "páginas"
    4444
    45 #: class.copyfight-admin.php:186
     45#: class.copyfight-admin.php:193
    4646msgid "Character"
    4747msgid_plural "Characters"
     
    4949msgstr[1] "caracteres"
    5050
    51 #: class.copyfight-admin.php:187
     51#: class.copyfight-admin.php:194
    5252msgid "Word"
    5353msgid_plural "Words"
     
    5555msgstr[1] "palabras"
    5656
    57 #: class.copyfight-admin.php:192 views/config.php:306
     57#: class.copyfight-admin.php:199 views/config.php:341
    5858msgid "Widget"
    5959msgstr ""
    6060
    61 #: class.copyfight-admin.php:287 class.copyfight-admin.php:305
    62 #: class.copyfight-admin.php:321 views/config.php:63 views/config.php:82
     61#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     62#: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82
    6363#: 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
    6667msgid "Enabled"
    6768msgstr "Enciende"
    6869
    69 #: class.copyfight-admin.php:287 class.copyfight-admin.php:305
    70 #: class.copyfight-admin.php:321 views/config.php:62 views/config.php:81
     70#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     71#: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81
    7172#: 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
    7476msgid "Disabled"
    7577msgstr "Apagar"
    7678
    77 #: class.copyfight-admin.php:289 class.copyfight-admin.php:561
     79#: class.copyfight-admin.php:296 class.copyfight-admin.php:579
    7880msgid "Status"
    7981msgstr "Estado"
    8082
    81 #: class.copyfight-admin.php:307
     83#: class.copyfight-admin.php:314
    8284msgid "Tags"
    8385msgstr "Etiquetas"
    8486
    85 #: class.copyfight-admin.php:323
     87#: class.copyfight-admin.php:330
    8688msgid "Blur"
    8789msgstr "Difuminar"
    8890
    89 #: class.copyfight-admin.php:514 class.copyfight-admin.php:647
    90 #: class.copyfight-admin.php:664
     91#: class.copyfight-admin.php:532 class.copyfight-admin.php:669
     92#: class.copyfight-admin.php:686
    9193msgid "A Copyfight error has occurred..."
    9294msgstr "Se ha producido un error de Copyfight..."
    9395
    94 #: class.copyfight-admin.php:515 class.copyfight-admin.php:648
    95 #: class.copyfight-admin.php:665
     96#: class.copyfight-admin.php:533 class.copyfight-admin.php:670
     97#: class.copyfight-admin.php:687
    9698msgid "Click here to try again..."
    9799msgstr "Haga clic aquí para volver a intentarlo..."
    98100
    99 #: class.copyfight-admin.php:533
     101#: class.copyfight-admin.php:551
    100102msgid "Overview"
    101103msgstr "Visión de conjunto"
    102104
    103 #: class.copyfight-admin.php:535
     105#: class.copyfight-admin.php:553
    104106msgid "Copyfight Overview"
    105107msgstr "Descripción general de Overview"
    106108
    107 #: class.copyfight-admin.php:536
     109#: class.copyfight-admin.php:554
    108110msgid ""
    109111"Copyfight protects your content, so you can focus on more important things."
     
    112114"importantes."
    113115
    114 #: class.copyfight-admin.php:537
     116#: class.copyfight-admin.php:555
    115117msgid ""
    116118"On this page, you are able to enter/remove an API key, view account "
     
    120122"ver la información de la cuenta y ver las estadísticas."
    121123
    122 #: class.copyfight-admin.php:546
     124#: class.copyfight-admin.php:564
    123125msgid "Copyfight Settings"
    124126msgstr "Ajustes Copyfight"
    125127
    126 #: class.copyfight-admin.php:547 views/config.php:22
     128#: class.copyfight-admin.php:565 views/config.php:22
    127129msgid "API Key"
    128130msgstr "API Clave"
    129131
    130 #: class.copyfight-admin.php:547
     132#: class.copyfight-admin.php:565
    131133msgid "Enter/remove an API key."
    132134msgstr "Introducir/eliminar una clave de API."
    133135
    134 #: class.copyfight-admin.php:548 views/config.php:49
     136#: class.copyfight-admin.php:566 views/config.php:49
    135137msgid "Default settings"
    136138msgstr "Configuración por defecto"
    137139
    138 #: class.copyfight-admin.php:548
     140#: class.copyfight-admin.php:566
    139141msgid "Edit your default settings."
    140142msgstr "Editar la configuración por defecto."
    141143
    142 #: class.copyfight-admin.php:549 views/config.php:145
     144#: class.copyfight-admin.php:567 views/config.php:145
    143145msgid "General settings"
    144146msgstr "Configuración general"
    145147
    146 #: class.copyfight-admin.php:549
     148#: class.copyfight-admin.php:567
    147149msgid "Edit your general settings."
    148150msgstr "Editar la configuración general."
    149151
    150 #: class.copyfight-admin.php:550 views/config.php:303
     152#: class.copyfight-admin.php:568 views/config.php:338
    151153msgid "Other settings"
    152154msgstr "Otros ajustes"
    153155
    154 #: class.copyfight-admin.php:550
     156#: class.copyfight-admin.php:568
    155157msgid "Edit your other settings."
    156158msgstr "Editar otros ajustes."
    157159
    158 #: class.copyfight-admin.php:557
     160#: class.copyfight-admin.php:575
    159161msgid "Account"
    160162msgstr "Cuenta"
    161163
    162 #: class.copyfight-admin.php:559
     164#: class.copyfight-admin.php:577
    163165msgid "Copyfight Account"
    164166msgstr "Cuenta de Copyfight"
    165167
    166 #: class.copyfight-admin.php:560
     168#: class.copyfight-admin.php:578
    167169msgid "Subscription Type"
    168170msgstr "Tipo de suscripción"
    169171
    170 #: class.copyfight-admin.php:560
     172#: class.copyfight-admin.php:578
    171173msgid "The Copyfight subscription plan"
    172174msgstr "El plan de suscripción Copyfight"
    173175
    174 #: class.copyfight-admin.php:561
     176#: class.copyfight-admin.php:579
    175177msgid "The subscription status - active, cancelled or suspended"
    176178msgstr "El estado de suscripción - activo, cancelado o suspendido"
    177179
    178 #: class.copyfight-admin.php:566
     180#: class.copyfight-admin.php:584
    179181msgid "For more information:"
    180182msgstr "Para más información:"
    181183
    182 #: class.copyfight-admin.php:567
     184#: class.copyfight-admin.php:585
    183185msgid "Copyfight FAQ"
    184186msgstr "Copyfight FAQ"
    185187
    186 #: class.copyfight-admin.php:568
     188#: class.copyfight-admin.php:586
    187189msgid "Copyfight Support"
    188190msgstr "Soporte Copyfight"
    189191
    190 #: class.copyfight.php:166
     192#: class.copyfight.php:177 widgets.php:23 widgets.php:41
     193msgid "Protected by Copyfight"
     194msgstr "Protegido por Copyfight"
     195
     196#: class.copyfight.php:188
    191197msgid "Copyfight prevented copying this content."
    192198msgstr "Copyfight impide la copia este contenido."
    193199
    194 #: class.copyfight.php:211 class.copyfight.php:220
     200#: class.copyfight.php:245 class.copyfight.php:254
    195201msgid ""
    196202"There is no content because this is a <a target=\"_blank\" href=\"https://"
     
    284290msgstr ""
    285291
    286 #: views/config.php:205 views/config.php:238
     292#: views/config.php:205 views/config.php:235
    287293msgid "Text selection"
    288294msgstr "La selección de texto"
     
    292298msgstr "Longitud"
    293299
    294 #: views/config.php:244 views/config.php:257
     300#: views/config.php:241 views/config.php:254
    295301msgid "Search Engine Visibility"
    296302msgstr "Visibilidad del motor de búsqueda"
    297303
    298 #: views/config.php:263 views/config.php:276
     304#: views/config.php:260 views/config.php:273
    299305msgid "Right click"
    300306msgstr "Botón derecho del mouse"
    301307
    302 #: views/config.php:282 views/config.php:292
     308#: views/config.php:279 views/config.php:292
     309msgid "Print"
     310msgstr "Imprimir"
     311
     312#: views/config.php:298 views/config.php:311
     313msgid "Printscreen"
     314msgstr ""
     315
     316#: views/config.php:317 views/config.php:327
    303317msgid "Copyright notice"
    304318msgstr "Aviso de copyright"
    305319
    306 #: views/config.php:308
     320#: views/config.php:343
    307321msgid "Widget settings"
    308322msgstr "Configuración del widget"
    309323
    310 #: views/config.php:308
     324#: views/config.php:343
    311325msgid "Click here"
    312326msgstr "Haga clic aquí"
    313327
    314 #: views/config.php:308
     328#: views/config.php:343
    315329msgid "to add and edit the Copyfight widget settings."
    316330msgstr "añadir y editar la configuración del widget Copyfight."
    317331
    318 #: views/config.php:312 views/config.php:325
     332#: views/config.php:347 views/config.php:360
    319333msgid "Debugging"
    320334msgstr "Depuración"
     
    342356msgid "Widget for Copyfight."
    343357msgstr "Widget para Copyfight."
    344 
    345 #: widgets.php:23 widgets.php:41
    346 msgid "Protected by Copyfight"
    347 msgstr "Protegido por Copyfight"
    348358
    349359#: widgets.php:47
  • copyfight/trunk/languages/copyfight-nl_NL.po

    r1435845 r1436760  
    44msgstr ""
    55"Project-Id-Version: Copyfight\n"
    6 "POT-Creation-Date: 2016-06-13 15:22+0200\n"
    7 "PO-Revision-Date: 2016-06-13 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"
    88"Last-Translator: \n"
    99"Language-Team: Copyfight <[email protected]>\n"
     
    1919"X-Poedit-SearchPathExcluded-0: languages\n"
    2020
    21 #: class.copyfight-admin.php:48
     21#: class.copyfight-admin.php:50
    2222msgid "Error: empty API Key field"
    2323msgstr "Fout: leeg API sleutel veld"
    2424
    25 #: class.copyfight-admin.php:94 class.copyfight-admin.php:191
    26 #: class.copyfight-admin.php:544 views/config.php:45
     25#: class.copyfight-admin.php:100 class.copyfight-admin.php:198
     26#: class.copyfight-admin.php:562 views/config.php:45
    2727msgid "Settings"
    2828msgstr "Configuratie"
    2929
    30 #: class.copyfight-admin.php:131
     30#: class.copyfight-admin.php:138
    3131msgid "A Copyfight error has occurred, your article is not protected."
    3232msgstr "Een Copyright fout is opgetreden, uw artikel is niet beschermd."
    3333
    34 #: class.copyfight-admin.php:184
     34#: class.copyfight-admin.php:191
    3535msgid "Post"
    3636msgid_plural "Posts"
     
    3838msgstr[1] "berichten"
    3939
    40 #: class.copyfight-admin.php:185
     40#: class.copyfight-admin.php:192
    4141msgid "Page"
    4242msgid_plural "Pages"
     
    4444msgstr[1] "pagina's"
    4545
    46 #: class.copyfight-admin.php:186
     46#: class.copyfight-admin.php:193
    4747msgid "Character"
    4848msgid_plural "Characters"
     
    5050msgstr[1] "karakters"
    5151
    52 #: class.copyfight-admin.php:187
     52#: class.copyfight-admin.php:194
    5353msgid "Word"
    5454msgid_plural "Words"
     
    5656msgstr[1] "woorden"
    5757
    58 #: class.copyfight-admin.php:192 views/config.php:306
     58#: class.copyfight-admin.php:199 views/config.php:341
    5959msgid "Widget"
    6060msgstr ""
    6161
    62 #: class.copyfight-admin.php:287 class.copyfight-admin.php:305
    63 #: class.copyfight-admin.php:321 views/config.php:63 views/config.php:82
     62#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     63#: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82
    6464#: 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
    6768msgid "Enabled"
    6869msgstr "Aan"
    6970
    70 #: class.copyfight-admin.php:287 class.copyfight-admin.php:305
    71 #: class.copyfight-admin.php:321 views/config.php:62 views/config.php:81
     71#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     72#: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81
    7273#: 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
    7577msgid "Disabled"
    7678msgstr "Uit"
    7779
    78 #: class.copyfight-admin.php:289 class.copyfight-admin.php:561
     80#: class.copyfight-admin.php:296 class.copyfight-admin.php:579
    7981msgid "Status"
    8082msgstr "Status"
    8183
    82 #: class.copyfight-admin.php:307
     84#: class.copyfight-admin.php:314
    8385msgid "Tags"
    8486msgstr "Tags"
    8587
    86 #: class.copyfight-admin.php:323
     88#: class.copyfight-admin.php:330
    8789msgid "Blur"
    8890msgstr "Vervagen"
    8991
    90 #: class.copyfight-admin.php:514 class.copyfight-admin.php:647
    91 #: class.copyfight-admin.php:664
     92#: class.copyfight-admin.php:532 class.copyfight-admin.php:669
     93#: class.copyfight-admin.php:686
    9294msgid "A Copyfight error has occurred..."
    9395msgstr "Er is een Copyfight fout opgetreden..."
    9496
    95 #: class.copyfight-admin.php:515 class.copyfight-admin.php:648
    96 #: class.copyfight-admin.php:665
     97#: class.copyfight-admin.php:533 class.copyfight-admin.php:670
     98#: class.copyfight-admin.php:687
    9799msgid "Click here to try again..."
    98100msgstr "Klik hier om opnieuw te proberen..."
    99101
    100 #: class.copyfight-admin.php:533
     102#: class.copyfight-admin.php:551
    101103msgid "Overview"
    102104msgstr "Overzicht"
    103105
    104 #: class.copyfight-admin.php:535
     106#: class.copyfight-admin.php:553
    105107msgid "Copyfight Overview"
    106108msgstr "Copyfight Overzicht"
    107109
    108 #: class.copyfight-admin.php:536
     110#: class.copyfight-admin.php:554
    109111msgid ""
    110112"Copyfight protects your content, so you can focus on more important things."
     
    113115"belangrijke zaken."
    114116
    115 #: class.copyfight-admin.php:537
     117#: class.copyfight-admin.php:555
    116118msgid ""
    117119"On this page, you are able to enter/remove an API key, view account "
     
    121123"bekijken."
    122124
    123 #: class.copyfight-admin.php:546
     125#: class.copyfight-admin.php:564
    124126msgid "Copyfight Settings"
    125127msgstr "Copyfight Configuratie"
    126128
    127 #: class.copyfight-admin.php:547 views/config.php:22
     129#: class.copyfight-admin.php:565 views/config.php:22
    128130msgid "API Key"
    129131msgstr "API key"
    130132
    131 #: class.copyfight-admin.php:547
     133#: class.copyfight-admin.php:565
    132134msgid "Enter/remove an API key."
    133135msgstr "API-sleutel invoeren of verwijderen."
    134136
    135 #: class.copyfight-admin.php:548 views/config.php:49
     137#: class.copyfight-admin.php:566 views/config.php:49
    136138msgid "Default settings"
    137139msgstr "Standaard instellingen"
    138140
    139 #: class.copyfight-admin.php:548
     141#: class.copyfight-admin.php:566
    140142msgid "Edit your default settings."
    141143msgstr "Bewerk uw standaardinstellingen."
    142144
    143 #: class.copyfight-admin.php:549 views/config.php:145
     145#: class.copyfight-admin.php:567 views/config.php:145
    144146msgid "General settings"
    145147msgstr "Algemene instellingen"
    146148
    147 #: class.copyfight-admin.php:549
     149#: class.copyfight-admin.php:567
    148150msgid "Edit your general settings."
    149151msgstr "Bewerk uw algemene instellingen."
    150152
    151 #: class.copyfight-admin.php:550 views/config.php:303
     153#: class.copyfight-admin.php:568 views/config.php:338
    152154msgid "Other settings"
    153155msgstr "Overige instellingen"
    154156
    155 #: class.copyfight-admin.php:550
     157#: class.copyfight-admin.php:568
    156158msgid "Edit your other settings."
    157159msgstr "Bewerk uw andere instellingen."
    158160
    159 #: class.copyfight-admin.php:557
     161#: class.copyfight-admin.php:575
    160162msgid "Account"
    161163msgstr "Account"
    162164
    163 #: class.copyfight-admin.php:559
     165#: class.copyfight-admin.php:577
    164166msgid "Copyfight Account"
    165167msgstr ""
    166168
    167 #: class.copyfight-admin.php:560
     169#: class.copyfight-admin.php:578
    168170msgid "Subscription Type"
    169171msgstr "Abonnementstype"
    170172
    171 #: class.copyfight-admin.php:560
     173#: class.copyfight-admin.php:578
    172174msgid "The Copyfight subscription plan"
    173175msgstr "Het Copyfight abonnementen overzicht"
    174176
    175 #: class.copyfight-admin.php:561
     177#: class.copyfight-admin.php:579
    176178msgid "The subscription status - active, cancelled or suspended"
    177179msgstr "Abonnementstatus - actief, geannuleerd of geschorst"
    178180
    179 #: class.copyfight-admin.php:566
     181#: class.copyfight-admin.php:584
    180182msgid "For more information:"
    181183msgstr "Voor meer info:"
    182184
    183 #: class.copyfight-admin.php:567
     185#: class.copyfight-admin.php:585
    184186msgid "Copyfight FAQ"
    185187msgstr "Copyfight Veelgestelde Vragen"
    186188
    187 #: class.copyfight-admin.php:568
     189#: class.copyfight-admin.php:586
    188190msgid "Copyfight Support"
    189191msgstr "Copyfight ondersteuning"
    190192
    191 #: class.copyfight.php:166
     193#: class.copyfight.php:177 widgets.php:23 widgets.php:41
     194msgid "Protected by Copyfight"
     195msgstr "Beveiligd door Copyfight"
     196
     197#: class.copyfight.php:188
    192198msgid "Copyfight prevented copying this content."
    193199msgstr "Copyfight voorkwam het kopiëren van deze content."
    194200
    195 #: class.copyfight.php:211 class.copyfight.php:220
     201#: class.copyfight.php:245 class.copyfight.php:254
    196202msgid ""
    197203"There is no content because this is a <a target=\"_blank\" href=\"https://"
    198204"getcopyfight.com/\">Copyfight</a> protected article."
    199205msgstr ""
    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."
    202208
    203209#: views/config.php:4
     
    284290msgstr ""
    285291
    286 #: views/config.php:205 views/config.php:238
     292#: views/config.php:205 views/config.php:235
    287293msgid "Text selection"
    288294msgstr "Text selectie"
     
    292298msgstr "Lengte"
    293299
    294 #: views/config.php:244 views/config.php:257
     300#: views/config.php:241 views/config.php:254
    295301msgid "Search Engine Visibility"
    296302msgstr "Zoekmachine zichtbaarheid"
    297303
    298 #: views/config.php:263 views/config.php:276
     304#: views/config.php:260 views/config.php:273
    299305msgid "Right click"
    300306msgstr "Rechtermuisknop"
    301307
    302 #: views/config.php:282 views/config.php:292
     308#: views/config.php:279 views/config.php:292
     309msgid "Print"
     310msgstr "Afdrukken"
     311
     312#: views/config.php:298 views/config.php:311
     313msgid "Printscreen"
     314msgstr ""
     315
     316#: views/config.php:317 views/config.php:327
    303317msgid "Copyright notice"
    304318msgstr "Copyright melding"
    305319
    306 #: views/config.php:308
     320#: views/config.php:343
    307321msgid "Widget settings"
    308322msgstr "Widget instellingen"
    309323
    310 #: views/config.php:308
     324#: views/config.php:343
    311325msgid "Click here"
    312326msgstr "Klik hier"
    313327
    314 #: views/config.php:308
     328#: views/config.php:343
    315329msgid "to add and edit the Copyfight widget settings."
    316330msgstr "voor het toevoegen en wijzigen van de Copyfight widget instellingen."
    317331
    318 #: views/config.php:312 views/config.php:325
     332#: views/config.php:347 views/config.php:360
    319333msgid "Debugging"
    320334msgstr "Debuggen"
     
    341355msgid "Widget for Copyfight."
    342356msgstr "Widget voor Copyfight."
    343 
    344 #: widgets.php:23 widgets.php:41
    345 msgid "Protected by Copyfight"
    346 msgstr "Beveiligd door Copyfight"
    347357
    348358#: widgets.php:47
  • copyfight/trunk/languages/copyfight-zh_CN.po

    r1435845 r1436760  
    44msgstr ""
    55"Project-Id-Version: Copyfight\n"
    6 "POT-Creation-Date: 2016-06-08 20:30+0200\n"
    7 "PO-Revision-Date: 2016-06-10 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"
    88"Last-Translator: \n"
    99"Language-Team: Copyfight <[email protected]>\n"
     
    1919"X-Poedit-SearchPathExcluded-0: languages\n"
    2020
    21 #: class.copyfight-admin.php:78
     21#: class.copyfight-admin.php:50
    2222msgid "Error: empty API Key field"
    2323msgstr "錯誤:沒有填寫API密碼"
    2424
    25 #: class.copyfight-admin.php:123 class.copyfight-admin.php:220
    26 #: class.copyfight-admin.php:568 views/config.php:45
     25#: class.copyfight-admin.php:100 class.copyfight-admin.php:198
     26#: class.copyfight-admin.php:562 views/config.php:45
    2727msgid "Settings"
    2828msgstr "設置"
    2929
    30 #: class.copyfight-admin.php:160
     30#: class.copyfight-admin.php:138
    3131msgid "A Copyfight error has occurred, your article is not protected."
    3232msgstr "發現Copyfight錯誤,你的文章是不受保護的。"
    3333
    34 #: class.copyfight-admin.php:213
     34#: class.copyfight-admin.php:191
    3535msgid "Post"
    3636msgid_plural "Posts"
     
    3838msgstr[1] "信息"
    3939
    40 #: class.copyfight-admin.php:214
     40#: class.copyfight-admin.php:192
    4141msgid "Page"
    4242msgid_plural "Pages"
     
    4444msgstr[1] "頁"
    4545
    46 #: class.copyfight-admin.php:215
     46#: class.copyfight-admin.php:193
    4747msgid "Character"
    4848msgid_plural "Characters"
     
    5050msgstr[1] "字符"
    5151
    52 #: class.copyfight-admin.php:216
     52#: class.copyfight-admin.php:194
    5353msgid "Word"
    5454msgid_plural "Words"
     
    5656msgstr[1] "字"
    5757
    58 #: class.copyfight-admin.php:221 views/config.php:286
     58#: class.copyfight-admin.php:199 views/config.php:341
    5959msgid "Widget"
    6060msgstr "小工具"
    6161
    62 #: class.copyfight-admin.php:316 class.copyfight-admin.php:334
    63 #: class.copyfight-admin.php:350 views/config.php:63 views/config.php:82
     62#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     63#: class.copyfight-admin.php:328 views/config.php:63 views/config.php:82
    6464#: 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
    6768msgid "Enabled"
    6869msgstr "啟用"
    6970
    70 #: class.copyfight-admin.php:316 class.copyfight-admin.php:334
    71 #: class.copyfight-admin.php:350 views/config.php:62 views/config.php:81
     71#: class.copyfight-admin.php:294 class.copyfight-admin.php:312
     72#: class.copyfight-admin.php:328 views/config.php:62 views/config.php:81
    7273#: 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
    7577msgid "Disabled"
    7678msgstr "已禁用"
    7779
    78 #: class.copyfight-admin.php:318 class.copyfight-admin.php:585
     80#: class.copyfight-admin.php:296 class.copyfight-admin.php:579
    7981msgid "Status"
    8082msgstr "狀態"
    8183
    82 #: class.copyfight-admin.php:336
     84#: class.copyfight-admin.php:314
    8385msgid "Tags"
    8486msgstr "標籤"
    8587
    86 #: class.copyfight-admin.php:352
     88#: class.copyfight-admin.php:330
    8789msgid "Blur"
    8890msgstr "模"
    8991
    90 #: class.copyfight-admin.php:538 class.copyfight-admin.php:671
    91 #: class.copyfight-admin.php:688
     92#: class.copyfight-admin.php:532 class.copyfight-admin.php:669
     93#: class.copyfight-admin.php:686
    9294msgid "A Copyfight error has occurred..."
    9395msgstr "發現Copyfight錯誤…"
    9496
    95 #: class.copyfight-admin.php:539 class.copyfight-admin.php:672
    96 #: class.copyfight-admin.php:689
     97#: class.copyfight-admin.php:533 class.copyfight-admin.php:670
     98#: class.copyfight-admin.php:687
    9799msgid "Click here to try again..."
    98100msgstr "點擊這裡再試一次…"
    99101
    100 #: class.copyfight-admin.php:557
     102#: class.copyfight-admin.php:551
    101103msgid "Overview"
    102104msgstr "概覽"
    103105
    104 #: class.copyfight-admin.php:559
     106#: class.copyfight-admin.php:553
    105107msgid "Copyfight Overview"
    106108msgstr "Copyfight概覽"
    107109
    108 #: class.copyfight-admin.php:560
     110#: class.copyfight-admin.php:554
    109111msgid ""
    110112"Copyfight protects your content, so you can focus on more important things."
    111113msgstr "Copyfight保護您的內容,這樣你就可以專注於更重要的事情。"
    112114
    113 #: class.copyfight-admin.php:561
     115#: class.copyfight-admin.php:555
    114116msgid ""
    115117"On this page, you are able to enter/remove an API key, view account "
     
    117119msgstr "在這個頁面,你可以輸入/刪除API密碼,查看帳戶信息和統計數據。"
    118120
    119 #: class.copyfight-admin.php:570
     121#: class.copyfight-admin.php:564
    120122msgid "Copyfight Settings"
    121123msgstr "Copyfight設置"
    122124
    123 #: class.copyfight-admin.php:571 views/config.php:22
     125#: class.copyfight-admin.php:565 views/config.php:22
    124126msgid "API Key"
    125127msgstr "API密碼"
    126128
    127 #: class.copyfight-admin.php:571
     129#: class.copyfight-admin.php:565
    128130msgid "Enter/remove an API key."
    129131msgstr "輸入/刪除API密碼"
    130132
    131 #: class.copyfight-admin.php:572 views/config.php:49
     133#: class.copyfight-admin.php:566 views/config.php:49
    132134msgid "Default settings"
    133135msgstr "默認設置"
    134136
    135 #: class.copyfight-admin.php:572
     137#: class.copyfight-admin.php:566
    136138msgid "Edit your default settings."
    137139msgstr "編輯您的默認設置。"
    138140
    139 #: class.copyfight-admin.php:573 views/config.php:145
     141#: class.copyfight-admin.php:567 views/config.php:145
    140142msgid "General settings"
    141143msgstr "常規設置"
    142144
    143 #: class.copyfight-admin.php:573
     145#: class.copyfight-admin.php:567
    144146msgid "Edit your general settings."
    145147msgstr "編輯您的常規設置"
    146148
    147 #: class.copyfight-admin.php:574 views/config.php:283
     149#: class.copyfight-admin.php:568 views/config.php:338
    148150msgid "Other settings"
    149151msgstr "其他設置"
    150152
    151 #: class.copyfight-admin.php:574
     153#: class.copyfight-admin.php:568
    152154msgid "Edit your other settings."
    153155msgstr "編輯您的其他設置"
    154156
    155 #: class.copyfight-admin.php:581
     157#: class.copyfight-admin.php:575
    156158msgid "Account"
    157159msgstr "帳戶"
    158160
    159 #: class.copyfight-admin.php:583
     161#: class.copyfight-admin.php:577
    160162msgid "Copyfight Account"
    161163msgstr "Copyfight帳戶"
    162164
    163 #: class.copyfight-admin.php:584
     165#: class.copyfight-admin.php:578
    164166msgid "Subscription Type"
    165167msgstr "訂閱類型"
    166168
    167 #: class.copyfight-admin.php:584
     169#: class.copyfight-admin.php:578
    168170msgid "The Copyfight subscription plan"
    169171msgstr "Copyfight訂閱計劃"
    170172
    171 #: class.copyfight-admin.php:585
     173#: class.copyfight-admin.php:579
    172174msgid "The subscription status - active, cancelled or suspended"
    173175msgstr "訂閱狀態 - 啟動,取消或暫停"
    174176
    175 #: class.copyfight-admin.php:590
     177#: class.copyfight-admin.php:584
    176178msgid "For more information:"
    177179msgstr "欲了解更多信息:"
    178180
    179 #: class.copyfight-admin.php:591
     181#: class.copyfight-admin.php:585
    180182msgid "Copyfight FAQ"
    181183msgstr "Copyfight常見問題解答"
    182184
    183 #: class.copyfight-admin.php:592
     185#: class.copyfight-admin.php:586
    184186msgid "Copyfight Support"
    185187msgstr "Copyfight支持"
    186188
    187 #: class.copyfight.php:174
     189#: class.copyfight.php:177 widgets.php:23 widgets.php:41
     190msgid "Protected by Copyfight"
     191msgstr "Copyfight保護"
     192
     193#: class.copyfight.php:188
    188194msgid "Copyfight prevented copying this content."
    189195msgstr "Copyfight防止複製此內容。"
    190196
    191 #: class.copyfight.php:199 class.copyfight.php:208
     197#: class.copyfight.php:245 class.copyfight.php:254
    192198msgid ""
    193199"There is no content because this is a <a target=\"_blank\" href=\"https://"
     
    278284msgstr "(無樣式內容的閃現)"
    279285
    280 #: views/config.php:205 views/config.php:218
     286#: views/config.php:205 views/config.php:235
    281287msgid "Text selection"
    282288msgstr "選擇文本"
    283289
    284 #: views/config.php:224 views/config.php:237
     290#: views/config.php:218
     291msgid "Length"
     292msgstr "截"
     293
     294#: views/config.php:241 views/config.php:254
    285295msgid "Search Engine Visibility"
    286296msgstr "搜索引擎可見性"
    287297
    288 #: views/config.php:243 views/config.php:256
     298#: views/config.php:260 views/config.php:273
    289299msgid "Right click"
    290300msgstr "右鍵點擊"
    291301
    292 #: views/config.php:262 views/config.php:272
     302#: views/config.php:279 views/config.php:292
     303msgid "Print"
     304msgstr "刊"
     305
     306#: views/config.php:298 views/config.php:311
     307msgid "Printscreen"
     308msgstr ""
     309
     310#: views/config.php:317 views/config.php:327
    293311msgid "Copyright notice"
    294312msgstr "Copyright 聲明"
    295313
    296 #: views/config.php:288
     314#: views/config.php:343
    297315msgid "Widget settings"
    298316msgstr "小工具設定"
    299317
    300 #: views/config.php:288
     318#: views/config.php:343
    301319msgid "Click here"
    302320msgstr "點擊這裡"
    303321
    304 #: views/config.php:288
     322#: views/config.php:343
    305323msgid "to add and edit the Copyfight widget settings."
    306324msgstr "添加和編輯的Copyright小工具設置。"
    307325
    308 #: views/config.php:292 views/config.php:305
     326#: views/config.php:347 views/config.php:360
    309327msgid "Debugging"
    310328msgstr "調試"
     
    330348msgid "Widget for Copyfight."
    331349msgstr "Copyright小工具"
    332 
    333 #: widgets.php:23 widgets.php:41
    334 msgid "Protected by Copyfight"
    335 msgstr "Copyfight保護"
    336350
    337351#: widgets.php:47
  • copyfight/trunk/readme.txt

    r1435851 r1436760  
    77Requires at least:  3.3.0
    88Tested up to:       4.5.2
    9 Stable tag:         1.5.0
     9Stable tag:         1.5.1
    1010License:            GPLv2 or later
    1111License URI:        http://www.gnu.org/licenses/gpl-2.0.html
    1212
    13 Protecting your website against theft is now considered mandatory for website owners.
     13Protecting your website against copyright infringement and plagiarism.
    1414
    1515== Description ==
    1616This 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.
     17widget, shortcode, post and page options to keep your content protected against
     18infringement and plagiarism. It also protects you against spam bots and data
     19breaches.
    1920
    2021Copyfight distinguish itself not relying on JavaScript. That’s not such a
     
    3839tags the post or page with the most important keywords.
    3940
     41Check the Copyfight website for more information: https://getcopyfight.com/
     42
    4043== Installation ==
    4144Install Copyfight using the built-in plugin installer:
     45
    42461. 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
     482. 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
    45503. 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
     524. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the Plugin.
     53
    48545. Click Install Now to install the WordPress Plugin.
     55
    49566. The resulting installation screen will list the installation as successful or note any problems during the install.
     57
    50587. If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
    5159
    5260After 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 after
     61a valid API Key and select a default font. Updated and newly created posts and pages will be protected by default after
    5462successful activation.
    5563
     
    7078
    7179== Upgrade Notice ==
    72 Check the Copyfight website for the latest upgrade notices: https://getcopyfight.com/Upgrades/
     80Check the Copyfight website for the latest upgrade notices: https://getcopyfight.com/upgrades/
  • copyfight/trunk/uninstall.php

    r1435845 r1436760  
    2121delete_option( 'copyfight_debugging' );
    2222delete_option( 'copyfight_right_click' );
     23delete_option( 'copyfight_print' );
     24delete_option( 'copyfight_printscreen' );
     25delete_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 ) {
    22    $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' );
    33    if ( $response->status->http == '0' || $response->status->mysql == '0' ) {
     
    1313<div class="cf_settings">
    1414
    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>
    1717
    1818    <form action="options.php" method="POST" id="copyfight-config">
    19         <?php settings_fields('copyfight_options_group'); ?>
     19        <?php settings_fields('copyfight_options_group' ); ?>
    2020        <div class="activate-highlight activate-option">
    2121            <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 ) { ?>
    2424                <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/>
    2626                <?php echo $api_status; ?>
    2727                <?php } ?>
    2828            </div>
    2929            <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>
    3434                <p>
    3535                    <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>
    3737                </p>
    3838                <?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' ); ?>">
    4141                <?php } ?>
    4242            </div>
    4343        </div>
    4444
    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>
    4747
    4848        <fieldset class="fieldset">
    49             <legend><?php _e('Default settings', 'copyfight'); ?></legend>
     49            <legend><?php _e( 'Default settings', 'copyfight' ); ?></legend>
    5050            <table class="form-table">
    5151                <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>
    5353                    <td style="white-space: nowrap">
    5454                        <select id="copyfight_status" name="copyfight_status">
    5555                            <?php
    56                             $copyfight_status = get_option('copyfight_status');
     56                            $copyfight_status = get_option( 'copyfight_status' );
    5757                            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>
    7272                    <td style="white-space: nowrap">
    7373                        <select id="copyfight_tags" name="copyfight_tags">
    7474                            <?php
    75                             $copyfight_tags = get_option('copyfight_tags');
     75                            $copyfight_tags = get_option( 'copyfight_tags' );
    7676                            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>
    9191                    <td style="white-space: nowrap">
    9292                        <select id="copyfight_blur" name="copyfight_blur">
    9393                            <?php
    94                             $copyfight_blur = get_option('copyfight_blur');
     94                            $copyfight_blur = get_option( 'copyfight_blur' );
    9595                            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>
    110110                    <td style="white-space: nowrap">
    111111                        <select id="copyfight_typeface" name="copyfight_typeface">
     
    114114                            $fontlist = file_get_contents( COPYFIGHT_FONTLIST );
    115115                            $fonts = unserialize( $fontlist );
    116                             $copyfight_typeface = get_option('copyfight_typeface');
     116                            $copyfight_typeface = get_option( 'copyfight_typeface' );
    117117                            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' );
    120120                            }
    121121                            asort($fonts);
     
    131131                        <?php add_thickbox(); ?>
    132132                        <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">
    134134                            <div class="dashicons dashicons-info copyfight_typeface_info"></div>
    135135                        </a>
     
    140140        </fieldset>
    141141
    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>
    143143
    144144        <fieldset class="fieldset">
    145             <legend><?php _e('General settings', 'copyfight'); ?></legend>
     145            <legend><?php _e( 'General settings', 'copyfight' ); ?></legend>
    146146            <table class="form-table">
    147147                <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>
    149149                    <td style="white-space: nowrap">
    150150                        <select id="copyfight_cdn" name="copyfight_cdn">
    151151                            <?php
    152                             $copyfight_cdn = get_option('copyfight_cdn');
     152                            $copyfight_cdn = get_option( 'copyfight_cdn' );
    153153                            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>
    168168                    <td style="white-space: nowrap">
    169169                        <select id="copyfight_excerpt" name="copyfight_excerpt">
    170170                            <?php
    171                             $copyfight_excerpt = get_option('copyfight_excerpt');
     171                            $copyfight_excerpt = get_option( 'copyfight_excerpt' );
    172172                            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>
    187187                    <td style="white-space: nowrap">
    188188                        <select id="copyfight_fouc" name="copyfight_fouc">
    189189                            <?php
    190                             $copyfight_fouc = get_option('copyfight_fouc');
     190                            $copyfight_fouc = get_option( 'copyfight_fouc' );
    191191                            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>';
    198198                        </select>
    199199                        <a id="copyfight_fouc_info_link" target="_blank" title="FOUC" href="<?php echo COPYFIGHT_HOME; ?>support/flash-of-unstyled-content-fouc/">
     
    203203                </tr>
    204204                <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>
    206206                    <td style="white-space: nowrap">
    207207                        <select id="copyfight_select" name="copyfight_select">
    208208                            <?php
    209                             $copyfight_select = get_option('copyfight_select');
     209                            $copyfight_select = get_option( 'copyfight_select' );
    210210                            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>
    219219                        <select id="copyfight_select_length" name="copyfight_select_length">
    220220                            <?php
    221                             $copyfight_select_length = get_option('copyfight_select_length');
     221                            $copyfight_select_length = get_option( 'copyfight_select_length' );
    222222                            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' );
    225225                            }
    226226                            ?>
    227227                            <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>';
    231229                            <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>';
    236230                            <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>
    245242                    <td style="white-space: nowrap">
    246243                        <select id="copyfight_sev" name="copyfight_sev">
    247244                            <?php
    248                             $copyfight_sev = get_option('copyfight_sev');
     245                            $copyfight_sev = get_option( 'copyfight_sev' );
    249246                            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>
    264261                    <td style="white-space: nowrap">
    265262                        <select id="copyfight_right_click" name="copyfight_right_click">
    266263                            <?php
    267                             $copyfight_right_click = get_option('copyfight_right_click');
     264                            $copyfight_right_click = get_option( 'copyfight_right_click' );
    268265                            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>
    283318                    <td style="white-space: nowrap">
    284319                        <?php
    285                         $copyfight_copyright = get_option('copyfight_copyright');
     320                        $copyfight_copyright = get_option( 'copyfight_copyright' );
    286321                        if ( $copyfight_copyright === false ) {
    287322                            $copyfight_copyright = 'Copyright &copy; ' . date('Y') . ' ' . get_bloginfo( 'name' ) . '.';
    288                             update_option('copyfight_copyright', $copyfight_copyright);
     323                            update_option( 'copyfight_copyright', $copyfight_copyright);
    289324                        }
    290325                        ?>
    291326                        <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/">
    293328                            <div class="dashicons dashicons-info"></div>
    294329                        </a>
     
    301336
    302337        <fieldset class="fieldset">
    303             <legend><?php _e('Other settings', 'copyfight'); ?></legend>
     338            <legend><?php _e( 'Other settings', 'copyfight' ); ?></legend>
    304339            <table class="form-table">
    305340                <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>
    313348                    <td style="white-space: nowrap">
    314349                        <select id="copyfight_debugging" name="copyfight_debugging">
    315350                            <?php
    316                             $copyfight_debugging = get_option('copyfight_debugging');
     351                            $copyfight_debugging = get_option( 'copyfight_debugging' );
    317352                            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 } ?>
    328376                    </td>
    329377                </tr>
  • copyfight/trunk/views/notice.php

    r1362714 r1436760  
    77                </div>
    88            </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>
    1010        </div>
    1111    </form>
  • copyfight/trunk/widgets.php

    r1417916 r1436760  
    1212            'Copyfight_Widget',
    1313            'Copyfight',
    14             array( 'description' => __( 'Widget for Copyfight.', 'copyfight' ), )
     14            array( 'description' => __( 'Widget for Copyfight.', 'copyfight' ) )
    1515        );
    1616    }
     
    2121        echo '<p>';
    2222        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') . '">';
    2424        echo '</a>';
    2525        echo '</p>';
     
    3939
    4040        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' ) ) );
    4242            $title = esc_attr( $instance['title'] );
    4343            $logo = esc_attr( $instance['logo'] );
     
    4545
    4646        <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; ?>" />
    4949        </p>
    5050
    5151        <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>';
    5757            </select>
    5858        </p>
Note: See TracChangeset for help on using the changeset viewer.