Changeset 1599768
- Timestamp:
- 02/20/2017 01:07:30 PM (9 years ago)
- File:
-
- 1 edited
-
my-wp-easy-breakingnews/trunk/news-min.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
my-wp-easy-breakingnews/trunk/news-min.php
r1282981 r1599768 5 5 Description: This plugin will enable WP Easy BreakingNews in your wordpress site. You can use regular wordpress shortcode, just you have to add "easy" before the shortcode. Easy, right? 6 6 Author: sohelwpexpert 7 Version: 1. 07 Version: 1.1 8 8 Author URI: http://prowpexpert.com/ 9 9 */ … … 14 14 15 15 16 // Add wordpress leatest jquery 17 function pro_news_stici_jquery() { 18 wp_enqueue_script('jquery'); 19 } 20 add_action('init', 'pro_news_stici_jquery'); 21 22 // Add plugin files 16 17 23 18 function pro_single_news_plugin_function_test() { 24 wp_enqueue_script( 'BreakingNews-js-demo', plugins_url( '/js/demo.js', __FILE__ ), true); 25 wp_enqueue_script( 'BreakingNews-js-d', plugins_url( '/js/BreakingNews.js', __FILE__ ), true); 26 } 27 28 add_action('wp_head','pro_single_news_plugin_function_test'); 29 30 31 /* Registering Plugin CSS */ 32 wp_enqueue_style('news-sticker-css', PRO_NEWS_STICKER_WORDPRESS.'css/BreakingNews.css'); 33 34 35 36 function pro_admintab_function_jquery() { 37 wp_enqueue_script('jquery'); 38 } 39 add_action('admin_head', 'pro_admintab_function_jquery'); 40 41 42 function pro_add_append_jquery_in_admin_head() { 43 44 wp_enqueue_script('new-admin', plugins_url('/js/admin_tab.js', __FILE__),array( 'jquery' ),'1.0',true); 45 } 46 add_action('admin_head', 'pro_add_append_jquery_in_admin_head'); 47 48 19 /** 20 * Register global styles & scripts. 21 */ 22 wp_register_style('my-styles', PRO_NEWS_STICKER_WORDPRESS.'css/style.css'); 23 wp_register_style('news-sticker-css', PRO_NEWS_STICKER_WORDPRESS.'css/BreakingNews.css'); 24 25 wp_register_script('BreakingNews-js-demo', PRO_NEWS_STICKER_WORDPRESS.'js/demo.js', array( 'jquery' )); 26 wp_register_script('BreakingNews-js-d', PRO_NEWS_STICKER_WORDPRESS.'js/BreakingNews.js', array( 'jquery' )); 27 wp_register_script('scripts', PRO_NEWS_STICKER_WORDPRESS.'js/florida-custom.js', array( 'jquery' )); 28 wp_register_script('new-admin', PRO_NEWS_STICKER_WORDPRESS.'js/admin_tab.js', array( 'jquery' )); 29 30 31 /** 32 * Enqueue global styles & scripts. 33 */ 34 35 wp_enqueue_style('news-sticker-css'); 36 wp_enqueue_style('BreakingNews'); 37 wp_enqueue_style('my-styles'); 38 39 wp_enqueue_script('BreakingNews-js-demo'); 40 wp_enqueue_script('new-admin'); 41 wp_enqueue_script('BreakingNews-js-d'); 42 wp_enqueue_script('scripts'); 43 wp_enqueue_script('jquery'); 44 } 45 add_action( 'wp_enqueue_scripts', 'pro_single_news_plugin_function_test' ); 49 46 50 47
Note: See TracChangeset
for help on using the changeset viewer.