Plugin Directory

Changeset 1428593


Ignore:
Timestamp:
06/01/2016 07:25:18 PM (10 years ago)
Author:
getcopyfight
Message:

version 1.4.6

Location:
copyfight
Files:
47 added
12 edited

Legend:

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

    r1423180 r1428593  
    284284    margin: 1em 0;
    285285}
     286
     287/* dashboard */
     288
     289#dashboard_copyfight li {
     290    width: 50%;
     291    float: left;
     292    margin-bottom: 10px;
     293}
     294
     295#dashboard_copyfight .main {
     296    padding: 0 12px 11px;
     297}
     298
     299#dashboard_copyfight .main p {
     300    margin: 0;
     301}
     302
     303#dashboard_copyfight .postbox .inside {
     304    margin-bottom: 0;
     305}
     306
     307#dashboard_copyfight .inside {
     308    padding: 0;
     309}
     310
     311#dashboard_copyfight ul {
     312    margin: 0;
     313    display: inline-block;
     314    width: 100%;
     315}
     316
     317#dashboard_copyfight li:before,
     318#dashboard_copyfight li span:before {
     319    color: #82878c;
     320    font: normal 20px/1 dashicons;
     321    speak: none;
     322    display: inline-block;
     323    padding: 0 10px 0 0;
     324    position: relative;
     325    -webkit-font-smoothing: antialiased;
     326    -moz-osx-font-smoothing: grayscale;
     327    text-decoration: none !important;
     328    vertical-align: top;
     329}
     330
     331#dashboard_copyfight .post-count:before,
     332#dashboard_copyfight .post-count span:before {
     333    content: "\f109";
     334}
     335
     336#dashboard_copyfight .page-count:before,
     337#dashboard_copyfight .page-count span:before {
     338    content: "\f105";
     339}
     340
     341#dashboard_copyfight .char-count:before,
     342#dashboard_copyfight .char-count span:before {
     343    content: "\f464";
     344}
     345
     346#dashboard_copyfight .word-count:before,
     347#dashboard_copyfight .word-count span:before {
     348    content: "\f122";
     349}
     350
     351
     352
  • copyfight/trunk/_inc/copyfight.css

    r1426805 r1428593  
    2626    -o-font-feature-settings: "kern" on, "liga" on, "calt" on !important;
    2727    text-rendering: optimizeLegibility !important;
     28    speak: none;
    2829}
    2930
     
    5051    font-weight: bold;
    5152}
     53
     54#copyfight_certificate {
     55    width: 100%;
     56    max-width: 792px;
     57    height: 612px;
     58    margin-bottom: 2em;
     59    -webkit-box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.25);
     60    -moz-box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.25);
     61    box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.25);
     62}
     63
     64#copyfight_certificate .background.one,
     65#copyfight_certificate .background.two,
     66#copyfight_certificate .background.three,
     67#copyfight_certificate .background.four {
     68    float: left;
     69    width: 50%;
     70    height: 50%;
     71    background-image: url("img/certificate-background.png");
     72    background-repeat: no-repeat;
     73}
     74
     75#copyfight_certificate .background.two {
     76    -moz-transform: scaleX(-1);
     77    -o-transform: scaleX(-1);
     78    -webkit-transform: scaleX(-1);
     79    transform: scaleX(-1);
     80}
     81
     82#copyfight_certificate .background.three {
     83    -moz-transform: scaleY(-1);
     84    -o-transform: scaleY(-1);
     85    -webkit-transform: scaleY(-1);
     86    transform: scaleY(-1);
     87}
     88
     89#copyfight_certificate .background.four {
     90    -moz-transform: scale(-1, -1);
     91    -o-transform: scale(-1, -1);
     92    -webkit-transform: scale(-1, -1);
     93    transform: scale(-1, -1);
     94}
  • copyfight/trunk/class.copyfight-admin.php

    r1426822 r1428593  
    2222    public static function plugin_activation() {
    2323
     24        //Copyfight demo post
     25        $author_id = get_current_user_id();
     26        $slug = 'copyfight';
     27        $title = 'Copyfight';
     28        $content = file_get_contents( COPYFIGHT_PLUGIN_DIR . 'copyright.html' );
     29        $content = str_replace('{year}', date('Y'), $content);
     30        $content = str_replace('{bloginfo}', get_bloginfo(), $content);
     31
     32        if ( null == get_page_by_title( $title ) ) {
     33            $post_id = wp_insert_post(
     34                array(
     35                    'comment_status'    => 'closed',
     36                    'ping_status'       => 'closed',
     37                    'post_author'       => $author_id,
     38                    'post_name'         => $slug,
     39                    'post_title'        => $title,
     40                    'post_content'      => $content,
     41                    'post_status'       => 'publish',
     42                    'post_type'         => 'post'
     43                )
     44            );
     45
     46            if ( $post_id ) {
     47                update_post_meta( $post_id, '_copyfight_status', 'enabled' );
     48                update_post_meta( $post_id, '_copyfight_tags', 'enabled' );
     49                update_post_meta( $post_id, '_copyfight_blur', 'enabled' );
     50                call_user_func( COPYFIGHT_CLASS_ADMIN . '::copyfight_save_post', $post_id );
     51            }
     52        }
    2453    }
    2554
     
    5584        add_action( 'admin_init', array( COPYFIGHT_CLASS_ADMIN, 'register_settings' ) );
    5685        add_filter( 'pre_update_option_copyfight_api_key', array( COPYFIGHT_CLASS_ADMIN, 'activate_copyfight' ), 10, 2 );
     86        add_action( 'wp_dashboard_setup', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_dashboard_widget' ) );
    5787        add_action( 'admin_menu', array( COPYFIGHT_CLASS_ADMIN, 'load_menu' ) );
    5888        add_filter( 'plugin_action_links_' . plugin_basename( plugin_dir_path( __FILE__ ) . 'copyfight.php'), array( COPYFIGHT_CLASS_ADMIN, 'admin_plugin_settings_link' ) );
     
    94124
    95125    public static function load_menu() {
    96         $hook = add_options_page( __('Copyfight', 'copyfight'), __('Copyfight', 'copyfight'), 'manage_options', 'copyfight', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_configuration_page' ) );
     126        $hook = add_options_page( 'Copyfight', 'Copyfight', 'manage_options', 'copyfight', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_configuration_page' ) );
    97127        add_action( "load-$hook", array( COPYFIGHT_CLASS_ADMIN, 'admin_help' ) );
    98128    }
     
    161191    }
    162192
     193    public function copyfight_dashboard_widget() {
     194
     195        wp_add_dashboard_widget(
     196            'dashboard_copyfight',
     197            'Copyfight',
     198            array( COPYFIGHT_CLASS_ADMIN, 'copyfight_dashboard_widget_content' )
     199        );
     200
     201    }
     202
     203    public static function copyfight_dashboard_widget_content() {
     204
     205        $stats = call_user_func( COPYFIGHT_CLASS_ADMIN . '::copyfight_statistics' );
     206
     207        $tpl  = '';
     208        $tpl .= '<div class="main">';
     209        $tpl .= '   <ul>';
     210        $tpl .= '       <li class="post-count">' . number_format_i18n( $stats['post'] ) . ' ' . _n( 'Post', 'Posts', $stats['post'], 'copyfight' ) . '</li>';
     211        $tpl .= '       <li class="page-count">' . number_format_i18n( $stats['page'] ) . ' ' . _n( 'Page', 'Pages', $stats['page'], 'copyfight' ) . '</li>';
     212        $tpl .= '       <li class="char-count">' . number_format_i18n( $stats['chars'] ) . ' ' . _n( 'Character', 'Characters', $stats['chars'], 'copyfight' ) . '</li>';
     213        $tpl .= '       <li class="word-count">' . number_format_i18n( $stats['words'] ) . ' ' . _n( 'Word', 'Words', $stats['words'], 'copyfight' ) . '</li>';
     214        $tpl .= '   </ul>';
     215        $tpl .= '   <p id="wp-version-message">';
     216        $tpl .= '       <span id="wp-version">Copyfight ' . COPYFIGHT_VERSION . '</span> | ';
     217        $tpl .= '       <span><a href="' . get_admin_url() . 'options-general.php?page=copyfight">' . __('Settings', 'copyfight') . '</a></span> | ';
     218        $tpl .= '       <span><a href="' . get_admin_url() . 'widgets.php">' . __('Widget', 'copyfight') . '</a></span>';
     219        $tpl .= '   </p>';
     220        $tpl .= '</div>';
     221
     222        echo $tpl;
     223    }
     224
     225    public static function copyfight_statistics() {
     226        global $wpdb;
     227        $stats = array(
     228            'post'  => 0,
     229            'page'  => 0,
     230            'chars' => 0,
     231            'words' => 0
     232        );
     233        $sql = 'SELECT * FROM ' . $wpdb->prefix . 'postmeta WHERE 1 AND meta_key = "%s" AND meta_value = "%s"';
     234        $query = $wpdb->prepare( $sql, '_copyfight_status', 'enabled' );
     235        $results = $wpdb->get_results( $query );
     236
     237        foreach ( $results as $result ) {
     238            $post = get_post( $result->post_id );
     239            $content = get_post_meta( $result->post_id, '_copyfight_content', true );
     240            if ( $post->post_status == 'publish' && strlen( $content ) > 0 ) {
     241                $stats[$post->post_type] += 1;
     242                $stats['chars'] += strlen( strip_tags( get_post_field( 'post_content', $result->post_id ) ) );
     243                $stats['words'] += str_word_count( strip_tags( get_post_field( 'post_content', $result->post_id ) ) );
     244            }
     245        }
     246
     247        return $stats;
     248    }
     249
    163250    public static function display_posts_copyfight( $column, $post_id ) {
    164         if ($column == 'copyfight') {
     251        if ( $column == 'copyfight' ) {
    165252            $status = get_post_meta( $post_id, '_copyfight_status', true );
    166253            if ( $status == 'enabled' ) {
    167                 echo '<input type="checkbox" disabled checked/>';
     254                echo '<input type="checkbox" disabled checked />';
    168255            } else {
    169256                echo '<input type="checkbox" disabled />';
     
    215302
    216303    public static function copyfight_add_meta_box() {
    217         add_meta_box( 'copyfight_post', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'post', 'side', 'high' );
    218         add_meta_box( 'copyfight_page', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'page', 'side', 'high' );
     304        add_meta_box( 'copyfight_post', __( 'Copyfight', 'copyfight' ), array( COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'post', 'side', 'high' );
     305        add_meta_box( 'copyfight_page', __( 'Copyfight', 'copyfight' ), array( COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'page', 'side', 'high' );
    219306    }
    220307
     
    223310
    224311        // Status
    225         $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_copyfight_enabled', $post->ID);
     312        $status = call_user_func( COPYFIGHT_CLASS_ADMIN . '::is_copyfight_enabled', $post->ID );
    226313        $options = array( 'enabled' => __( 'Enabled', 'copyfight' ), 'disabled' => __( 'Disabled', 'copyfight' ) );
    227314        echo '<p>';
     
    241328
    242329            // Tags
    243             $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_tags_enabled', $post->ID);
     330            $status = call_user_func( COPYFIGHT_CLASS_ADMIN . '::is_tags_enabled', $post->ID );
    244331            $options = array('enabled' => __('Enabled', 'copyfight'), 'disabled' => __('Disabled', 'copyfight'));
    245332            echo '<p>';
     
    257344
    258345            // Blur
    259             $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_blur_enabled', $post->ID);
     346            $status = call_user_func( COPYFIGHT_CLASS_ADMIN . '::is_blur_enabled', $post->ID );
    260347            $options = array('enabled' => __('Enabled', 'copyfight'), 'disabled' => __('Disabled', 'copyfight'));
    261348            echo '<p>';
     
    467554                    'title' => __('Overview', 'copyfight'),
    468555                    'content' =>
    469                         '<p><strong>' . esc_html__('Copyfight Configuration', 'copyfight') . '</strong></p>' .
     556                        '<p><strong>' . esc_html__('Copyfight Overview', 'copyfight') . '</strong></p>' .
    470557                        '<p>' . esc_html__('Copyfight protects your content, so you can focus on more important things.', 'copyfight') . '</p>' .
    471558                        '<p>' . esc_html__('On this page, you are able to enter/remove an API key, view account information and view stats.', 'copyfight') . '</p>',
     
    478565                    'title' => __('Settings', 'copyfight'),
    479566                    'content' =>
    480                         '<p><strong>' . esc_html__('Copyfight Configuration', 'copyfight') . '</strong></p>' .
    481                         '<p><strong>' . esc_html__('API Key', 'copyfight') . '</strong> - ' . esc_html__('Enter/remove an API key.', 'copyfight') . '</p>'
     567                        '<p><strong>' . esc_html__('Copyfight Settings', 'copyfight') . '</strong></p>' .
     568                        '<p><strong>' . esc_html__('API Key', 'copyfight') . '</strong> - ' . esc_html__('Enter/remove an API key.', 'copyfight') . '</p>' .
     569                        '<p><strong>' . esc_html__('Default settings', 'copyfight') . '</strong> - ' . esc_html__('Edit your default settings.', 'copyfight') . '</p>' .
     570                        '<p><strong>' . esc_html__('General settings', 'copyfight') . '</strong> - ' . esc_html__('Edit your general settings.', 'copyfight') . '</p>' .
     571                        '<p><strong>' . esc_html__('Other settings', 'copyfight') . '</strong> - ' . esc_html__('Edit your other settings.', 'copyfight') . '</p>',
    482572                )
    483573            );
     
    488578                    'title' => __('Account', 'copyfight'),
    489579                    'content' =>
    490                         '<p><strong>' . esc_html__('Copyfight Configuration', 'copyfight') . '</strong></p>' .
     580                        '<p><strong>' . esc_html__('Copyfight Account', 'copyfight') . '</strong></p>' .
    491581                        '<p><strong>' . esc_html__('Subscription Type', 'copyfight') . '</strong> - ' . esc_html__('The Copyfight subscription plan', 'copyfight') . '</p>' .
    492582                        '<p><strong>' . esc_html__('Status', 'copyfight') . '</strong> - ' . esc_html__('The subscription status - active, cancelled or suspended', 'copyfight') . '</p>',
     
    570660        //get_font_info
    571661        if ( !empty( $_POST['typeface'] ) ) {
    572             $typeface = explode( '/', $_POST['typeface'] )[0];
     662            $typeface = explode( '/', $_POST['typeface'] );
     663            $typeface = $typeface[0];
    573664            $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_font_info', $typeface );
    574665            $response = stripslashes( $response );
  • copyfight/trunk/class.copyfight.php

    r1426822 r1428593  
    6363        if ( strlen( $copyfight_content ) && $copyfight_status == 'enabled' && is_singular() ) {
    6464            echo '<meta name="generator" content="Copyfight" />' . "\n";
    65             $copyfight_sev = get_option('copyfight_sev');
     65            $copyfight_sev = get_option( 'copyfight_sev' );
    6666            if ( $copyfight_sev == 'false' ) {
    6767                echo '<meta name="robots" content="noindex,nofollow,noarchive" />' . "\n";
     
    9191
    9292            //content delivery network
    93             $copyfight_cdn = get_option('copyfight_cdn');
     93            $copyfight_cdn = get_option( 'copyfight_cdn' );
    9494            if ( empty( $copyfight_cdn ) || $copyfight_cdn == 'false' ) {
    9595                require_once( COPYFIGHT_PLUGIN_DIR . 'class.copyfight-admin.php' );
     
    120120            }
    121121
    122             $copyfight_cdn = get_option('copyfight_cdn');
     122            $copyfight_cdn = get_option( 'copyfight_cdn' );
    123123            if ( $local_fonts_available && ( empty( $copyfight_cdn ) || $copyfight_cdn == 'false') ) {
    124124                wp_register_style( 'copyfight-cdn', COPYFIGHT_PLUGIN_URL . '_inc/copyfight.php?hash=' . $copyfight_hash . '&font=' . $copyfight_typeface, array(), COPYFIGHT_VERSION );
     
    131131            $tpl  = '';
    132132            $tpl .= '<!--googleoff: anchor-->';
    133             $copyfight_fouc = get_option('copyfight_fouc');
    134             $copyfight_select = get_option('copyfight_select');
     133            $copyfight_fouc = get_option( 'copyfight_fouc' );
     134            $copyfight_select = get_option( 'copyfight_select' );
    135135            if ( !empty( $copyfight_fouc ) && $copyfight_fouc == 'true' ) {
    136136                if ( !empty( $copyfight_select ) && $copyfight_select == 'false' ) {
     
    149149
    150150            //copyright notice
    151             $copyfight_copyright = get_option('copyfight_copyright');
     151            $copyfight_copyright = get_option( 'copyfight_copyright' );
    152152            if ( strlen( $copyfight_copyright ) > 0 ) {
    153153                $tpl .= '<div id="copyright_notice">' . $copyfight_copyright . '</div>';
     
    157157            $tpl .= '<input id="copyfight_notice" type="hidden" value="' . __( 'Copyfight prevented copying this content.', 'copyfight' ) . '">';
    158158
    159             $copyfight_excerpt = get_option('copyfight_excerpt');
     159            $copyfight_excerpt = get_option( 'copyfight_excerpt' );
    160160            if ( !empty( $copyfight_excerpt ) && $copyfight_excerpt == 'true' && strlen( $post->post_excerpt ) > 0 ) {
    161161                $tpl = '<div class="copyfight_excerpt">' . $post->post_excerpt . '</div>' . $tpl;
     
    166166        } else {
    167167
    168             $copyfight_excerpt = get_option('copyfight_excerpt');
     168            $copyfight_excerpt = get_option( 'copyfight_excerpt' );
    169169            if ( !empty( $copyfight_excerpt ) && $copyfight_excerpt == 'true' && strlen( $post->post_excerpt ) > 0 ) {
    170170                $content = $post->post_excerpt;
  • copyfight/trunk/copyfight.php

    r1426805 r1428593  
    44Plugin URI:         https://getcopyfight.com/
    55Description:        Copyright protection
    6 Version:            1.4.5
     6Version:            1.4.6
    77Author:             Copyfight
    88Author URI:         https://getcopyfight.com/
     
    3535add_action( 'plugins_loaded', 'copyfight_textdomain' );
    3636
    37 define( 'COPYFIGHT_VERSION', '1.4.5' );
     37define( 'COPYFIGHT_VERSION', '1.4.6' );
    3838define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' );
    3939define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • copyfight/trunk/languages/copyfight-es_ES.po

    r1426805 r1428593  
    22msgstr ""
    33"Project-Id-Version: Copyfight\n"
    4 "POT-Creation-Date: 2016-05-30 14:35+0200\n"
    5 "PO-Revision-Date: 2016-05-30 14:35+0200\n"
     4"POT-Creation-Date: 2016-06-01 21:03+0200\n"
     5"PO-Revision-Date: 2016-06-01 21:04+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: Copyfight <[email protected]>\n"
     
    1212"X-Generator: Poedit 1.8.6\n"
    1313"X-Poedit-Basepath: ..\n"
    14 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
    15 "X-Poedit-KeywordsList: _e;esc_html__;__;__ngettext;__ngettext_noop;_n;"
    16 "_n_noop;_c;_nc;_x;_ex;_nx;_nx_noop;esc_html_x;esc_html_e;esc_attr_x;"
    17 "esc_attr_e;esc_attr__;__ngettext_noop\n"
     14"Plural-Forms: nplurals=2; plural=n != 1;\n"
     15"X-Poedit-KeywordsList: _e;__;_n;esc_html__;_n:1,2\n"
    1816"X-Poedit-SearchPath-0: .\n"
    19 
    20 #: class.copyfight-admin.php:48
     17"X-Poedit-SearchPathExcluded-0: languages\n"
     18
     19#: class.copyfight-admin.php:77
    2120msgid "Error: empty API Key field"
    2221msgstr "Error: API vacío campo Clave"
    2322
    24 #: class.copyfight-admin.php:90 class.copyfight-admin.php:475
    25 #: views/config.php:45
     23#: class.copyfight-admin.php:120 class.copyfight-admin.php:217
     24#: class.copyfight-admin.php:565 views/config.php:45
    2625msgid "Settings"
    2726msgstr "Ajustes"
    2827
    29 #: class.copyfight-admin.php:96 class.copyfight-admin.php:177
    30 #: class.copyfight-admin.php:217 class.copyfight-admin.php:218
     28#: class.copyfight-admin.php:157
     29msgid "A Copyfight error has occurred, your article is not protected."
     30msgstr ""
     31"Se ha producido un error de Derecho de Autor, el artículo no está protegido."
     32
     33#: class.copyfight-admin.php:210
     34msgid "Post"
     35msgid_plural "Posts"
     36msgstr[0] "entrada"
     37msgstr[1] "entradas"
     38
     39#: class.copyfight-admin.php:211
     40msgid "Page"
     41msgid_plural "Pages"
     42msgstr[0] "página"
     43msgstr[1] "páginas"
     44
     45#: class.copyfight-admin.php:212
     46msgid "Character"
     47msgid_plural "Characters"
     48msgstr[0] "carácter"
     49msgstr[1] "caracteres"
     50
     51#: class.copyfight-admin.php:213
     52msgid "Word"
     53msgid_plural "Words"
     54msgstr[0] "palabra"
     55msgstr[1] "palabras"
     56
     57#: class.copyfight-admin.php:218 views/config.php:267
     58msgid "Widget"
     59msgstr ""
     60
     61#: class.copyfight-admin.php:264 class.copyfight-admin.php:304
     62#: class.copyfight-admin.php:305
    3163msgid "Copyfight"
    3264msgstr "Copyfight"
    3365
    34 #: class.copyfight-admin.php:127
    35 msgid "A Copyfight error has occurred, your article is not protected."
    36 msgstr ""
    37 "Se ha producido un error de Derecho de Autor, el artículo no está protegido."
    38 
    39 #: class.copyfight-admin.php:226 class.copyfight-admin.php:244
    40 #: class.copyfight-admin.php:260 views/config.php:63 views/config.php:82
     66#: class.copyfight-admin.php:313 class.copyfight-admin.php:331
     67#: class.copyfight-admin.php:347 views/config.php:63 views/config.php:82
    4168#: views/config.php:101 views/config.php:159 views/config.php:178
    4269#: views/config.php:197 views/config.php:216 views/config.php:235
     
    4471msgstr "Enciende"
    4572
    46 #: class.copyfight-admin.php:226 class.copyfight-admin.php:244
    47 #: class.copyfight-admin.php:260 views/config.php:62 views/config.php:81
     73#: class.copyfight-admin.php:313 class.copyfight-admin.php:331
     74#: class.copyfight-admin.php:347 views/config.php:62 views/config.php:81
    4875#: views/config.php:100 views/config.php:158 views/config.php:177
    4976#: views/config.php:196 views/config.php:215 views/config.php:234
     
    5178msgstr "Apagar"
    5279
    53 #: class.copyfight-admin.php:228 class.copyfight-admin.php:489
     80#: class.copyfight-admin.php:315 class.copyfight-admin.php:582
    5481msgid "Status"
    5582msgstr "Estado"
    5683
    57 #: class.copyfight-admin.php:246
     84#: class.copyfight-admin.php:333
    5885msgid "Tags"
    5986msgstr "Etiquetas"
    6087
    61 #: class.copyfight-admin.php:262
     88#: class.copyfight-admin.php:349
    6289msgid "Blur"
    6390msgstr "Difuminar"
    6491
    65 #: class.copyfight-admin.php:445 class.copyfight-admin.php:542
    66 #: class.copyfight-admin.php:559
     92#: class.copyfight-admin.php:535 class.copyfight-admin.php:635
     93#: class.copyfight-admin.php:652
    6794msgid "A Copyfight error has occurred..."
    6895msgstr "Se ha producido un error de Copyfight..."
    6996
    70 #: class.copyfight-admin.php:446 class.copyfight-admin.php:543
    71 #: class.copyfight-admin.php:560
     97#: class.copyfight-admin.php:536 class.copyfight-admin.php:636
     98#: class.copyfight-admin.php:653
    7299msgid "Click here to try again..."
    73100msgstr "Haga clic aquí para volver a intentarlo..."
    74101
    75 #: class.copyfight-admin.php:464
     102#: class.copyfight-admin.php:554
    76103msgid "Overview"
    77104msgstr "Visión de conjunto"
    78105
    79 #: class.copyfight-admin.php:466 class.copyfight-admin.php:477
    80 #: class.copyfight-admin.php:487
    81 msgid "Copyfight Configuration"
    82 msgstr "Copyfight Configuración"
    83 
    84 #: class.copyfight-admin.php:467
     106#: class.copyfight-admin.php:556
     107msgid "Copyfight Overview"
     108msgstr "Descripción general de Overview"
     109
     110#: class.copyfight-admin.php:557
    85111msgid ""
    86112"Copyfight protects your content, so you can focus on more important things."
     
    89115"importantes."
    90116
    91 #: class.copyfight-admin.php:468
     117#: class.copyfight-admin.php:558
    92118msgid ""
    93119"On this page, you are able to enter/remove an API key, view account "
     
    97123"ver la información de la cuenta y ver las estadísticas."
    98124
    99 #: class.copyfight-admin.php:478 views/config.php:22
     125#: class.copyfight-admin.php:567
     126msgid "Copyfight Settings"
     127msgstr "Ajustes Copyfight"
     128
     129#: class.copyfight-admin.php:568 views/config.php:22
    100130msgid "API Key"
    101131msgstr "API Clave"
    102132
    103 #: class.copyfight-admin.php:478
     133#: class.copyfight-admin.php:568
    104134msgid "Enter/remove an API key."
    105135msgstr "Introducir/eliminar una clave de API."
    106136
    107 #: class.copyfight-admin.php:485
     137#: class.copyfight-admin.php:569 views/config.php:49
     138msgid "Default settings"
     139msgstr "Configuración por defecto"
     140
     141#: class.copyfight-admin.php:569
     142msgid "Edit your default settings."
     143msgstr "Editar la configuración por defecto."
     144
     145#: class.copyfight-admin.php:570 views/config.php:145
     146msgid "General settings"
     147msgstr "Configuración general"
     148
     149#: class.copyfight-admin.php:570
     150msgid "Edit your general settings."
     151msgstr "Editar la configuración general."
     152
     153#: class.copyfight-admin.php:571 views/config.php:264
     154msgid "Other settings"
     155msgstr "Otros ajustes"
     156
     157#: class.copyfight-admin.php:571
     158msgid "Edit your other settings."
     159msgstr "Editar otros ajustes."
     160
     161#: class.copyfight-admin.php:578
    108162msgid "Account"
    109163msgstr "Cuenta"
    110164
    111 #: class.copyfight-admin.php:488
     165#: class.copyfight-admin.php:580
     166msgid "Copyfight Account"
     167msgstr "Cuenta de Copyfight"
     168
     169#: class.copyfight-admin.php:581
    112170msgid "Subscription Type"
    113171msgstr "Tipo de suscripción"
    114172
    115 #: class.copyfight-admin.php:488
     173#: class.copyfight-admin.php:581
    116174msgid "The Copyfight subscription plan"
    117175msgstr "El plan de suscripción Copyfight"
    118176
    119 #: class.copyfight-admin.php:489
     177#: class.copyfight-admin.php:582
    120178msgid "The subscription status - active, cancelled or suspended"
    121179msgstr "El estado de suscripción - activo, cancelado o suspendido"
    122180
    123 #: class.copyfight-admin.php:494
     181#: class.copyfight-admin.php:587
    124182msgid "For more information:"
    125183msgstr "Para más información:"
    126184
    127 #: class.copyfight-admin.php:495
     185#: class.copyfight-admin.php:588
    128186msgid "Copyfight FAQ"
    129187msgstr "Copyfight FAQ"
    130188
    131 #: class.copyfight-admin.php:496
     189#: class.copyfight-admin.php:589
    132190msgid "Copyfight Support"
    133191msgstr "Soporte Copyfight"
     
    193251"individuales en primer lugar."
    194252
    195 #: views/config.php:49
    196 msgid "Default settings"
    197 msgstr "Configuración por defecto"
    198 
    199253#: views/config.php:52 views/config.php:65
    200254msgid "Default status"
     
    217271msgstr "Estos ajustes tienen un efecto inmediato sobre su contenido."
    218272
    219 #: views/config.php:145
    220 msgid "General settings"
    221 msgstr "Configuración general"
    222 
    223273#: views/config.php:148 views/config.php:161
    224274msgid "Content Delivery Network"
     
    249299msgstr "Aviso de copyright"
    250300
    251 #: views/config.php:264
    252 msgid "Other settings"
    253 msgstr "Otros ajustes"
    254 
    255 #: views/config.php:267
    256 msgid "Widget"
    257 msgstr ""
    258 
    259301#: views/config.php:269
    260302msgid "Widget settings"
     
    269311msgstr "añadir y editar la configuración del widget Copyfight."
    270312
    271 #: views/notice.php:6
    272 msgid "Activate your Copyfight account"
    273 msgstr "Active su cuenta Copyfight"
    274 
    275313#: views/notice.php:9
    276314msgid ""
     
    319357msgid "Light"
    320358msgstr "Claro"
     359
     360#~ msgid "Copyfight Configuration"
     361#~ msgstr "Copyfight Configuración"
     362
     363#~ msgid "Activate your Copyfight account"
     364#~ msgstr "Active su cuenta Copyfight"
    321365
    322366#~ msgid ""
  • copyfight/trunk/languages/copyfight-nl_NL.po

    r1426805 r1428593  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Development (trunk)\n"
    6 "POT-Creation-Date: 2016-05-30 14:35+0200\n"
    7 "PO-Revision-Date: 2016-05-30 14:36+0200\n"
     5"Project-Id-Version: Copyfight\n"
     6"POT-Creation-Date: 2016-06-01 21:01+0200\n"
     7"PO-Revision-Date: 2016-06-01 21:05+0200\n"
    88"Last-Translator: \n"
    9 "Language-Team: \n"
     9"Language-Team: Copyfight <[email protected]>\n"
    1010"Language: nl_NL\n"
    1111"MIME-Version: 1.0\n"
     
    1515"X-Generator: Poedit 1.8.6\n"
    1616"X-Poedit-Basepath: ..\n"
    17 "X-Poedit-KeywordsList: _e;__;esc_html__\n"
     17"X-Poedit-KeywordsList: _e;__;esc_html__;_n;_n:1,2\n"
    1818"X-Poedit-SearchPath-0: .\n"
    1919"X-Poedit-SearchPathExcluded-0: languages\n"
    2020
    21 #: class.copyfight-admin.php:48
     21#: class.copyfight-admin.php:77
    2222msgid "Error: empty API Key field"
    2323msgstr "Fout: leeg API sleutel veld"
    2424
    25 #: class.copyfight-admin.php:90 class.copyfight-admin.php:475
    26 #: views/config.php:45
     25#: class.copyfight-admin.php:120 class.copyfight-admin.php:217
     26#: class.copyfight-admin.php:565 views/config.php:45
    2727msgid "Settings"
    2828msgstr "Configuratie"
    2929
    30 #: class.copyfight-admin.php:96 class.copyfight-admin.php:177
    31 #: class.copyfight-admin.php:217 class.copyfight-admin.php:218
     30#: class.copyfight-admin.php:157
     31msgid "A Copyfight error has occurred, your article is not protected."
     32msgstr "Een Copyright fout is opgetreden, uw artikel is niet beschermd."
     33
     34#: class.copyfight-admin.php:210
     35msgid "Post"
     36msgid_plural "Posts"
     37msgstr[0] "bericht"
     38msgstr[1] "berichten"
     39
     40#: class.copyfight-admin.php:211
     41msgid "Page"
     42msgid_plural "Pages"
     43msgstr[0] "pagina"
     44msgstr[1] "pagina's"
     45
     46#: class.copyfight-admin.php:212
     47msgid "Character"
     48msgid_plural "Characters"
     49msgstr[0] "karakter"
     50msgstr[1] "karakters"
     51
     52#: class.copyfight-admin.php:213
     53msgid "Word"
     54msgid_plural "Words"
     55msgstr[0] "woord"
     56msgstr[1] "woorden"
     57
     58#: class.copyfight-admin.php:218 views/config.php:267
     59msgid "Widget"
     60msgstr ""
     61
     62#: class.copyfight-admin.php:264 class.copyfight-admin.php:304
     63#: class.copyfight-admin.php:305
    3264msgid "Copyfight"
    3365msgstr "Copyfight"
    3466
    35 #: class.copyfight-admin.php:127
    36 msgid "A Copyfight error has occurred, your article is not protected."
    37 msgstr "Een Copyright fout is opgetreden, uw artikel is niet beschermd."
    38 
    39 #: class.copyfight-admin.php:226 class.copyfight-admin.php:244
    40 #: class.copyfight-admin.php:260 views/config.php:63 views/config.php:82
     67#: class.copyfight-admin.php:313 class.copyfight-admin.php:331
     68#: class.copyfight-admin.php:347 views/config.php:63 views/config.php:82
    4169#: views/config.php:101 views/config.php:159 views/config.php:178
    4270#: views/config.php:197 views/config.php:216 views/config.php:235
     
    4472msgstr "Aan"
    4573
    46 #: class.copyfight-admin.php:226 class.copyfight-admin.php:244
    47 #: class.copyfight-admin.php:260 views/config.php:62 views/config.php:81
     74#: class.copyfight-admin.php:313 class.copyfight-admin.php:331
     75#: class.copyfight-admin.php:347 views/config.php:62 views/config.php:81
    4876#: views/config.php:100 views/config.php:158 views/config.php:177
    4977#: views/config.php:196 views/config.php:215 views/config.php:234
     
    5179msgstr "Uit"
    5280
    53 #: class.copyfight-admin.php:228 class.copyfight-admin.php:489
     81#: class.copyfight-admin.php:315 class.copyfight-admin.php:582
    5482msgid "Status"
    5583msgstr "Status"
    5684
    57 #: class.copyfight-admin.php:246
     85#: class.copyfight-admin.php:333
    5886msgid "Tags"
    5987msgstr "Tags"
    6088
    61 #: class.copyfight-admin.php:262
     89#: class.copyfight-admin.php:349
    6290msgid "Blur"
    6391msgstr "Vervagen"
    6492
    65 #: class.copyfight-admin.php:445 class.copyfight-admin.php:542
    66 #: class.copyfight-admin.php:559
     93#: class.copyfight-admin.php:535 class.copyfight-admin.php:635
     94#: class.copyfight-admin.php:652
    6795msgid "A Copyfight error has occurred..."
    6896msgstr "Er is een Copyfight fout opgetreden..."
    6997
    70 #: class.copyfight-admin.php:446 class.copyfight-admin.php:543
    71 #: class.copyfight-admin.php:560
     98#: class.copyfight-admin.php:536 class.copyfight-admin.php:636
     99#: class.copyfight-admin.php:653
    72100msgid "Click here to try again..."
    73101msgstr "Klik hier om opnieuw te proberen..."
    74102
    75 #: class.copyfight-admin.php:464
     103#: class.copyfight-admin.php:554
    76104msgid "Overview"
    77105msgstr "Overzicht"
    78106
    79 #: class.copyfight-admin.php:466 class.copyfight-admin.php:477
    80 #: class.copyfight-admin.php:487
    81 msgid "Copyfight Configuration"
    82 msgstr "Copyfight Configuratie"
    83 
    84 #: class.copyfight-admin.php:467
     107#: class.copyfight-admin.php:556
     108msgid "Copyfight Overview"
     109msgstr "Copyfight Overzicht"
     110
     111#: class.copyfight-admin.php:557
    85112msgid ""
    86113"Copyfight protects your content, so you can focus on more important things."
     
    89116"belangrijke zaken."
    90117
    91 #: class.copyfight-admin.php:468
     118#: class.copyfight-admin.php:558
    92119msgid ""
    93120"On this page, you are able to enter/remove an API key, view account "
     
    97124"bekijken."
    98125
    99 #: class.copyfight-admin.php:478 views/config.php:22
     126#: class.copyfight-admin.php:567
     127msgid "Copyfight Settings"
     128msgstr "Copyfight Configuratie"
     129
     130#: class.copyfight-admin.php:568 views/config.php:22
    100131msgid "API Key"
    101132msgstr "API key"
    102133
    103 #: class.copyfight-admin.php:478
     134#: class.copyfight-admin.php:568
    104135msgid "Enter/remove an API key."
    105136msgstr "API-sleutel invoeren of verwijderen."
    106137
    107 #: class.copyfight-admin.php:485
     138#: class.copyfight-admin.php:569 views/config.php:49
     139msgid "Default settings"
     140msgstr "Standaard instellingen"
     141
     142#: class.copyfight-admin.php:569
     143msgid "Edit your default settings."
     144msgstr "Bewerk uw standaardinstellingen."
     145
     146#: class.copyfight-admin.php:570 views/config.php:145
     147msgid "General settings"
     148msgstr "Algemene instellingen"
     149
     150#: class.copyfight-admin.php:570
     151msgid "Edit your general settings."
     152msgstr "Bewerk uw algemene instellingen."
     153
     154#: class.copyfight-admin.php:571 views/config.php:264
     155msgid "Other settings"
     156msgstr "Overige instellingen"
     157
     158#: class.copyfight-admin.php:571
     159msgid "Edit your other settings."
     160msgstr "Bewerk uw andere instellingen."
     161
     162#: class.copyfight-admin.php:578
    108163msgid "Account"
    109164msgstr "Account"
    110165
    111 #: class.copyfight-admin.php:488
     166#: class.copyfight-admin.php:580
     167msgid "Copyfight Account"
     168msgstr ""
     169
     170#: class.copyfight-admin.php:581
    112171msgid "Subscription Type"
    113172msgstr "Abonnementstype"
    114173
    115 #: class.copyfight-admin.php:488
     174#: class.copyfight-admin.php:581
    116175msgid "The Copyfight subscription plan"
    117176msgstr "Het Copyfight abonnementen overzicht"
    118177
    119 #: class.copyfight-admin.php:489
     178#: class.copyfight-admin.php:582
    120179msgid "The subscription status - active, cancelled or suspended"
    121180msgstr "Abonnementstatus - actief, geannuleerd of geschorst"
    122181
    123 #: class.copyfight-admin.php:494
     182#: class.copyfight-admin.php:587
    124183msgid "For more information:"
    125184msgstr "Voor meer info:"
    126185
    127 #: class.copyfight-admin.php:495
     186#: class.copyfight-admin.php:588
    128187msgid "Copyfight FAQ"
    129188msgstr "Copyfight Veelgestelde Vragen"
    130189
    131 #: class.copyfight-admin.php:496
     190#: class.copyfight-admin.php:589
    132191msgid "Copyfight Support"
    133192msgstr "Copyfight ondersteuning"
     
    191250"Bewaar eerst handmatig jouw individuele berichten en pagina's."
    192251
    193 #: views/config.php:49
    194 msgid "Default settings"
    195 msgstr "Standaard instellingen"
    196 
    197252#: views/config.php:52 views/config.php:65
    198253msgid "Default status"
     
    216271"Deze instellingen hebben een onmiddellijk effect op berichten en pagina's."
    217272
    218 #: views/config.php:145
    219 msgid "General settings"
    220 msgstr "Algemene instellingen"
    221 
    222273#: views/config.php:148 views/config.php:161
    223274msgid "Content Delivery Network"
     
    248299msgstr "Copyright melding"
    249300
    250 #: views/config.php:264
    251 msgid "Other settings"
    252 msgstr "Overige instellingen"
    253 
    254 #: views/config.php:267
    255 msgid "Widget"
    256 msgstr ""
    257 
    258301#: views/config.php:269
    259302msgid "Widget settings"
     
    313356msgid "Light"
    314357msgstr "Licht"
     358
     359#~ msgid "Copyfight Configuration"
     360#~ msgstr "Copyfight Configuratie"
     361
     362#~ msgid "%s Post"
     363#~ msgstr "%s Bericht"
    315364
    316365#~ msgid ""
  • copyfight/trunk/readme.txt

    r1426805 r1428593  
    77Requires at least:  3.3.0
    88Tested up to:       4.5.2
    9 Stable tag:         1.4.5
     9Stable tag:         1.4.6
    1010License:            GPLv2 or later
    1111License URI:        http://www.gnu.org/licenses/gpl-2.0.html
     
    72724. Post/Page screen: Copyfight options
    73735. Wordpress Widgets screen
     746. Wordpress Dashboard screen
    7475
    7576== Frequently Asked Questions ==
  • copyfight/trunk/uninstall.php

    r1359070 r1428593  
    66
    77// Delete options from options table
     8delete_option( 'copyfight_api_key' );
     9delete_option( 'copyfight_newsletter' );
     10delete_option( 'copyfight_status' );
     11delete_option( 'copyfight_tags' );
     12delete_option( 'copyfight_blur' );
    813delete_option( 'copyfight_typeface' );
    9 delete_option( 'copyfight_api_key' );
     14delete_option( 'copyfight_cdn' );
     15delete_option( 'copyfight_excerpt' );
     16delete_option( 'copyfight_fouc' );
     17delete_option( 'copyfight_select' );
     18delete_option( 'copyfight_sev' );
     19delete_option( 'copyfight_copyright' );
  • copyfight/trunk/views/config.php

    r1426805 r1428593  
    246246                        $copyfight_copyright = get_option('copyfight_copyright');
    247247                        if ( $copyfight_copyright === false ) {
    248                             $copyfight_copyright = '&copy; ' . date('Y') . ' ' . get_bloginfo( 'name' );
     248                            $copyfight_copyright = 'Copyright &copy; ' . date('Y') . ' ' . get_bloginfo( 'name' ) . '.';
    249249                            update_option('copyfight_copyright', $copyfight_copyright);
    250250                        }
Note: See TracChangeset for help on using the changeset viewer.