403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/aravanatula.ru/wp-content/plugins/calluna-core/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/aravanatula.ru/wp-content/plugins/calluna-core/widgets/rooms.php
<?php
/* ------------------------------------------------------------------------------- */
/* Calluna Rooms Widget
/* ------------------------------------------------------------------------------- */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/* Widget Class ------------------------------------------------------------------ */
if( !class_exists('calluna_rooms_widget') ){
	class calluna_rooms_widget extends WP_Widget {


		/* Constructor ---------------------------------------------------------------- */
		function __construct() {
			parent::__construct(FALSE, $name = esc_html__('Calluna Rooms', 'calluna-td'), array(
				'description' => esc_html__('List with rooms', 'calluna-td')
			));
		}

		/* Widget Output -------------------------------------------------------------- */

		function widget($args, $instance) {
			global $calluna_options;
			extract($args);

			/* Get the options into variables */
			$widget_title = isset($instance['title']) ? apply_filters('widget_title', $instance['title']) : "";
			
			/* Unique ID */
			$unique_id = $args['widget_id'];

			echo $before_widget;
			if ($widget_title) {
				echo $before_title;
				echo $widget_title;
				echo $after_title;
			}

			/* Front End Output */
			?>
            
           <?php // Create and run custom loop
			$custom_posts = new WP_Query();
			$custom_posts->query('post_type=room');
			while ($custom_posts->have_posts()) : $custom_posts->the_post();
			
			global $room;
		?>
		    <div class="room-widget">
        	<div class="row image-row">
        		<div class="col-sm-12">
                <?php echo get_the_post_thumbnail( get_the_id(), 'large', array( 'class' => 'img-responsive oscitas-res-image' ) ); ?>
              </div>
        	</div>
        	<div class="sidebar-post-wrapper">
              <div class="row title-row">
              		<div class="col-sm-12">
                    <h3><a href="<?php esc_url( the_permalink() ); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'calluna-td' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
                  </div>
              </div>
              <div class="row price-row">
              		<div class="col-sm-12">
                        <div class="offer_price">
                        <?php
							$price = $room->calluna_get_min_price_html();
							echo sprintf( wp_kses(__('<span>starting at</span> %s' , 'calluna-td'), array( 'span' => array() ) ) , $price );
						?>
                        </div>
                  </div>
              </div> 
           </div>
           </div>
		<?php endwhile; ?>
			<?php
			echo $after_widget;
		}

		/* Update & Save -------------------------------------------------------------- */

		function update($new_instance, $old_instance) {
			return $new_instance;
		}

		/* Widget Form ---------------------------------------------------------------- */

		function form($instance) {
			global $calluna_options;

			/* Get the options into variables */
			$widget_title = isset($instance['title']) ? apply_filters('widget_title', $instance['title']) : "";
			?>
			<!-- Widget Title -->
			<p>
				<label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php echo esc_html__("Widget Title:", 'calluna-td'); ?></label>
				<input class="widefat" type="text" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" value="<?php echo esc_attr($widget_title); ?>"/>
			</p>
		<?php
		}
	}
}

// Register the Calluna Rooms Widget
if ( ! function_exists( 'calluna_core_register_room_widget' ) ) {
	function calluna_core_register_room_widget() {
		register_widget( 'calluna_rooms_widget' );
	}
}
add_action( 'widgets_init', 'calluna_core_register_room_widget' );
?>

Youez - 2016 - github.com/yon3zu
LinuXploit