403Webshell
Server IP : 77.39.210.126  /  Your IP : 216.73.216.203
Web Server : Apache
System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64
User : artecasarepresti ( 1022)
PHP Version : 7.4.33
Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/artecasarepresti/www/wp-content/plugins/popups/admin/views/metaboxes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/artecasarepresti/www/wp-content/plugins/popups/admin/views/metaboxes/metabox-rules.php
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

/*
*  Meta box - Rules
*
*  This template file is used when editing a popup and creates the interface for editing popup rules.
*
*  @type	template
*  @since	2.0
*/
do_action( 'spu/metaboxes/before_rules', $post );
?>

<table class="spu_table widefat" id="spu_rules">
	<tbody>
	<tr>
		<td class="label">
			<label for="post_type"><?php _e("Rules", 'popups' ); ?></label>
			<p class="description"><?php _e("Create a set of rules to determine where the popup will show", 'popups' ); ?></p>
		</td>
		<td>
			<div class="rules-groups">

<?php if( is_array($groups) ): ?>
	<?php foreach( $groups as $group_id => $group ):
		$group_id = 'group_' . $group_id;
		?>
		<div class="rules-group" data-id="<?php echo $group_id; ?>">
			<?php if( $group_id == 'group_0' ): ?>
				<h4><?php _e("Show this popup if", 'popups' ); ?></h4>
			<?php else: ?>
				<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>
			<?php endif; ?>
			<?php if( is_array($group) ): ?>
			<table class="spu_table widefat">
				<tbody>
					<?php foreach( $group as $rule_id => $rule ):
						$rule_id = 'rule_' . $rule_id;
					?>
					<tr data-id="<?php echo $rule_id; ?>">
					<td class="param"><?php

						$choices = $this->get_rules_choices();

						// create field
						$args = array(
							'group_id' 	    => $group_id,
							'rule_id'	    => $rule_id,
							'name'		    => 'spu_rules[' . $group_id . '][' . $rule_id . '][param]',
							'value' 	    => $rule['param']
						);

						Spu_Helper::print_select( $args, $choices );


					?></td>
					<td class="operator"><?php

						$args = array(
							'group_id' 	=> $group_id,
							'rule_id'	=> $rule_id,
							'name'		=> 'spu_rules[' . $group_id . '][' . $rule_id . '][operator]',
							'value' 	=> $rule['operator'],
							'param'		=> $rule['param'],

						);
						Spu_Helper::ajax_render_operator( $args );

					?></td>
					<td class="value"><?php
						$args = array(
							'group_id' 		=> $group_id,
							'rule_id' 		=> $rule_id,
							'value' 		=> !empty($rule['value']) ? $rule['value'] : '',
							'name'			=> 'spu_rules[' . $group_id . '][' . $rule_id . '][value]',
							'param'			=> $rule['param'],
						);
						Spu_Helper::ajax_render_rules( $args );

					?></td>
					<td class="add">
						<a href="#" class="rules-add-rule button"><?php _e("+ AND", 'popups' ); ?></a>
					</td>
					<td class="remove">
						<a href="#" class="rules-remove-rule rules-remove-rule">-</a>
					</td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
			<?php endif; ?>
		</div>
	<?php endforeach; ?>

	<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>

	<a class="button rules-add-group" href="#"><?php _e("Add rule group (+ OR)", 'popups' ); ?></a>
	<p style="margin-top:30px">
		<?php echo sprintf(__('<strong>Hint</strong>: If you are planning to open the popup with a button, simple leave this set to "All Pages" and change trigger method below to "Manual triggering". Then inside the page you want to open the popup add the following shortcode [spu popup="%s"]Click here[/spu]','spu'),$post->ID);?>
	</p>
<?php endif; ?>

			</div>
		</td>
	</tr>
	</tbody>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit