HEX
Server: nginx/1.29.3
System: Linux mail.sarafai.ru 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: dl,exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /var/www/levasheva.ru/public/wp-content/plugins/lightbox-plus/admin/lightbox.inline.php
<?php
/**
 * @package Lightbox Plus Colorbox
 * @subpackage lightbox.inline.php
 * @internal 2016.04.18
 * @author Programmattic LLC / Dan Zappone
 * @version 2.8
 * @$Id: lightbox.inline.php 937945 2014-06-24 17:11:13Z dzappone $
 * @$URL: https://plugins.svn.wordpress.org/lightbox-plus/tags/2.7/admin/lightbox.inline.php $
 */
defined( 'ABSPATH' ) or die( 'You kids get off my lawn!' );
?>
<!-- Inline Lightbox Settings -->
<div id="poststuff" class="lbp">
	<div class="postbox">
		<h3 class="handle"><?php _e( 'Lightbox Plus Colorbox - Inline Lightbox Settings', 'lightboxplus' ); ?></h3>
		<div class="inside toggle">
			<div id="ilbp-tabs">
				<ul>
					<li><a href="#ilbp-tabs-1"><?php _e( 'General', 'lightboxplus' ); ?></a></li>
					<li><a href="#ilbp-tabs-2"><?php _e( 'Usage', 'lightboxplus' ); ?></a></li>
					<li><a href="#ilbp-tabs-3"><?php _e( 'Demo/Test', 'lightboxplus' ); ?></a></li>
				</ul>
				<!-- General -->
				<div id="ilbp-tabs-1">
					<input type="hidden" name="ready_inline" value="1"/>
					<table class="wp-list-table widefat">
						<thead>
						<tr>
							<th>&nbsp;</th>
							<th style="text-align:center;"><b><?php _e( 'Link Class', 'lightboxplus' ); ?></b><br/><b><?php _e( 'Content ID', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Transition', 'lightboxplus' ); ?></b><br/><b><?php _e( 'Speed', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Width', 'lightboxplus' ); ?><br/><?php _e( 'Height', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Inner Width', 'lightboxplus' ); ?><br/><?php _e( 'Inner Height', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Max Width', 'lightboxplus' ); ?><br/><?php _e( 'Max Height', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Position', 'lightboxplus' ); ?></b><br/>
								<div style="font-size:8px;line-height:9px;"><?php _e( 'Top', 'lightboxplus' ); ?><br/><?php _e( 'Right, Bottom', 'lightboxplus' ); ?><br/><?php _e( 'Left', 'lightboxplus' ); ?></div>
							</th>
							<th style="text-align:center;"><b><?php _e( 'Fixed</b>', 'lightboxplus' ); ?></th>
							<th style="text-align:center;"><b><?php _e( 'Auto Open', 'lightboxplus' ); ?></b></th>
							<th style="text-align:center;"><b><?php _e( 'Overlay Opacity', 'lightboxplus' ); ?></b></th>
						</tr>
						</thead>
						<tbody>
						<?php
						if ( isset( $lbp_plugin_options ) ) {
							for ( $i = 1; $i <= $lbp_plugin_options['inline_num']; $i ++ ) {
								$inline_links            = array();
								$inline_hrefs            = array();
								$inline_transitions      = array();
								$inline_speeds           = array();
								$inline_widths           = array();
								$inline_heights          = array();
								$inline_inner_widths     = array();
								$inline_inner_heights    = array();
								$inline_max_widths       = array();
								$inline_max_heights      = array();
								$inline_position_tops    = array();
								$inline_position_rights  = array();
								$inline_position_bottoms = array();
								$inline_position_lefts   = array();
								$inline_fixeds           = array();
								$inline_opens            = array();
								$inline_opacitys         = array();
								$inline_links            = $lbp_plugin_options['inline_links'];
								$inline_hrefs            = $lbp_plugin_options['inline_hrefs'];
								$inline_transitions      = $lbp_plugin_options['inline_transitions'];
								$inline_speeds           = $lbp_plugin_options['inline_speeds'];
								$inline_widths           = $lbp_plugin_options['inline_widths'];
								$inline_heights          = $lbp_plugin_options['inline_heights'];
								$inline_inner_widths     = $lbp_plugin_options['inline_inner_widths'];
								$inline_inner_heights    = $lbp_plugin_options['inline_inner_heights'];
								$inline_max_widths       = $lbp_plugin_options['inline_max_widths'];
								$inline_max_heights      = $lbp_plugin_options['inline_max_heights'];
								$inline_position_tops    = $lbp_plugin_options['inline_position_tops'];
								$inline_position_rights  = $lbp_plugin_options['inline_position_rights'];
								$inline_position_bottoms = $lbp_plugin_options['inline_position_bottoms'];
								$inline_position_lefts   = $lbp_plugin_options['inline_position_lefts'];
								$inline_fixeds           = $lbp_plugin_options['inline_fixeds'];
								$inline_opens            = $lbp_plugin_options['inline_opens'];
								$inline_opacitys         = $lbp_plugin_options['inline_opacitys'];
								?>
								<tr <?php if ( $i % 2 == 0 ) {
									echo 'class="alternate"';
								} ?>>
									<td><label for="inline_link_<?php esc_attr_e( $i ); ?>"><?php esc_html_e( 'Inline Lightbox #' . $i, 'lightboxplus' ) ?></label>:</td>
									<td align="center">
										<input type="text" size="15" name="inline_link_<?php echo $i; ?>" id="inline_link_<?php echo $i; ?>" value="<?php if ( empty( $inline_links[ $i - 1 ] ) ) {
											echo 'lbp-inline-link-' . $i;
										} else {
											echo esc_attr( $inline_links[ $i - 1 ] );
										} ?>"/>
										<br/>
										<label for="inline_href_<?php echo $i; ?>"></label>
										<input type="text" size="15" name="inline_href_<?php echo $i; ?>" id="inline_href_<?php echo $i; ?>" value="<?php if ( empty( $inline_hrefs[ $i - 1 ] ) ) {
											echo 'lbp-inline-href-' . $i;
										} else {
											echo $inline_hrefs[ $i - 1 ];
										} ?>"/>
									</td>
									<td align="center">
										<label for="inline_transition_<?php echo $i; ?>"></label>
										<select name="inline_transition_<?php echo $i; ?>" id="inline_transition_<?php echo $i; ?>">
											<option value="elastic"<?php selected( $inline_transitions[ $i - 1 ], 'elastic' ); ?>>Elastic</option>
											<option value="fade"<?php selected( $inline_transitions[ $i - 1 ], 'fade' ); ?>>Fade</option>
											<option value="none"<?php selected( $inline_transitions[ $i - 1 ], 'none' ); ?>>None</option>
										</select><br/>
										<label for="inline_speed_<?php echo $i; ?>"></label>
										<select name="inline_speed_<?php echo $i; ?>" id="inline_speed_<?php echo $i; ?>">
											<?php
											for ( $j = 0; $j <= 5001; ) { ?>
												<option value="<?php echo $j; ?>"<?php selected( $inline_speeds[ $i - 1 ], strval( $j ) ); ?>><?php echo $j; ?></option>
												<?php
												if ( $j >= 2000 ) {
													$j = $j + 500;
												} elseif ( $j >= 1250 ) {
													$j = $j + 250;
												} else {
													$j = $j + 50;
												}
											}
											?>
										</select>
									</td>
									<td align="center">
										<label for="inline_width_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_width_<?php echo $i; ?>" id="inline_width_<?php echo $i; ?>" value="<?php if ( empty( $inline_widths[ $i - 1 ] ) ) {
											echo '80%';
										} else {
											echo esc_attr( $inline_widths[ $i - 1 ] );
										} ?>"/><br/>
										<label for="inline_height_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_height_<?php echo $i; ?>" id="inline_height_<?php echo $i; ?>" value="<?php if ( empty( $inline_heights[ $i - 1 ] ) ) {
											echo '80%';
										} else {
											echo esc_attr( $inline_heights[ $i - 1 ] );
										} ?>"/>
									</td>
									<td align="center">
										<label for="inline_inner_width_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_inner_width_<?php echo $i; ?>" id="inline_inner_width_<?php echo $i; ?>" value="<?php if ( empty( $inline_inner_widths[ $i - 1 ] ) ) {
											echo 'false';
										} else {
											echo esc_attr( $inline_inner_widths[ $i - 1 ] );
										} ?>"/><br/>
										<label for="inline_inner_height_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_inner_height_<?php echo $i; ?>" id="inline_inner_height_<?php echo $i; ?>" value="<?php if ( empty( $inline_inner_heights[ $i - 1 ] ) ) {
											echo 'false';
										} else {
											echo esc_attr( $inline_inner_heights[ $i - 1 ] );
										} ?>"/>
									</td>
									<td align="center">
										<label for="inline_max_width_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_max_width_<?php echo $i; ?>" id="inline_max_width_<?php echo $i; ?>" value="<?php if ( empty( $inline_max_widths[ $i - 1 ] ) ) {
											echo '80%';
										} else {
											echo esc_attr( $inline_max_widths[ $i - 1 ] );
										} ?>"/><br/>
										<label for="inline_max_height_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_max_height_<?php echo $i; ?>" id="inline_max_height_<?php echo $i; ?>" value="<?php if ( empty( $inline_max_heights[ $i - 1 ] ) ) {
											echo '80%';
										} else {
											echo esc_attr( $inline_max_heights[ $i - 1 ] );
										} ?>"/>
									</td>
									<td align="center">
										<label for="inline_position_top_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_position_top_<?php echo $i; ?>" id="inline_position_top_<?php echo $i; ?>" value="<?php if ( empty( $inline_position_tops[ $i - 1 ] ) ) {
											echo '';
										} else {
											echo esc_attr( $inline_position_tops[ $i - 1 ] );
										} ?>"/><br/>
										<label for="inline_position_right_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_position_right_<?php echo $i; ?>" id="inline_position_right_<?php echo $i; ?>" value="<?php if ( empty( $inline_position_rights[ $i - 1 ] ) ) {
											echo '';
										} else {
											echo esc_attr( $inline_position_rights[ $i - 1 ] );
										} ?>"/>
										<label for="inline_position_bottom_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_position_bottom_<?php echo $i; ?>" id="inline_position_bottom_<?php echo $i; ?>" value="<?php if ( empty( $inline_position_bottoms[ $i - 1 ] ) ) {
											echo '';
										} else {
											echo esc_attr( $inline_position_bottoms[ $i - 1 ] );
										} ?>"/>
										<br/>
										<label for="inline_position_left_<?php echo $i; ?>"></label>
										<input type="text" size="5" name="inline_position_left_<?php echo $i; ?>" id="inline_position_left_<?php echo $i; ?>" value="<?php if ( empty( $inline_position_lefts[ $i - 1 ] ) ) {
											echo '';
										} else {
											echo esc_attr( $inline_position_lefts[ $i - 1 ] );
										} ?>"/>
									</td>
									<?php
									/**
									 * @todo fix inline fixed and open saving
									 */
									?>
									<td align="center">
										<label for="inline_fixed_<?php echo $i; ?>"></label>
										<input type="hidden" name="inline_fixed_<?php echo $i; ?>" value="0"/>
										<input type="checkbox" name="inline_fixed_<?php echo $i; ?>" id="inline_fixed_<?php echo $i; ?>" value="1"<?php checked( '1', $inline_fixeds[ $i - 1 ] ); ?> />
									</td>
									<td align="center">
										<label for="inline_open_<?php echo $i; ?>"></label>
										<input type="hidden" name="inline_open_<?php echo $i; ?>" value="0"/>
										<input type="checkbox" name="inline_open_<?php echo $i; ?>" id="inline_open_<?php echo $i; ?>" value="1"<?php checked( 1, $inline_opens[ $i - 1 ] ); ?> />
									</td>
									<td align="center">
										<label for="inline_opacity_<?php echo $i; ?>"></label>
										<select name="inline_opacity_<?php echo $i; ?>" id="inline_opacity_<?php echo $i; ?>">
											<?php
											for ( $j = 0; $j <= 1.01; $j = $j + .05 ) { ?>
												<option value="<?php echo $j; ?>"<?php selected( $inline_opacitys[ $i - 1 ], strval( $j ) ); ?>><?php echo( $j * 100 ); ?>%</option>
												<?php
											}
											?>
										</select>
									</td>
								</tr>
								<?php
							}
						}
						?>
						</tbody>
					</table>
				</div>
				<!-- Usage -->
				<div id="ilbp-tabs-2">
					<table class="form-table">
						<tr>
							<td>
								<h4><?php _e( 'Using Inline Lightboxes', 'lightboxplus' ) ?></h4>
								<div id="lbp_for_inline_tip">
									<p><?php _e( 'Inline lightboxes are used to display content that exists on the current page.  It can be used to display a form, video or any other content that is contained on the page.  In order to display inline content using Lightbox Plus Colorbox and Colorbox you must at a minimum has the following items set: Link Class, Content ID, Width, Height, and Opacity.', 'lightboxplus' ) ?></p>
									<div class="ui-state-highlight ui-corner-all lbp_demo" style="margin-top: 20px; padding: 0 .7em;">
										<h4><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><?php _e( 'Example Inline Link', 'lightboxplus' ) ?></h4>
										<p><?php _e( 'The following example shows how to setup content for display in a lightbox.  You will need to create a link to the content that contains a class that has the same value as the Link Class for the inline lightbox you are using.', 'lightboxplus' ) ?></p>
										<pre>
											<code class="html">&lt;a class="lbp-inline-link-1" href="#"><?php _e( 'Inline HTML Link Name', 'lightboxplus' ) ?>&lt;/a></code>
										</pre>
										<h4><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><?php _e( 'Example Inline Content', 'lightboxplus' ) ?></h4>
										<p><?php _e( 'You will also need to set up a div element to contain you content.  The div element that contains the content must contains have and id with a value of the Content ID for the inline light box you are using.  Finally if you want the content to be hidden until the visitor clicks the link, wrap the content div with another div and set the value for style to display:none or assign a class that has display:none for a property', 'lightboxplus' ) ?></p>
										<?php
										$inline_usage = '';
										$inline_usage .= esc_html__( "<div style='display:none'>" ) . PHP_EOL;
										$inline_usage .= esc_html__( "    <div id='lbp-inline-href-1' style='padding: 10px;background: #fff'>" ) . PHP_EOL;
										$inline_usage .= esc_html__( "		Inline Content Goes Here", 'lightboxplus' ) . PHP_EOL;
										$inline_usage .= esc_html__( "	</div>" ) . PHP_EOL;
										$inline_usage .= esc_html__( "</div>" ) . PHP_EOL;
										echo "<pre><code class='html'>$inline_usage</code></pre>";
										?>
									</div>
							</td>
						</tr>
					</table>
				</div>
				<!-- Demo/Test -->
				<div id="ilbp-tabs-3">
					<table class="form-table">
						<tr valign="top">
							<td>
								<?php _e( 'Here you can test you settings with various different implementation of Lightbox Plus Colorbox using inline content. If they do not work try reloading the page and please check that you have the following items set: Link Class, Content ID, Width, Height, and Opacity.  You will not be able to display this example without the minimum options set.', "lightboxplus" ); ?>

								<div class="ui-state-highlight ui-corner-all lbp_demo" style="margin-top: 20px; padding: 0 .7em;">
									<h4><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><?php esc_html_e( 'Inline Demo', 'lightboxplus' ) ?></strong></h4>
									<p><?php esc_html_e( 'This demo makes use of the first inline lightbox you have set up.', "lightboxplus" ); ?>  </p>
									<p class="inline_link_test_item">
										<a class="<?php esc_attr_e( $inline_links[0] ); ?>" href="#"><?php esc_html_e( 'Inline Content Test including form', "lightboxplus" ); ?></a>
									</p>
									<h4><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><?php esc_html_e( 'Skeleton Code for demo', 'lightboxplus' ) ?></strong></h4>
									<?php
									$inline_exmaple = '';
									$inline_exmaple .= esc_html__( "<a class='$inline_links[0]' href='#'>Inline Content Test including form</a>" ) . PHP_EOL . PHP_EOL;
									$inline_exmaple .= esc_html__( "<div style='display:none'>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "	<div id='$inline_hrefs[0]' style='padding: 10px;background: #fff'>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		<h3>TITLE HERE</h3>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		<div class='form-container'>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "                    FORM HERE" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		</div>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		<p style='text-align: justify;'>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "                    TEXT HERE" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		</p>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "		<div class='clear'></div>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "	</div>" ) . PHP_EOL;
									$inline_exmaple .= esc_html__( "</div>" ) . PHP_EOL;
									echo "<pre><code class='html'>$inline_exmaple</code></pre>";
									?>
								</div>

							</td>
						</tr>
					</table>
					<!-- end testing -->
				</div>
			</div>
			<?php submit_button( 'Save all settings', 'primary', 'reset', true, array( 'id' => 'save-all-lbp-4' ) ) ?>
		</div>
	</div>
</div>
<!-- End Inline Lightbox -->