Plugin Directory

Changeset 1599768


Ignore:
Timestamp:
02/20/2017 01:07:30 PM (9 years ago)
Author:
Sohelwpexpert
Message:

Update Some Debugging Code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-wp-easy-breakingnews/trunk/news-min.php

    r1282981 r1599768  
    55Description: 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?
    66Author: sohelwpexpert
    7 Version: 1.0
     7Version: 1.1
    88Author URI: http://prowpexpert.com/
    99*/
     
    1414
    1515
    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
    2318function 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 */
     22wp_register_style('my-styles', PRO_NEWS_STICKER_WORDPRESS.'css/style.css');
     23wp_register_style('news-sticker-css', PRO_NEWS_STICKER_WORDPRESS.'css/BreakingNews.css');
     24
     25wp_register_script('BreakingNews-js-demo', PRO_NEWS_STICKER_WORDPRESS.'js/demo.js', array( 'jquery' ));
     26wp_register_script('BreakingNews-js-d', PRO_NEWS_STICKER_WORDPRESS.'js/BreakingNews.js', array( 'jquery' ));
     27wp_register_script('scripts', PRO_NEWS_STICKER_WORDPRESS.'js/florida-custom.js', array( 'jquery' ));
     28wp_register_script('new-admin', PRO_NEWS_STICKER_WORDPRESS.'js/admin_tab.js', array( 'jquery' ));
     29
     30
     31/**
     32 * Enqueue global styles & scripts.
     33 */
     34
     35wp_enqueue_style('news-sticker-css');
     36wp_enqueue_style('BreakingNews');
     37wp_enqueue_style('my-styles');
     38
     39wp_enqueue_script('BreakingNews-js-demo');
     40wp_enqueue_script('new-admin');
     41wp_enqueue_script('BreakingNews-js-d');
     42wp_enqueue_script('scripts');
     43wp_enqueue_script('jquery');
     44}
     45add_action( 'wp_enqueue_scripts', 'pro_single_news_plugin_function_test' );
    4946
    5047
Note: See TracChangeset for help on using the changeset viewer.