SHARE
TWEET

class-shortcode-faqs

a guest Feb 28th, 2015 209 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top