Plugin Directory

Changeset 1429808


Ignore:
Timestamp:
06/03/2016 11:33:59 AM (10 years ago)
Author:
getcopyfight
Message:

version 1.4.7

Location:
copyfight
Files:
52 added
6 edited

Legend:

Unmodified
Added
Removed
  • copyfight/trunk/class.copyfight-admin.php

    r1428593 r1429808  
    2626        $slug = 'copyfight';
    2727        $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);
     28        $html = file_get_contents( COPYFIGHT_PLUGIN_DIR . 'copyright.html' );
     29        $data = file_get_contents( COPYFIGHT_PLUGIN_DIR . 'copyright.data' );
    3130
    3231        if ( null == get_page_by_title( $title ) ) {
     
    3837                    'post_name'         => $slug,
    3938                    'post_title'        => $title,
    40                     'post_content'      => $content,
     39                    'post_content'      => $html,
    4140                    'post_status'       => 'publish',
    4241                    'post_type'         => 'post'
     
    4847                update_post_meta( $post_id, '_copyfight_tags', 'enabled' );
    4948                update_post_meta( $post_id, '_copyfight_blur', 'enabled' );
    50                 call_user_func( COPYFIGHT_CLASS_ADMIN . '::copyfight_save_post', $post_id );
     49                update_post_meta( $post_id, '_copyfight_hash', '98efb6cb4790f7d5e8118561fcc91b1f13d4686af28df206ef1402145e1784bb' );
     50                update_post_meta( $post_id, '_copyfight_typeface', '98efb6cb4790f7d5e8118561fcc91b1f13d4686af28df206ef1402145e1784bb' );
     51                update_post_meta( $post_id, '_copyfight_content', $data );
    5152            }
    5253        }
  • copyfight/trunk/class.copyfight.php

    r1428593 r1429808  
    3737        add_filter( 'the_content_feed', array( COPYFIGHT_CLASS, 'copyfight_the_content_feed' ) );
    3838        add_filter( 'the_excerpt_rss', array( COPYFIGHT_CLASS, 'copyfight_the_excerpt_rss' ) );
     39
     40        add_shortcode( 'copyfight', array( COPYFIGHT_CLASS, 'copyfight_shortcode' ) );
    3941
    4042        wp_register_style( 'copyfight', COPYFIGHT_PLUGIN_URL . '_inc/copyfight.css', array(), COPYFIGHT_VERSION );
     
    193195        return $content;
    194196    }
     197
     198    /**
     199     * Copyfight shortcode
     200     */
     201    public static function copyfight_shortcode( $atts, $content = null ) {
     202        return $content;
     203    }
    195204}
    196205
  • copyfight/trunk/copyfight.php

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

    r1428593 r1429808  
    1 Copyright © {year} {bloginfo}.
     1All rights reserved. No part of this website may be reproduced, redistributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the owner, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, contact the owner.
    22
    3 All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the publisher.
    4 
    5 This page is a demo of how you can embed the <a target="_blank" href="https://getcopyfight.com/">Copyfight</a> protection into your blog.
     3This website is protected by <a target="_blank" href="https://getcopyfight.com/">Copyfight</a>.
  • copyfight/trunk/readme.txt

    r1428593 r1429808  
    77Requires at least:  3.3.0
    88Tested up to:       4.5.2
    9 Stable tag:         1.4.6
     9Stable tag:         1.4.7
    1010License:            GPLv2 or later
    1111License URI:        http://www.gnu.org/licenses/gpl-2.0.html
  • copyfight/trunk/uninstall.php

    r1428593 r1429808  
    1212delete_option( 'copyfight_blur' );
    1313delete_option( 'copyfight_typeface' );
    14 delete_option( 'copyfight_cdn' );
    1514delete_option( 'copyfight_excerpt' );
    1615delete_option( 'copyfight_fouc' );
     
    1817delete_option( 'copyfight_sev' );
    1918delete_option( 'copyfight_copyright' );
     19delete_option( 'copyfight_cdn' );
Note: See TracChangeset for help on using the changeset viewer.