Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Incsub_Support_FAQs_Shortcode extends Incsub_Support_Shortcode {
- public function __construct() {
- add_shortcode( 'support-system-faqs', array( $this, 'render' ) );
- }
- public function render( $atts ) {
- $this->start();
- incsub_support_get_template( 'index', 'faqs' );
- add_action( 'wp_footer', array( &$this, 'enqueue_custom_scripts' ) );
- return $this->end();
- }
- public function enqueue_custom_scripts() {
- incsub_support_enqueue_foundation_scripts();
- 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 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement