Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.12.151.11
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/jetpack/modules/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/jetpack/modules/shortcodes/twitter-timeline.php
<?php
/**
 * Twitter Timeline Shortcode.
 *
 * Examples:
 * [twitter-timeline username=jetpack]
 *
 * @package automattic/jetpack
 */

/**
 * Render the Twitter shortcode.
 *
 * @param array $atts Shortcode attributes.
 */
function twitter_timeline_shortcode( $atts ) {
	$default_atts = array(
		'username' => '',
		'id'       => '',
		'width'    => '450',
		'height'   => '282',
	);

	$atts = shortcode_atts( $default_atts, $atts, 'twitter-timeline' );

	$atts['username'] = preg_replace( '/[^A-Za-z0-9_]+/', '', $atts['username'] );

	if ( empty( $atts['username'] ) && ! is_numeric( $atts['id'] ) ) {
		return '<!-- ' . __( 'Must specify Twitter Timeline id or username.', 'jetpack' ) . ' -->';
	}

	$output = '<a class="twitter-timeline"';

	/** This filter is documented in modules/shortcodes/tweet.php */
	$partner = apply_filters( 'jetpack_twitter_partner_id', 'jetpack' );
	if ( ! empty( $partner ) ) {
		$output .= ' data-partner="' . esc_attr( $partner ) . '"';
	}
	if ( is_numeric( $atts['width'] ) ) {
		$output .= ' data-width="' . esc_attr( $atts['width'] ) . '"';
	}
	if ( is_numeric( $atts['height'] ) ) {
		$output .= ' data-height="' . esc_attr( $atts['height'] ) . '"';
	}
	if ( is_numeric( $atts['id'] ) ) {
		$output .= ' data-widget-id="' . esc_attr( $atts['id'] ) . '"';
	}
	if ( ! empty( $atts['username'] ) ) {
		$output .= ' href="' . esc_url( 'https://twitter.com/' . $atts['username'] ) . '"';
	}

	$output .= '>';

	$output .= sprintf(
		/* Translators: placeholder is a Twitter username. */
		__( 'Tweets by @%s', 'jetpack' ),
		$atts['username']
	);

	$output .= '</a>';

	wp_enqueue_script( 'jetpack-twitter-timeline' );

	return $output;
}
add_shortcode( 'twitter-timeline', 'twitter_timeline_shortcode' );

/**
 * Enqueue the js used by the Twitter shortcode.
 */
function twitter_timeline_js() {
	if ( is_customize_preview() ) {
		wp_enqueue_script( 'jetpack-twitter-timeline' );
	}
}
add_action( 'wp_enqueue_scripts', 'twitter_timeline_js' );

Youez - 2016 - github.com/yon3zu
LinuXploit