X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-content/plugins/xagio/models
home
/
katmhsmi
/
public_html
/
wp-content
/
plugins
/
xagio
/
models
/
📁
..
📄
.htaccess
(420 B)
📄
wp_affiliate.php
(14.41 KB)
📄
wp_api.php
(131.08 KB)
📄
wp_batches.php
(3.67 KB)
📄
wp_bulk_image_converter.php
(2.25 KB)
📄
wp_captcha.php
(2.33 KB)
📄
wp_captcha_comment.php
(1.8 KB)
📄
wp_captcha_login.php
(976 B)
📄
wp_captcha_register.php
(819 B)
📄
wp_clone.php
(21.76 KB)
📄
wp_comments.php
(1.26 KB)
📄
wp_default.php
(6.98 KB)
📄
wp_exif.php
(11.1 KB)
📄
wp_extend_widgets.php
(4.21 KB)
📄
wp_freshstart.php
(16.03 KB)
📄
wp_groups.php
(30.02 KB)
📄
wp_keywords.php
(52.68 KB)
📄
wp_log404.php
(19.68 KB)
📄
wp_migration.php
(16.26 KB)
📄
wp_redirects.php
(5.16 KB)
📄
wp_rescue.php
(17.66 KB)
📄
wp_review.php
(3.2 KB)
📄
wp_reviewr.php
(3.76 KB)
📄
wp_reviews.php
(16.82 KB)
📄
wp_schema.php
(16.12 KB)
📄
wp_seo.php
(79.76 KB)
📄
wp_settings.php
(32.76 KB)
📄
wp_sync.php
(1.74 KB)
📄
wp_tinymce_buttons.php
(6.23 KB)
📄
wp_troubleshooting.php
(2.91 KB)
📄
wp_update.php
(7.9 KB)
Editing: wp_reviewr.php
<?php if ( ! class_exists( 'MXAG_Reviewr' ) ) { class MXAG_Reviewr extends WP_Widget { public static function initialize() { // Disable Model if not license is present if (!XAG_Licencator::isLicenseSet()) return; // Check if feature is enabled $ps_features = get_option('ps_features'); if ($ps_features != false && is_array($ps_features)) { if (!in_array('reviews', $ps_features)) { return; } } if ($ps_features == 'none') return; add_action( 'widgets_init', array( 'MXAG_Reviewr', 'registerWidget' ) ); add_shortcode('xag_reviews', array('MXAG_Reviews', 'reviewsDisplayShortcode')); } public static function registerWidget() { register_widget( 'MXAG_Reviewr' ); } function __construct() { $widget_ops = array( 'classname' => 'MXAG_Reviewr', 'description' => 'Widget that displays reviews from Xagio.', ); parent::__construct( false, '[Xagio] - Display Reviews', $widget_ops ); } function widget( $args, $instance ) { $render = function($instance){ include(XAG_PATH . '/pages/metabox/xag_display_reviews.php'); }; $render($instance); } function update( $new_instance, $old_instance ) { $instance = array(); $instance['limit_reviews'] = $new_instance['limit_reviews']; $instance['random_reviews'] = $new_instance['random_reviews']; $instance['limit_reviews_number'] = $new_instance['limit_reviews_number']; $instance['aggregate_rating'] = $new_instance['aggregate_rating']; return $instance; } function form( $instance ) { $limit_reviews = ''; if (isset($instance['limit_reviews'])) { if ($instance['limit_reviews'] == 1) { $limit_reviews = 'checked'; } } $limit_reviews_number = 5; if (isset($instance['limit_reviews_number'])) { if (!empty($instance['limit_reviews_number'])) { $limit_reviews_number = $instance['limit_reviews_number']; } } $random_reviews = ''; if (isset($instance['random_reviews'])) { if ($instance['random_reviews'] == 1) { $random_reviews = 'checked'; } } $aggregate_rating = ''; if (isset($instance['aggregate_rating'])) { if ($instance['aggregate_rating'] == 1) { $aggregate_rating = 'checked'; } } ?> <p> <input type="checkbox" <?php echo $limit_reviews;?> value="1" class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'limit_reviews' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit_reviews' ) ); ?>"> <label for="<?php echo esc_attr( $this->get_field_id( 'limit_reviews' ) ); ?>"><b><i>Limit Displayed Reviews</i></b> - <input placeholder="5" style="width: 43px;text-align: center;padding: 0 !important;height: 21px;" id="<?php echo esc_attr( $this->get_field_id( 'limit_reviews_number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit_reviews_number' ) ); ?>" type="number" value="<?php echo $limit_reviews_number; ?>"> </p> <p> <input type="checkbox" <?php echo $random_reviews;?> value="1" class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'random_reviews' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'random_reviews' ) ); ?>"> <label for="<?php echo esc_attr( $this->get_field_id( 'random_reviews' ) ); ?>"><b><i>Display Random Reviews</i></b> </p> <p> <input type="checkbox" <?php echo $aggregate_rating;?> value="1" class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'aggregate_rating' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'aggregate_rating' ) ); ?>"> <label for="<?php echo esc_attr( $this->get_field_id( 'aggregate_rating' ) ); ?>"><b><i>Display Aggregate Rating on the top of Reviews</i></b> </p> <?php } } }
Upload File
Create Folder