Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd14
/
wp-content
/
plugins
/
qi-addons-for-elementor
/
inc
/
shortcodes
/
File Content:
class-qiaddonsforelementor-shortcodes.php
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } if ( ! class_exists( 'QiAddonsForElementor_Shortcodes' ) ) { class QiAddonsForElementor_Shortcodes { private static $instance; private $allowed_shortcodes = array(); public function __construct() { // Set properties value. $this->set_enabled_shortcodes(); // Include shortcode abstract classes. add_action( 'qi_addons_for_elementor_action_framework_before_shortcodes_register', array( $this, 'include_shortcode_classes' ), 5 ); // Include shortcodes. add_action( 'qi_addons_for_elementor_action_framework_before_shortcodes_register', array( $this, 'include_shortcodes' ) ); // Register shortcodes, priority 11 set because include of files is called on default action 10. add_action( 'qi_addons_for_elementor_action_framework_before_shortcodes_register', array( $this, 'register_shortcodes' ), 11 ); } public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function get_allowed_shortcodes() { return $this->allowed_shortcodes; } public function set_allowed_shortcodes( $allowed_shortcodes ) { $this->allowed_shortcodes[] = $allowed_shortcodes; } public function set_enabled_shortcodes() { foreach ( glob( QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH . '/*', GLOB_ONLYDIR ) as $shortcode ) { $this->set_allowed_shortcodes( $shortcode ); } } public function include_shortcode_classes() { include_once QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH . '/class-qiaddonsforelementor-shortcode.php'; include_once QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH . '/class-qiaddonsforelementor-list-shortcode.php'; include_once QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH . '/class-qiaddonsforelementor-slider-shortcode.php'; } public function include_shortcodes() { $shortcodes = $this->get_allowed_shortcodes(); $additional_shortcodes = apply_filters( 'qi_addons_for_elementor_filter_include_shortcodes', array() ); $shortcodes = array_merge( $shortcodes, $additional_shortcodes ); if ( ! empty( $shortcodes ) ) { foreach ( $shortcodes as $shortcode ) { foreach ( glob( $shortcode . '/include.php' ) as $shortcode ) { include_once $shortcode; } } } } public function register_shortcodes() { $qi_addons_for_elementor_framework = qi_addons_for_elementor_framework_get_framework_root(); $shortcodes = apply_filters( 'qi_addons_for_elementor_filter_register_shortcodes', $shortcodes = array() ); if ( ! empty( $shortcodes ) ) { foreach ( $shortcodes as $shortcode ) { $qi_addons_for_elementor_framework->add_shortcode( new $shortcode() ); } } } } QiAddonsForElementor_Shortcodes::get_instance(); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
accordion
---
0755
animated-text
---
0755
banner
---
0755
before-after
---
0755
blockquote
---
0755
business-hours
---
0755
button
---
0755
call-to-action
---
0755
cards-gallery
---
0755
cards-slider
---
0755
charts
---
0755
clients-list
---
0755
clients-slider
---
0755
countdown
---
0755
counter
---
0755
device-carousel
---
0755
device-slider
---
0755
dropcaps
---
0755
dual-image-with-content
---
0755
faq
---
0755
graphs
---
0755
highlight
---
0755
how-to
---
0755
icon-with-text
---
0755
image-gallery
---
0755
image-gallery-masonry
---
0755
image-gallery-pinterest
---
0755
image-slider
---
0755
info-button
---
0755
info-cards
---
0755
interactive-banner
---
0755
interactive-link-showcase
---
0755
item-showcase
---
0755
message-box
---
0755
parallax-images
---
0755
preview-slider
---
0755
pricing-list
---
0755
pricing-table
---
0755
process
---
0755
progress-bar-circle
---
0755
progress-bar-horizontal
---
0755
progress-bar-vertical
---
0755
section-title
---
0755
separator
---
0755
slider-switch
---
0755
table-of-contents
---
0755
tabs-horizontal
---
0755
tabs-vertical
---
0755
team-member
---
0755
testimonials-list
---
0755
testimonials-slider
---
0755
text-marquee
---
0755
timeline
---
0755
typeout-text
---
0755
class-qiaddonsforelementor-list-shortcode.php
40991 bytes
0644
class-qiaddonsforelementor-shortcode.php
775 bytes
0644
class-qiaddonsforelementor-shortcodes.php
2835 bytes
0644
include.php
251 bytes
0644
N4ST4R_ID | Naxtarrr