HEX
Server: Apache/2
System: Linux gains.linuxbigapps.com 4.18.0-553.74.1.lve.el8.x86_64 #1 SMP Tue Sep 9 14:25:24 UTC 2025 x86_64
User: mountains (1551)
PHP: 8.0.30
Disabled: allow_url_include, show_source, symlink, system, passthru, exec, popen, pclose, proc_open, proc_terminate,proc_get_status, proc_close, proc_nice, allow_url_fopen, shell-exec, shell_exec, fpassthru, base64_encodem, escapeshellcmd, escapeshellarg, crack_check,crack_closedict, crack_getlastmessage, crack_opendict, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, dl, escap, phpinfo
Upload Files
File: /home/mountains/public_html/wp-content/plugins/twitter-tweets/twitter-tweets.php
<?php
/*
 * Plugin Name: Customize Feeds for Twitter
 * Version: 2.1.5
 * Description: Customize Feeds for Twitter plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets
 * Author: Weblizar
 * Author URI: https://www.weblizar.com/
 * Plugin URI: https://wordpress.org/plugins/twitter-tweets/
 * Domain Path: /lang/
 */

/*** Constant Values & Variables ***/

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'WEBLIZAR_TWITTER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'wl_twitter_dir_path', plugin_dir_path( __FILE__ ) );

add_action( 'plugins_loaded', 'weblizar_twitter_tweeets_load_translation' );
function weblizar_twitter_tweeets_load_translation() {
	load_plugin_textdomain( 'twitter-tweets', false, basename( wl_twitter_dir_path ) . '/lang' );
}

/*** Widget Code */
// require_once wl_twitter_dir_path . 'vendor/autoload.php';
if ( version_compare( phpversion(), '7.4', '>=' ) ) {
    require_once wl_twitter_dir_path . 'vendor_new/autoload.php';
} else {
	require_once wl_twitter_dir_path . 'vendor_old/autoload.php';
}

/**** Twitter Shortcode */
require_once 'twitter-tweets_shortcode.php';

/**** Twitter widgets */
require_once 'twitter_tweets_widgets.php';

/** Shortcode Settings Menu **/
function Weblizar_Twitter_Menu() {
	$AdminMenu = add_menu_page( esc_html__( 'Customize Feeds for Twitter', 'twitter-tweets' ), esc_html__( 'Customize Feeds for Twitter', 'twitter-tweets' ), 'manage_options', 'Twitter', 'Twitter_by_weblizar_page_function', 'dashicons-wordpress-alt' );
}
add_action( 'admin_menu', 'Weblizar_Twitter_Menu' );
function Twitter_by_weblizar_page_function() {
	wp_enqueue_style( 'wp-color-picker' );
	wp_enqueue_script( 'wp-color-picker' );
	/**CSS*/
	wp_enqueue_style( 'weblizar-option-twiiter-style-css', WEBLIZAR_TWITTER_PLUGIN_URL . 'css/weblizar-option-twiiter-style.css' );
	wp_enqueue_style( 'heroic', WEBLIZAR_TWITTER_PLUGIN_URL . 'css/heroic-features.css' );

	/**JS*/
	wp_enqueue_script( 'jquery' );
	wp_enqueue_script( 'popper', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/popper.min.js', array( 'jquery' ), true, true );
	wp_enqueue_script( 'wl_bootstrap', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/bootstrap.min.js', array( 'jquery' ), true, true );
	wp_enqueue_script( 'weblizar-tab-js', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/option-js.js', array( 'jquery', 'media-upload', 'jquery-ui-sortable' ) );
	require_once 'twiiter_help_body.php';
}

add_action( 'wp_enqueue_scripts', 'wl_enqueue_css_frontend' );
function wl_enqueue_css_frontend() {
	if ( ! is_admin() ) {
		global $post;
		if ( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'WL_TWITTER' ) ) {
			wp_enqueue_style( 'front-end-css', WEBLIZAR_TWITTER_PLUGIN_URL . 'css/front-end-css.css' );
			wp_enqueue_style( 'wl-bootstrap', WEBLIZAR_TWITTER_PLUGIN_URL . 'css/bootstrap.min.css' );
		}
		wp_enqueue_script( 'wl-weblizar-fronend-twitter-tweets', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/weblizar-fronend-twitter-tweets.js', array( 'jquery' ), true, false );
	}
}

/*Plugin Setting Link*/
function wl_twitter_settinglinks( $links ) {
	$twt_go_pro_link       = '<a href="https://weblizar.com/plugins/twitter-tweets-pro/" target="_blank" style="color: red;">' . esc_html__( 'Go Pro', 'twitter-tweets' ) . '</a>';
	$twitter_settings_link = '<a href="admin.php?page=Twitter">' . esc_html__( 'Settings', 'twitter-tweets' ) . '</a>';
	array_unshift( $links, $twt_go_pro_link, $twitter_settings_link );
	return $links;
}
$plugin_wl_twitter = plugin_basename( __FILE__ );
add_filter( "plugin_action_links_$plugin_wl_twitter", 'wl_twitter_settinglinks' );