Exemplo n.º 1
0
/**
 * Add Beans term meta.
 *
 * @since 1.0.0
 */
function beans_do_register_term_meta()
{
    // Get layout option without default for the count.
    $options = beans_get_layouts_for_options();
    // Stop here if there is less than two layouts options.
    if (count($options) < 2) {
        return;
    }
    $fields = array(array('id' => 'beans_layout', 'label' => _x('Layout', 'term meta', 'tm-beans'), 'type' => 'radio', 'default' => 'default_fallback', 'options' => beans_get_layouts_for_options(true)));
    beans_register_term_meta($fields, array('category', 'post_tag'), 'tm-beans');
}
Exemplo n.º 2
0
function dfh_portfolio_partners_meta()
{
    $option = array(array('id' => 'partner_website', 'label' => 'Website', 'type' => 'text', 'default' => ''), array('id' => 'partner_location', 'label' => 'Location', 'type' => 'text', 'default' => ''), array('id' => 'partner_role', 'label' => 'Role', 'type' => 'text', 'default' => ''), array('id' => 'partner_image', 'label' => 'Photo', 'type' => 'image', 'default' => '', 'multiple' => false));
    beans_register_term_meta($option, array('portfolio_partners'), 'beans');
}
Exemplo n.º 3
0
function tbr_designers_meta()
{
    $option = array(array('id' => 'designer_url', 'label' => 'Website', 'type' => 'text', 'default' => ''), array('id' => 'designer_location', 'label' => 'Location', 'type' => 'text', 'default' => ''), array('id' => 'designer_image', 'label' => 'Photo', 'type' => 'image', 'default' => '', 'multiple' => false));
    beans_register_term_meta($option, array('designers'), 'beans');
}