403Webshell
Server IP : 51.91.236.193  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : institutah ( 16501)
PHP Version : 7.2.34
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/institutah/www/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/institutah/www/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/feed.php
<?php

su_add_shortcode( array(
		'id' => 'feed',
		'callback' => 'su_shortcode_feed',
		'image' => su_get_plugin_url() . 'admin/images/shortcodes/feed.svg',
		'name' => __( 'RSS feed', 'shortcodes-ultimate' ),
		'type' => 'single',
		'group' => 'content other',
		'atts' => array(
			'url' => array(
				'values' => array( ),
				'default' => '',
				'name' => __( 'Url', 'shortcodes-ultimate' ),
				'desc' => __( 'Url to RSS-feed', 'shortcodes-ultimate' )
			),
			'limit' => array(
				'type' => 'slider',
				'min' => 1,
				'max' => 20,
				'step' => 1,
				'default' => 3,
				'name' => __( 'Limit', 'shortcodes-ultimate' ), 'desc' => __( 'Number of items to show', 'shortcodes-ultimate' )
			),
			'class' => array(
				'type' => 'extra_css_class',
				'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
				'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ),
				'default' => '',
			),
		),
		'desc' => __( 'Feed grabber', 'shortcodes-ultimate' ),
		'icon' => 'rss',
	) );

function su_shortcode_feed( $atts = null, $content = null ) {
	$atts = shortcode_atts( array(
			'url'   => get_bloginfo_rss( 'rss2_url' ),
			'limit' => 3,
			'class' => ''
		), $atts, 'feed' );
	if ( !function_exists( 'wp_rss' ) ) include_once ABSPATH . WPINC . '/rss.php';
	ob_start();
	echo '<div class="su-feed' . su_get_css_class( $atts ) . '">';
	wp_rss( $atts['url'], $atts['limit'] );
	echo '</div>';
	$return = ob_get_contents();
	ob_end_clean();
	return $return;
}

Youez - 2016 - github.com/yon3zu
LinuXploit