Example #1
0
                         <fieldset id="cpi">
                             <legend><label><input type="radio" name="__wpdm_cpage_style" <?php 
checked(get_option('__wpdm_cpage_style'), 'ltpl');
?>
 value="ltpl"> Use Link Template</label></legend>



                             <div class="form-group">
                                 <label><?php 
echo __('Select Link Template:', 'wpdmpro');
?>
</label><br/>

                                     <?php 
echo WPDM\admin\menus\Templates::Dropdown(array('name' => '__wpdm_cpage_template', 'selected' => get_option('__wpdm_cpage_template')));
?>
                                 <br/>
                                 <em><?php 
echo __('Selected link template will replace the excerpt', 'wpdmpro');
?>
</em>
                             </div>
                         </fieldset>





                     </div>
                 </div>
Example #2
0
</th>
    </tr>
    </thead>

    <tfoot>
    <tr>
    <th style="" class="manage-column column-media" id="media" scope="col">Template Name</th>    
    <th style="" class="manage-column column-media" id="tid" scope="col">Template ID</th>
    <th class="manage-column column-media" id="tid" scope="col">Actions</th>
    </tr>
    </tfoot>
    <tbody class="list:post" id="the-list">

    <?php 
$ttype = isset($_GET['_type']) ? $_GET['_type'] : 'link';
$ctpls = WPDM\admin\menus\Templates::Dropdown(array('data_type' => 'ARRAY', 'type' => $ttype));
$ctemplates = maybe_unserialize(get_option("_fm_{$ttype}_templates", true));
if (is_array($ctemplates)) {
    $ctemplates = array_keys($ctemplates);
}
if (!is_array($ctemplates)) {
    $ctemplates = array();
}
foreach ($ctpls as $ctpl => $title) {
    ?>
     
    <tr valign="top" class="author-self status-inherit" id="post-8">
                <td class="column-icon media-icon" style="text-align: left;">                                     
                    <?php 
    echo $title;
    ?>
</td>
            <td><?php 
echo WPDM\admin\menus\Templates::Dropdown(array('name' => 'file[template]', 'id' => 'lnk_tpl', 'selected' => get_post_meta($post->ID, '__wpdm_template', true)));
?>

            </td>
        </tr>


        <tr id="page_template_row">
            <td><?php 
echo __('Page Template:', 'wpdmpro');
?>
</td>
            <td><?php 
echo WPDM\admin\menus\Templates::Dropdown(array('type' => 'page', 'name' => 'file[page_template]', 'id' => 'pge_tpl', 'selected' => get_post_meta($post->ID, '__wpdm_page_template', true)));
?>

            </td>
        </tr>
        <?php 
if (isset($_GET['post']) && $_GET['post'] != '') {
    ?>
            <tr>
                <td><?php 
    echo __('Master Key', 'wpdmpro');
    ?>
</td>
                <td><input type="text" readonly="readonly" value="<?php 
    echo get_post_meta($post->ID, '__wpdm_masterkey', true);
    ?>