Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ccma
/
wp-content
/
plugins
/
curly-twitter-feed
/
shortcodes
/
File Content:
shortcodes-functions.php
<?php if (!function_exists('curly_twitter_include_shortcodes_file')) { /** * Loades all shortcodes by going through all folders that are placed directly in shortcodes folder */ function curly_twitter_include_shortcodes_file() { if( curly_twitter_core_plugin_installed() ? curly_core_is_theme_registered() : false ) { foreach ( glob( CURLY_TWITTER_SHORTCODES_PATH . '/*/load.php' ) as $shortcode_load ) { include_once $shortcode_load; } } do_action('curly_twitter_action_include_shortcodes_file'); } add_action('init', 'curly_twitter_include_shortcodes_file', 6); // permission 6 is set to be before vc_before_init hook that has permission 9 } if (!function_exists('curly_twitter_load_shortcodes')) { function curly_twitter_load_shortcodes() { include_once CURLY_TWITTER_ABS_PATH . '/lib/shortcode-loader.php'; CurlyTwitter\Lib\ShortcodeLoader::getInstance()->load(); } add_action('init', 'curly_twitter_load_shortcodes', 7); // permission 7 is set to be before vc_before_init hook that has permission 9 and after curly_twitter_include_shortcodes_file hook } if (!function_exists('curly_twitter_get_shortcode_module_template_part')) { /** * Loads module template part. * * @param string $template name of the template to load * @param string $shortcode name of the shortcode folder * @param string $slug * @param array $params array of parameters to pass to template * * @return html */ function curly_twitter_get_shortcode_module_template_part($template, $shortcode, $slug = '', $params = array()) { //HTML Content from template $html = ''; $template_path = CURLY_TWITTER_SHORTCODES_PATH . '/' . $shortcode; $temp = $template_path . '/' . $template; if (is_array($params) && count($params)) { extract($params); } $template = ''; if (!empty($temp)) { if (!empty($slug)) { $template = "{$temp}-{$slug}.php"; if (!file_exists($template)) { $template = $temp . '.php'; } } else { $template = $temp . '.php'; } } if ($template) { ob_start(); include($template); $html = ob_get_clean(); } return $html; } } // Load twitter elementor widgets if ( ! function_exists( 'curly_twitter_include_twitter_elementor_widgets_files' ) ) { /** * Loades all shortcodes by going through all folders that are placed directly in shortcodes folder */ function curly_twitter_include_twitter_elementor_widgets_files() { if( curly_twitter_core_plugin_installed() ? curly_core_is_theme_registered() : false ) { foreach ( glob( CURLY_TWITTER_SHORTCODES_PATH . '/*/elementor-*.php' ) as $shortcode_load ) { include_once $shortcode_load; } } } if ( defined( 'ELEMENTOR_VERSION' ) ) { if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>' ) ) { add_action( 'elementor/widgets/register', 'curly_twitter_include_twitter_elementor_widgets_files' ); } else { add_action( 'elementor/widgets/widgets_registered', 'curly_twitter_include_twitter_elementor_widgets_files' ); } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
twitter-list
---
0755
shortcodes-functions.php
3344 bytes
0644
N4ST4R_ID | Naxtarrr