Changeset 1599757
- Timestamp:
- 02/20/2017 12:55:46 PM (9 years ago)
- File:
-
- 1 edited
-
easy-news-strike/trunk/news-striky.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-news-strike/trunk/news-striky.php
r1266235 r1599757 4 4 Plugin URI:http://prowpexpert.com/ 5 5 Description: This plugin will enable easy news tickr in your wordpress theme. You can embed news tickr via shortcode in everywhere you want, even in theme files. By uesd shortcode [tickr_list].change name for use title="name". 6 Version: 1. 06 Version: 1.1 7 7 Author: sohelwpexpert 8 8 Author URI: http://prowpexpert.com/ 9 9 */ 10 10 11 /*Some Set-up*/ 12 define('WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' ); 13 11 14 //call to jQuery 12 15 13 16 14 function easy_news_plugin_main_js() {15 wp_enqueue_script( 'easy-news-js', plugins_url( '/js/jquery.ticker.min.js', __FILE__ ), array('jquery'), 1.0, false);16 wp_enqueue_style( 'easy-news-css', plugins_url( '/css/style.css', __FILE__ ));17 }18 17 19 add_action('init','easy_news_plugin_main_js'); 18 function ms_easy_news_plugin_main_js() { 19 /** 20 * Register global styles & scripts. 21 */ 22 wp_register_style('news-style-css', WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH.'css/style.css'); 23 24 wp_register_script('easy-news-js', WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH.'js/jquery.ticker.min.js', array( 'jquery' )); 20 25 21 26 27 /** 28 * Enqueue global styles & scripts. 29 */ 30 31 wp_enqueue_style('easy-news-css'); 32 33 wp_enqueue_script('news-news-js'); 34 wp_enqueue_script('jquery'); 35 } 36 add_action( 'wp_enqueue_scripts', 'ms_easy_news_plugin_main_js' ); 22 37 23 38
Note: See TracChangeset
for help on using the changeset viewer.