PATH:
home
/
letacommog
/
le-panoramique
/
wp-content
/
plugins
/
el-fb-you-vimeo-twit-insta-stream
/
inc
<?php // It does very little except including wp-widget.php add_action( 'elementor/init', function() { \Elementor\Plugin::$instance->elements_manager->add_category( 'social-stream', // the name of the category [ 'title' => esc_html__( 'Social Stream', 'void' ), 'icon' => 'fa fa-header', //default icon ], 1 // position ); } ); class ElementorCustomElement { private static $instance = null; public static function get_instance() { // Add a custom category for panel widgets if ( ! self::$instance ) self::$instance = new self; return self::$instance; } public function init(){ //add_filter( 'widget_text', 'shortcode_unautop' ); //add_filter( 'widget_text', 'do_shortcode' ); add_action( 'elementor/widgets/widgets_registered', array( $this, 'widgets_registered' ) ); } public function widgets_registered() { // We check if the Elementor plugin has been installed / activated. if(defined('ELEMENTOR_PATH') && class_exists('Elementor\Widget_Base')){ // We look for any theme overrides for this custom Elementor element. // If no theme overrides are found we use the default one in this plugin. $widget_file = 'plugins/elementor/my-widget.php'; $template_file = locate_template($widget_file); if ( !$template_file || !is_readable( $template_file ) ) { $template_file = plugin_dir_path(__FILE__).'el-addon.php'; } if ( $template_file && is_readable( $template_file ) ) { require_once $template_file; } } if ( defined( 'ELEMENTOR_PATH' ) && class_exists( 'Elementor\Widget_Base' ) ) { // get our own widgets up and running: // copied from widgets-manager.php if ( class_exists( 'Elementor\Plugin' ) ) { if ( is_callable( 'Elementor\Plugin', 'instance' ) ) { $elementor = Elementor\Plugin::instance(); if ( isset( $elementor->widgets_manager ) ) { if ( method_exists( $elementor->widgets_manager, 'register_widget_type' ) ) { $widget_file = 'plugins/elementor/my-widget.php'; $template_file = locate_template( $widget_file ); //if ( $template_file && is_readable( $template_file ) ) { //require_once $template_file; Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Elementor\Widget_My_social_stream_grid() ); Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Elementor\Widget_My_social_stream_carousel() ); //} } } } } } } } ElementorCustomElement::get_instance()->init();
[+]
..
[-] get_tweets.php
[edit]
[-] .htaccess
[edit]
[-] social-setting.php
[edit]
[-] el-setup.php
[edit]
[-] all_function.php
[edit]
[-] social-grid-setting.php
[edit]
[-] el-addon.php
[edit]
[-] twitter_proxy.php
[edit]
[-] add-param.php
[edit]