$mb->the_field('content-area-content');
    $mb_content = html_entity_decode($mb->get_the_value(), ENT_QUOTES, 'UTF-8');
    $mb_editor_id = sanitize_key($mb->get_the_name());
    $mb_settings = array('textarea_name' => $mb->get_the_name(), 'textarea_rows' => '5');
    wp_editor($mb_content, $mb_editor_id, $mb_settings);
    ?>
               </div>
            </div>
            <?php 
    for ($i = 2; $i <= 4; $i++) {
        ?>
            <div class="cell column-<?php 
        print $i;
        ?>
 <?php 
        print get_hidden($i);
        ?>
">
                <label>Column <?php 
        print $i;
        ?>
 Width</label>
                <div class="input_container">
                    <?php 
        $mb->the_field('column-' . $i . '-area-width');
        ?>
                    <input type="text" class="small" name="<?php 
        $mb->the_name();
        ?>
" value="<?php 
        $mb->the_value();
Пример #2
0
			<?php 
        foreach ($days_sessions as $start_time => $posts) {
            $start_time = date('g:i a', $start_time);
            ?>
				<div class="session-time-block">
					<div class="session-start-time"><?php 
            echo $start_time;
            ?>
</div>			
					<ul class="session-list session-count-<?php 
            echo count($posts);
            ?>
">
					<?php 
            foreach ($posts as $post) {
                if (get_hidden() != '') {
                    continue;
                }
                setup_postdata($post);
                $av_content = get_post_meta(get_the_ID(), '_av_content');
                if ($av_content) {
                    $av_content = $av_content[0];
                }
                $session = new ONA_Session(get_the_ID());
                ?>
		                <a href="<?php 
                the_permalink();
                ?>
">
		                <?php 
                if ($session->get_session_type_name() == '') {
/**
 * <pre>skip_hidden( $name, $args )</pre>
 * 
 * Adding a Hidden field.
 * 
 * <b>Default Usage</b>
 * <code>
 * skip_hidden( 'myhiddenfield' );
 * </code>
 * This will create an automated saved hidden field.
 * 
 * <b>Parameters</b>
 * 
 * <code>
 * $name // (string) (required) The name of the field.
 * $args // (array) (optional) Values for further settings.
 * </code>
 * 
 * <b>$args Settings</b>
 * 
 * <ul>
 * 	<li>id (string) ID if the HTML Element.</li> 
 * 	<li>label  (string) Label for Element.</li> 
 * 	<li>default (string) Default Value if no Value is set before.</li>
 * 	<li>classes (string) Name of CSS Classes which will be inserted into HTML seperated by empty space.</li>
 * 	<li>before_element (string) Content before the element.</li>
 *	<li>after_element (string) Content after the element.</li>
 * 	<li>save (boolean) TRUE if value of field have to be saved in Database, FALSE if not (default TRUE).</li>
 * </ul>
 * 
 * <b>Example</b>
 * 
 * Creating a hidden field in an automatic saved form.
 * <code>
 * skip_form_start( 'myformname' );
 * 
 * $args = array(
 * 	'id' = 'myelementid',
 * 	'label' => 'Content'
 * );
 * skip_editor( 'myhiddenfield', $args );
 * 
 * skip_form_end();
 * </code>
 * 
 * Getting back the saved data.
 * <code>
 * $value = skip_value( 'myformname', 'myhiddenfield' );
 * </code>
 * @package Skip\Forms
 * @since 1.0
 * @param string $name Name of field.
 * @param array/string $args List of Arguments.
 */
function hidden($name, $args = array())
{
    echo get_hidden($name, $args, 'echo');
}