Advertisement
justrjlewis

accesspress_child_functions.php

Jun 1st, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.83 KB | None | 0 0
  1. <?php
  2. // Exit if accessed directly
  3. if ( !defined( 'ABSPATH' ) ) exit;
  4.  
  5. // BEGIN ENQUEUE PARENT ACTION
  6. // AUTO GENERATED - Do not modify or remove comment markers above or below:
  7.  
  8. if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
  9.     function chld_thm_cfg_parent_css() {
  10.         wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'animate','accesspress-mag-fontawesome-font','accesspress-mag-tooltipstyle','accesspress-mag-scroolstyle','accesspress-mag-owlCarouselStyle' ) );
  11.     }
  12. endif;
  13. add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
  14.          
  15. if ( !function_exists( 'child_theme_configurator_css' ) ):
  16.     function child_theme_configurator_css() {
  17.         wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'chld_thm_cfg_parent','accesspress-mag-style','responsive','accesspress-mag-nivolightbox-style' ) );
  18.     }
  19. endif;
  20. add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css' );
  21.  
  22. if ( !function_exists( 'hrg_access_custom_scripts' ) ):
  23.   function hrg_access_custom_scripts() {
  24.    // Register and Enqueue a Script
  25.    // get_stylesheet_directory_uri will look up child theme location
  26.    //   wp_register_style( 'lightview', get_stylesheet_directory_uri() . 'https://www.myhrsupportcenter.com/lightview/css/lightview.css');
  27.    //   wp_enqueue_style( 'lightview' );
  28.  
  29.     // Register and Enqueue a Script
  30.     // get_stylesheet_directory_uri will look up child theme location
  31.       wp_register_script( 'prototype', get_stylesheet_directory_uri() . 'http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js');
  32.       wp_enqueue_script( 'prototype' );
  33.  
  34.     // Register and Enqueue a Script
  35.     // get_stylesheet_directory_uri will look up child theme location
  36.       wp_register_script( 'scriptaculous', get_stylesheet_directory_uri() . 'http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js');
  37.       wp_enqueue_script( 'scriptaculous' );
  38.  
  39.     // Register and Enqueue a Script
  40.     // get_stylesheet_directory_uri will look up child theme location
  41.     // wp_register_script( 'lightview', get_stylesheet_directory_uri() . 'http://www.myhrsupportcenter.com/lightview/js/lightview.js');
  42.     //  wp_enqueue_script( 'lightview' );
  43.   }
  44. //
  45. endif;
  46. add_action('wp_enqueue_scripts', 'hrg_access_custom_scripts');
  47.  
  48. /**
  49.  * Custom widget area
  50.  */
  51.  register_sidebar( array(
  52.     'name' => __( 'Custom Widget Area'),
  53.     'id' => 'custom-widget-area',
  54.     'description' => __( 'An optional custom widget area for your site', 'accesspress-mag' ),
  55.     'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  56.     'after_widget'  => '</aside>',
  57.     'before_title'  => '<h1 class="widget-title"><span>',
  58.     'after_title'   => '</span></h1>',
  59. ) );
  60.  
  61. // END ENQUEUE PARENT ACTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement