Plugin Directory

Changeset 1599757


Ignore:
Timestamp:
02/20/2017 12:55:46 PM (9 years ago)
Author:
Sohelwpexpert
Message:

Change Version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • easy-news-strike/trunk/news-striky.php

    r1266235 r1599757  
    44Plugin URI:http://prowpexpert.com/
    55Description: 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.0
     6Version: 1.1
    77Author: sohelwpexpert
    88Author URI: http://prowpexpert.com/
    99*/
    1010
     11/*Some Set-up*/
     12define('WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
     13
    1114//call to jQuery
    1215
    1316
    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 }
    1817
    19 add_action('init','easy_news_plugin_main_js');
     18function ms_easy_news_plugin_main_js() {
     19/**
     20 * Register global styles & scripts.
     21 */
     22wp_register_style('news-style-css', WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH.'css/style.css');
     23
     24wp_register_script('easy-news-js', WP_EASY_NEWS_NSTRIKE_PLUGIN_PATH.'js/jquery.ticker.min.js', array( 'jquery' ));
    2025
    2126
     27/**
     28 * Enqueue global styles & scripts.
     29 */
     30 
     31wp_enqueue_style('easy-news-css');
     32
     33wp_enqueue_script('news-news-js');
     34wp_enqueue_script('jquery');
     35}
     36add_action( 'wp_enqueue_scripts', 'ms_easy_news_plugin_main_js' );
    2237
    2338
Note: See TracChangeset for help on using the changeset viewer.