Пример #1
0
][exclude_cat]',<?php 
        echo $i;
        ?>
)" /> <span class="howto" style="float:none;"><?php 
        printf(__('Check All Level %d', 'formidable'), $i);
        ?>
</span></label>
            <?php 
    }
    ?>
            </div>
            <?php 
    if (!empty($selected_type) && $selected_type != 'data') {
        ?>
            <p class="howto check_lev1_label frm_hidden"><?php 
        _e('NOTE: if the parent is excluded, child categories will be automatically excluded.', 'formidable');
        ?>
</p>
            <?php 
    }
    FrmProFieldsHelper::get_child_checkboxes(array('field' => array('post_field' => 'post_category', 'form_id' => $values['id'], 'field_options' => array('taxonomy' => $field_vars['meta_name']), 'type' => 'checkbox'), 'field_name' => $action_control->get_field_name('post_category') . '[' . $tax_meta . '][exclude_cat]', 'value' => isset($field_vars['exclude_cat']) ? $field_vars['exclude_cat'] : 0, 'exclude' => 'no', 'hide_id' => true, 'tax_num' => $tax_meta));
    ?>
        </div>
        </div>
    </div>
<?php 
    unset($selected_type);
}
unset($tax_meta);
?>
</div>
Пример #2
0
_<?php 
        echo $field_vars['meta_name'] . $tax_key;
        ?>
" class="frm_check_all" value="0" name="options[exclude_cat_<?php 
        echo $field_vars['meta_name'] . $tax_key;
        ?>
][]" onclick="frmCheckAllLevel(this.checked,'options[post_category][<?php 
        echo $field_vars['meta_name'] . $tax_key;
        ?>
][exclude_cat]',<?php 
        echo $i;
        ?>
)" /> <span class="howto" style="float:none;"><?php 
        echo __('Check All Level', 'formidable') . ' ' . $i;
        ?>
</span></label>   
            <?php 
    }
    ?>
        <div style="border:1px solid #DFDFDF; padding:5px; overflow:auto; max-height:200px;">
           <?php 
    FrmProFieldsHelper::get_child_checkboxes(array('field' => array('post_field' => 'post_category', 'form_id' => $values['id'], 'field_options' => array('taxonomy' => $field_vars['meta_name']), 'type' => 'checkbox'), 'field_name' => 'options[post_category][' . $field_vars['meta_name'] . $tax_key . '][exclude_cat]', 'value' => isset($field_vars['exclude_cat']) ? $field_vars['exclude_cat'] : 0, 'exclude' => 'no', 'hide_id' => true));
    ?>
        </div>
        </div>  
    </div>
<?php 
    unset($selected_type);
}
?>
</div>