Exemple #1
0
    ?>
>
			<p>Click "Add Item" to add an item to this list.</p>
		</section>
		<ul>
			<?php 
    $x = 0;
    foreach ($field["value"] as $item) {
        ?>
			<li>
				<input type="hidden" class="bigtree_matrix_data" value="<?php 
        echo base64_encode(json_encode($item));
        ?>
" />
				<?php 
        BigTreeAdmin::drawArrayLevel(array($x), $item, $field);
        ?>
				<input type="hidden" name="<?php 
        echo $field["key"];
        ?>
[<?php 
        echo $x;
        ?>
][__internal-title]" value="<?php 
        echo BigTree::safeEncode($item["__internal-title"]);
        ?>
" />
				<input type="hidden" name="<?php 
        echo $field["key"];
        ?>
[<?php 
        ?>
"<?php 
    }
    ?>
>
				<img src="<?php 
    echo $preview_image;
    ?>
" alt="" />
			</figure>
			<input type="hidden" class="bigtree_matrix_data" value="<?php 
    echo base64_encode(json_encode($item));
    ?>
" />
			<?php 
    BigTreeAdmin::drawArrayLevel(array($current), $item);
    ?>
			<a href="#" class="icon_edit"></a>
			<a href="#" class="icon_delete"></a>
		</li>
		<?php 
    $current++;
}
?>
	</ul>
	<footer class="btx_media_gallery_footer">
		<?php 
if (!$field["options"]["disable_photos"]) {
    ?>
		<a href="#" class="add_item button" data-type="photo"><span class="icon_small icon_small_picture"></span>Add Photo</a>
		<?php 
Exemple #3
0
    ?>
>
			<p>Click "Add Item" to add an item to this list.</p>
		</section>
		<ul>
			<?php 
    $x = 0;
    foreach ($field["value"] as $item) {
        ?>
			<li>
				<input type="hidden" class="bigtree_matrix_data" value="<?php 
        echo base64_encode(json_encode($item));
        ?>
" />
				<?php 
        BigTreeAdmin::drawArrayLevel(array($x), $item);
        ?>
				<input type="hidden" name="<?php 
        echo $field["key"];
        ?>
[<?php 
        echo $x;
        ?>
][__internal-title]" value="<?php 
        echo BigTree::safeEncode($item["__internal-title"]);
        ?>
" />
				<input type="hidden" name="<?php 
        echo $field["key"];
        ?>
[<?php 
Exemple #4
0
}
?>
</label>
	<div class="contain">
		<?php 
$x = 0;
foreach ($field["value"] as $callout) {
    $type = $admin->getCallout($callout["type"]);
    ?>
		<article>
			<input type="hidden" class="callout_data" value="<?php 
    echo base64_encode(json_encode($callout));
    ?>
" />
			<?php 
    BigTreeAdmin::drawArrayLevel(array($x), $callout);
    ?>
			<h4>
				<?php 
    echo BigTree::safeEncode($callout["display_title"]);
    ?>
				<input type="hidden" name="<?php 
    echo $field["key"];
    ?>
[<?php 
    echo $x;
    ?>
][display_title]" value="<?php 
    echo BigTree::safeEncode($callout["display_title"]);
    ?>
" />
Exemple #5
0
}
?>
</label>
	<div class="contain">
		<?php 
$x = 0;
foreach ($field["value"] as $callout) {
    $type = $admin->getCallout($callout["type"]);
    ?>
		<article>
			<input type="hidden" class="callout_data" value="<?php 
    echo base64_encode(json_encode($callout));
    ?>
" />
			<?php 
    BigTreeAdmin::drawArrayLevel(array($x), $callout, $field);
    ?>
			<h4>
				<?php 
    echo BigTree::safeEncode($callout["display_title"]);
    ?>
				<input type="hidden" name="<?php 
    echo $field["key"];
    ?>
[<?php 
    echo $x;
    ?>
][display_title]" value="<?php 
    echo BigTree::safeEncode($callout["display_title"]);
    ?>
" />