Changeset 1907568
- Timestamp:
- 07/11/2018 10:18:29 AM (8 years ago)
- Location:
- current-bitcoin-price/trunk
- Files:
-
- 3 edited
-
current-bitcoin-price.php (modified) (1 diff)
-
functions.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
current-bitcoin-price/trunk/current-bitcoin-price.php
r1876041 r1907568 11 11 * @package Current_Bitcoin_Price 12 12 * 13 * Plugin Name: Current Bitcoin Price13 * Plugin Name: Bitcoin Price Ticker 14 14 * Plugin URI: http://wordpress.org/plugins/current-bitcoin-price 15 15 * Description: A simple plugin which helps you to see Current Price of Bitcoin using coindesk API 16 * Version: 1.0. 316 * Version: 1.0.4 17 17 * Author: Mishuk Adhikari 18 18 * Author URI: http://about.me/MishukAdhikari -
current-bitcoin-price/trunk/functions.php
r1874869 r1907568 7 7 */ 8 8 class CBP_main_functions { 9 9 10 10 public function __construct() { 11 11 12 12 add_action( 'wp_enqueue_scripts', array( $this, 'cbp_enqueuing_javascript_file' ) ); 13 13 14 add_action( 'admin_head', array( $this, 'cbp_tinnymce_button' ) ); 14 15 15 16 global $pagenow; 16 17 17 18 if (( $pagenow == 'options-general.php' ) && ($_GET['page'] == 'cbp-admin-dashboard')) { 18 19 add_action( 'admin_enqueue_scripts', array( $this, 'cbp_admin_assets' ) ); 19 20 } 20 21 21 22 } 22 23 23 24 /** 24 25 * Adding js and css file 25 * 26 * 26 27 * @return void 27 28 */ … … 36 37 /** 37 38 * Js and Css for backend 38 * 39 * 39 40 * @return void 40 41 */ … … 46 47 /** 47 48 * TinnyMCE button 48 * 49 * 49 50 * @return void 50 51 */ … … 52 53 53 54 $tinny_checkbox = get_option('cbp_options')['cbp_tinny_checkbox']; 54 55 55 56 if ( $tinny_checkbox == 'on' ) { 56 57 add_filter( 'mce_external_plugins', array( $this, 'button_for_tinymce_plugin' ) ); … … 61 62 /** 62 63 * Declaring button 63 * 64 * 64 65 * @param button array 65 66 * @return array … … 68 69 69 70 $plugin_array['cbp_mce_button'] = plugins_url( '/assets/js/cbp-tinnymce-custom-button.js', __FILE__ ); 70 71 71 72 return $plugin_array; 72 73 } … … 75 76 * Adding tinny button 76 77 * if is page 77 * 78 * 78 79 * @param string 79 80 * @return array 80 81 */ 81 82 public function register_mce_button( $buttons ) { 82 83 if ((isset($_GET['post_type']) && $_GET['post_type'] == 'page')) :84 83 85 84 array_push( $buttons, 'cbp_mce_button' ); 86 85 87 86 return $buttons; 88 87 89 endif;90 88 } 91 89 } -
current-bitcoin-price/trunk/readme.txt
r1876034 r1907568 1 1 === Current Bitcoin Price === 2 2 Contributors: mishuk24 3 Donate link: 3 Donate link: 4 4 Tags: current bitcoin price, bitcoin, bitcoin current price, btc live price, btc current price, btc 5 5 Requires at least: 3.3 6 Tested up to: 4.9. 56 Tested up to: 4.9.7 7 7 Requires PHP: 5.2.4 8 8 Stable tag: 4.3 … … 57 57 1.0.2 Activation hook issue fixed 58 58 1.0.3 Fatal error issue fixed 59 1.0.4 TinnyMCE button issue fixed 59 60 60 61 == Upgrade Notice == … … 64 65 version 1.0.2 65 66 version 1.0.3 67 version 1.0.4
Note: See TracChangeset
for help on using the changeset viewer.