Advertisement
Guest User

class-shortcode-faqs

a guest
Feb 28th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. class Incsub_Support_FAQs_Shortcode extends Incsub_Support_Shortcode {
  4. public function __construct() {
  5. add_shortcode( 'support-system-faqs', array( $this, 'render' ) );
  6. }
  7.  
  8. public function render( $atts ) {
  9. $this->start();
  10.  
  11. incsub_support_get_template( 'index', 'faqs' );
  12.  
  13. add_action( 'wp_footer', array( &$this, 'enqueue_custom_scripts' ) );
  14.  
  15. return $this->end();
  16. }
  17.  
  18. public function enqueue_custom_scripts() {
  19. incsub_support_enqueue_foundation_scripts();
  20. wp_enqueue_script( 'support-system-foundation-init', INCSUB_SUPPORT_PLUGIN_URL . 'assets/js/foundation-init.js', array( 'support-system-foundation-js' ), incsub_support_get_version(), true );
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement