*/
global $post;
?>
<div class="wpv-config-row <?php 
echo $class;
?>
 select-row clearfix">
	
	<div class="rtitle">
		<h4><?php 
echo $name;
?>
</h4>
		
		<?php 
wpv_description('', $desc);
?>
	</div>
	
	<div class="rcontent">
		<?php 
foreach ($selects as $id => $s) {
    ?>
			<?php 
    if (isset($s['target'])) {
        if (isset($s['options'])) {
            $s['options'] = $s['options'] + WpvConfigGenerator::get_select_target_config($s['target']);
        } else {
            $s['options'] = WpvConfigGenerator::get_select_target_config($s['target']);
        }
    }
?>
">
	<div class="rtitle">
		<?php 
if (!empty($name)) {
    ?>
			<h4><?php 
    echo $name;
    ?>
</h4>
		<?php 
}
?>
	
		<?php 
wpv_description('slider-editor', $desc);
?>
	</div>
	
	<div class="rcontent">
		<input type="text" class="regular-text new-slider-name" />
		<input type="button" class="button add-new-slider" value="<?php 
_e('Add slider', 'honeymoon');
?>
" />

		<div class="sliders">
		</div>
	</div>
</div>
echo empty($desc) ? 'no-desc' : '';
?>
">
	<div class="rtitle">
		<h4>
			<label for="<?php 
echo $id;
?>
"><?php 
echo $name;
?>
</label>
		</h4>

		<?php 
wpv_description($id, $desc);
?>
	</div>

	<div class="rcontent">
		<textarea id="<?php 
echo $id;
?>
" rows="<?php 
echo $rows;
?>
" name="<?php 
echo $id;
?>
" class="large-text code <?php 
wpv_static($value);
<div class="wpv-config-row clearfix">
	<div class="rtitle">
		<h4><?php 
echo $name;
?>
</h4>
		
		<?php 
wpv_description('import-skin', $desc);
?>
	</div>
	
	<div class="rcontent">
		<select id="import-config-available" class="static">
			<option value=""><?php 
_e('Available skins', 'church-event');
?>
</option>
		</select>
		<input type="button" id="import-config" class="button static" value="<?php 
echo $name;
?>
" />
		<input type="button" id="delete-config" class="button static" value="<?php 
_e('Delete', 'church-event');
?>
" />
		<span class="spinner" style="float:none"></span>
	</div>
</div>
$max_str = isset($max) ? "max='{$max}' " : '';
$step_str = isset($step) ? "step='{$step}' " : '';
$widths = array('full' => __('Full', 'honeymoon'), 'cell-1-2' => '1/2', 'cell-1-3' => '1/3', 'cell-1-4' => '1/4', 'cell-1-5' => '1/5', 'cell-1-6' => '1/6', 'cell-2-3' => '2/3', 'cell-3-4' => '3/4', 'cell-2-5' => '2/5', 'cell-3-5' => '3/5', 'cell-4-5' => '4/5', 'cell-5-6' => '5/6');
?>

<div class="wpv-config-row horizontal_blocks clearfix <?php 
echo $class;
?>
">
	<div class="rtitle">
		<h4><?php 
echo $name;
?>
</h4>
		<?php 
wpv_description($id_prefix, $desc);
?>
	</div>
	<div class="rcontent">
		<span>
			<input name="<?php 
echo $id_prefix;
?>
" id="<?php 
echo $id_prefix;
?>
" type="range" value="<?php 
echo $active;
?>
" <?php 
echo $min_str . $max_str . $step_str;
Exemple #6
0
/*
 * social share icons
 */
$contexts = array('post' => __('Post', 'honeymoon'), 'page' => __('Page', 'honeymoon'), 'portfolio' => __('Portfolio', 'honeymoon'), 'product' => __('Product', 'honeymoon'), 'lightbox' => __('Lightbox', 'honeymoon'), 'tribe' => __('Tribe Events', 'honeymoon'));
$networks = array('twitter' => 'https://abs.twimg.com/favicons/favicon.png', 'facebook' => 'https://www.facebook.com/favicon.ico', 'googleplus' => '//ssl.gstatic.com/s2/oz/images/faviconr2.ico', 'pinterest' => '//passets-cdn.pinterest.com/images/favicon.png');
?>

<div class="wpv-config-row social clearfix">
	<div class="rtitle">
		<h4><?php 
echo $name;
?>
</h4>

		<?php 
wpv_description('social', $desc);
?>
	</div>

	<div class="rcontent">
		<table cellspacing="5px">
			<thead>
				<th>&nbsp;</th>
				<?php 
foreach ($networks as $network => $image) {
    ?>
					<th><img src="<?php 
    echo $image;
    ?>
" alt="<?php 
    echo ucfirst($network);
<div class="wpv-config-row autofill <?php 
if (isset($class)) {
    echo $class;
}
?>
">
	<?php 
if (isset($name) && !empty($name)) {
    ?>
	<div class="rtitle">
		<h4><?php 
    echo $name;
    ?>
</h4>
		<?php 
    wpv_description("autofill-{$name}", $desc);
    ?>
	</div>
	<?php 
}
?>
	<div class="rcontent">
		<div>
			<?php 
if (!isset($name) || empty($name)) {
    ?>
				<p class="autofill-description"><?php 
    echo $desc;
    ?>
</p>
			<?php 
<div class="wpv-config-row clearfix">
	<div class="rtitle">
		<h4><?php 
echo $name;
?>
</h4>
		
		<?php 
wpv_description('export-skin', $desc);
?>
	</div>
	
	<div class="rcontent">
		<input type="hidden" id="export-config-prefix" value="<?php 
echo $prefix;
?>
" class="static" />
		<input type="text" id="export-config-name" value="" class="static" />
		<input type="button" id="export-config" class="button static" value="<?php 
echo $name;
?>
" />
		<span class="spinner" style="float:none"></span>
	</div>
</div>