Exemplo n.º 1
0
_e('Options for links surrounding the grid items.', 'wp-ultimate-post-grid');
?>
</td>
    </tr>
    <tr class="wpupg_divider">
        <td><label for="wpupg_template"><?php 
_e('Template', 'wp-ultimate-post-grid');
?>
</label></td>
        <td>
            <select name="wpupg_template" id="wpupg_template" class="wpupg-select2">
                <?php 
$templates = WPUltimatePostGrid::addon('custom-templates')->get_mapping();
$templates = apply_filters('wpupg_meta_box_grid_templates', $templates);
foreach ($templates as $index => $template) {
    $selected = $index == $grid->template_id() ? ' selected="selected"' : '';
    echo '<option value="' . esc_attr($index) . '"' . $selected . '>' . $template . '</option>';
}
?>
            </select>
        </td>
        <td><?php 
_e('Template to be used for grid items.', 'wp-ultimate-post-grid');
?>
</td>
    </tr>
    <tr>
        <td><label for="wpupg_layout_mode"><?php 
_e('Layout Mode', 'wp-ultimate-post-grid');
?>
</label></td>