Advertisement
fajrialhadii

Untitled

Aug 2nd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2. if ( function_exists('register_sidebar') )
  3. register_sidebar(array('name'=>'Sidebar',
  4. 'id' => 'sidebar',
  5. 'before_widget' => '<div class="widget %1$s"><div class="inner">',
  6. 'after_widget' => '</div></div>',
  7. 'before_title' => '<h3 class="title"><span>',
  8. 'after_title' => '</span></h3>',
  9. ));
  10. if( !function_exists('theme_setup') ) {
  11. function theme_setup() {
  12. register_nav_menus( array( 'main-menu' => __( 'Main Navigation' ), 'footer-menu' => __( 'Footer Navigation' ) ) );
  13. }
  14. }
  15. add_action( 'after_setup_theme', 'theme_setup' );
  16. define( 'BASE_DIR', TEMPLATEPATH . '/' );
  17. include( BASE_DIR . 'inc/tools.php' );
  18. include( BASE_DIR . 'inc/options-sidebar.php' );
  19.  
  20. if ( function_exists( 'add_theme_support' ) ) {
  21. add_theme_support( 'post-thumbnails' );
  22. add_image_size( 'thumb80', 80, 80, true );
  23.  
  24. };
  25.  
  26. if ( !function_exists( 'optionsframework_init' ) ) {
  27. define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' );
  28. require_once dirname( __FILE__ ) . '/inc/options-framework.php';
  29. }
  30.  
  31. add_action('wp_print_scripts', 'jquery_script',8);
  32. function jquery_script(){
  33. if ( function_exists('esc_attr') ) wp_enqueue_script('jquery');
  34. else {
  35. wp_deregister_script('jquery');
  36. wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');
  37. }
  38. }
  39.  
  40. function my_scripts_method() {
  41. wp_enqueue_script('myscript2', get_template_directory_uri() . '/js/js-mainmenu.js', array('jquery'), false, true);
  42.  
  43. }
  44. add_action('wp_enqueue_scripts', 'my_scripts_method');
  45.  
  46. include(TEMPLATEPATH."/newasset/funcs/newfunctions.php");
  47.  
  48.  
  49.  
  50.  
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement