Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: SEO Tollkit
  4. */
  5.  
  6. //Exit if accessed directly
  7. if (! defined('ABSPATH')) {
  8. exit;
  9. }
  10.  
  11.  
  12. //define
  13. define( 'SEO_ACC_URL', WP_PLUGIN_URL . '/' . plugin_basename(dirname( __FILE__ ) ) . '/' );
  14. define( 'SEO_ACC_PATH', plugin_dir_path( __FILE__ ) );
  15.  
  16. //print shortcode in widgets.
  17. add_filter('widget_text', 'do_shortcode');
  18.  
  19. //vc addons load.
  20. require_once( SEO_ACC_PATH . 'vc-addons/vc-blocks-load.php' );
  21.  
  22. //theme shortcode.
  23. require_once( SEO_ACC_PATH . 'theme-shortcodes/slider-shortcode.php' );
  24.  
  25.  
  26. //register seo toolkit files.
  27.  
  28. function seo_toolkit_files(){
  29. wp_enqueue_style('owl-carousel', plugin_dir_url(__FILE__) . '/assets/css/owl.carousel.css');
  30. wp_enqueue_script('owl-carousel', plugin_dir_url(__FILE__) . '/assets/js/owl.carousel.min.js', array('jquery'), 'v.3.4.1', 'true' );
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement