function sp_post_custom_box($obj, $box) { global $sp_boxes; static $sp_nonce_flag = false; if (!$sp_nonce_flag) { echo_sp_nonce(); $sp_nonce_flag = true; } foreach ($sp_boxes[$box['id']] as $sp_box) { echo field_html($sp_box); } }
function fp_post_custom_box($obj, $box) { global $fp_boxes; static $fp_nonce_flag = false; // Run once if (!$fp_nonce_flag) { echo_fp_nonce(); $fp_nonce_flag = true; } // Genrate box contents foreach ($fp_boxes[$box['id']] as $fp_box) { echo field_html($fp_box); } }
function sp_post_custom_box($obj, $box) { global $sp_boxes; static $sp_nonce_flag = false; echo '<div style="width: 95%%; margin: 10px auto 10px auto; background-color: #F9F9F9; border: 1px solid #DFDFDF; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 10px;">'; // Run once if (!$sp_nonce_flag) { echo_sp_nonce(); $sp_nonce_flag = true; } // Generate box contents foreach ($sp_boxes[$box['id']] as $sp_box) { echo field_html($sp_box); } echo '</div>'; }
</div> <div class="addform" id="thethe-slider-slideform"> <input type="hidden" name="action" value="editslide" /> <input type="hidden" name="id" value="<?php echo $_GET['id']; ?> " /> <input type="hidden" name="sid" value="<?php echo $_GET['sid']; ?> " /> <?php foreach ($g_arrSliderProperties as $title => $properties) { ?> <h3><?php echo $title; ?> </h3> <?php foreach ($properties as $propery) { echo sp_field_start(); echo field_html($propery, $arrSlide); echo sp_field_end(); } ?> <?php } ?> </div> </fieldset>
</p></div> <?php } else { ?> <div class="updated" id="message"><p><?php _e('Slider updated.'); ?> </p></div> <?php } } ?> <fieldset class="allwidth"> <legend>Main Settings</legend> <div class="addform"> <input type="hidden" name="action" value="editslider" /> <input type="hidden" name="id" value="<?php echo $_GET['id']; ?> " /> <?php set_html_post($post); foreach ($g_arrBoxes as $box) { echo sp_field_start(); echo field_html($box); echo sp_field_end(); } ?> </div> </fieldset>
<input type="hidden" name="action" value="addnewslide" /> <input type="hidden" name="id" value="<?php echo $_GET['id']; ?> " /> <?php $strSlides = get_post_meta($_GET['id'], 'slides', true); $arrSlides = is_array($arrSlides = @unserialize($strSlides)) ? $arrSlides : array(); $nCount = count($arrSlides); foreach ($g_arrSliderProperties as $title => $properties) { ?> <h3><?php echo $title; ?> </h3> <?php foreach ($properties as $propery) { echo sp_field_start(); if ($propery['name'] == 'title') { $propery['default'] = 'Slide' . ($nCount + 1); } echo field_html($propery); echo sp_field_end(); } ?> <?php } ?> </div> </fieldset>
function isense_custom_post_box($obj, $box) { global $boxes; static $nonce_flag = false; if (!$nonce_flag) { echo isense_nonce(); $nonce_flag = true; } foreach ($boxes[$box['id']] as $new_box) { echo field_html($new_box); } }