Advertisement
Guest User

Untitled

a guest
Dec 11th, 2015
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include TEMPLATPATE.'/functions/templateTags.php';
  3. ?>
  4.  
  5. <!--/**ENQUEUE MY STYLES&SCRIPTS**/-->
  6. <?php
  7. function enqueue_my_my_styles(){
  8. $resetStyle=get_template_directory_uri().'/css/reset.css';
  9. $mainStyle=get_template_directory_uri().'/style.css';
  10. $rtlStyle=get_template_directory_uri().'/rtl.css';
  11.  
  12. wp_enqueue_style('resetStyle',$resetStyle,array(),'v1','all');
  13. wp_enqueue_style('mainStyle',$mainStyle,array(),'v1','all');
  14. if(is_rtl()){
  15. wp_enqueue_style('style-rtl',$rtlStyle,array(),'v1','all');
  16. }
  17. }
  18. add action('wp_enqueue_scripts', 'enqueue_my_styles');
  19. ?>
  20.  
  21. <?php
  22. function registr_my_jscripts(){
  23. wp_deregister_script('jquery');
  24. wp_register_script('jquery',get_bloginfo('template_url').'js/jquery-1.11.3.js');
  25. wp_enqueue_script('jquery');
  26.  
  27. wp_enqueue_script('tooltip',get_bloginfo('templte_url').'js/tooltip.js',array('jquery'));
  28. }
  29. add_action('wp_enqueue_scripts','register_my_jscripts'):
  30. ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement