| @@ -1,43 +1,22 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Copy Anything to Clipboard |
| 4 | - * Plugin URI: https://clipboard.agency/ | |
| 5 | - * Description: Effortlessly Copy Text or HTML to Your Clipboard 📋 with Copy Anything to Clipboard. Whether it's Blockquotes, Wishes, Messages, Shayari, Offer Codes, Special Symbols, Code Snippets, Hidden Content, or anything else you desire, our plugin has you covered! 🥳 Explore the possibilities with <a href="https://clipboard.agency/">Copy Anything to Clipboard</a>. | |
| 6 | - * Version: 3.5.2 | |
| 7 | - * Author: Clipboard Team | |
| 8 | - * Author URI: https://clipboard.agency/ | |
| 4 | + * Plugin URI: https://github.com/maheshwaghmare/copy-the-code/ | |
| 5 | + * Description: Copy the Text or HTML into the clipboard 📋 (clipboard). You can use it for code snippets, special symbols, discount codes, or anything which you want. By default it add the copy to clipboard button to the <code><pre></code> tag. Documentations and more visit <a href="https://maheshwaghmare.com/wordpress/blog/copy-anything-to-clipboard/"> on GitHub</a>. | |
| 6 | + * Version: 2.2.2 | |
| 7 | + * Author: Mahesh M. Waghmare | |
| 8 | + * Author URI: https://maheshwaghmare.wordpress.com/ | |
| 9 | 9 | * Text Domain: copy-the-code |
| 10 | 10 | * |
| 11 | 11 | * @package Copy the Code |
| 12 | - * | |
| 13 | - */ | |
| 12 | + */ | |
| 14 | 13 | |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | - exit; | |
| 17 | -} | |
| 14 | +// Set constants. | |
| 15 | +define( 'COPY_THE_CODE_TITLE', esc_html__( 'Copy Anything to Clipboard', 'copy-the-code' ) ); | |
| 16 | +define( 'COPY_THE_CODE_VER', '2.2.2' ); | |
| 17 | +define( 'COPY_THE_CODE_FILE', __FILE__ ); | |
| 18 | +define( 'COPY_THE_CODE_BASE', plugin_basename( COPY_THE_CODE_FILE ) ); | |
| 19 | +define( 'COPY_THE_CODE_DIR', plugin_dir_path( COPY_THE_CODE_FILE ) ); | |
| 20 | +define( 'COPY_THE_CODE_URI', plugins_url( '/', COPY_THE_CODE_FILE ) ); | |
| 18 | 21 | |
| 19 | -if ( function_exists( 'ctc_fs' ) ) { | |
| 20 | - ctc_fs()->set_basename( false, __FILE__ ); | |
| 21 | -} else { | |
| 22 | - // Set constants. | |
| 23 | - define( 'COPY_THE_CODE_TITLE', esc_html__( 'Copy Anything to Clipboard', 'copy-the-code' ) ); | |
| 24 | - define( 'COPY_THE_CODE_VER', '3.5.2' ); | |
| 25 | - define( 'COPY_THE_CODE_FILE', __FILE__ ); | |
| 26 | - define( 'COPY_THE_CODE_BASE', plugin_basename( COPY_THE_CODE_FILE ) ); | |
| 27 | - define( 'COPY_THE_CODE_DIR', plugin_dir_path( COPY_THE_CODE_FILE ) ); | |
| 28 | - define( 'COPY_THE_CODE_URI', plugins_url( '/', COPY_THE_CODE_FILE ) ); | |
| 29 | - | |
| 30 | - // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. | |
| 31 | - if ( ! function_exists( 'ctc_fs' ) ) { | |
| 32 | - require_once COPY_THE_CODE_DIR . 'classes/init.php'; | |
| 33 | - } | |
| 34 | - | |
| 35 | - register_activation_hook( COPY_THE_CODE_FILE, 'copy_the_code_set_fresh_user' ); | |
| 36 | - | |
| 37 | - // Set as fresh user? | |
| 38 | - function copy_the_code_set_fresh_user() { | |
| 39 | - update_option( 'copy_the_code_fresh_user', 'yes' ); | |
| 40 | - } | |
| 41 | - | |
| 42 | - require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code.php'; | |
| 43 | -} | |
| 22 | +require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code.php'; | |