コード例 #1
0
ファイル: deprecated.php プロジェクト: nxtclass/NXTClass
/**
 * {@internal Missing Short Description}}
 *
 * @since 2.1.0
 * @deprecated 2.6.0
 * @deprecated Use nxt_link_category_checklist()
 * @see nxt_link_category_checklist()
 *
 * @param unknown_type $default
 */
function dropdown_link_categories($default = 0)
{
    _deprecated_function(__FUNCTION__, '2.6', 'nxt_link_category_checklist()');
    global $link_id;
    nxt_link_category_checklist($link_id);
}
コード例 #2
0
ファイル: meta-boxes.php プロジェクト: nxtclass/NXTClass
/**
 * Display link categories form fields.
 *
 * @since 2.6.0
 *
 * @param object $link
 */
function link_categories_meta_box($link)
{
    ?>
<ul id="category-tabs" class="category-tabs">
	<li class="tabs"><a href="#categories-all"><?php 
    _e('All Categories');
    ?>
</a></li>
	<li class="hide-if-no-js"><a href="#categories-pop"><?php 
    _e('Most Used');
    ?>
</a></li>
</ul>

<div id="categories-all" class="tabs-panel">
	<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
		<?php 
    if (isset($link->link_id)) {
        nxt_link_category_checklist($link->link_id);
    } else {
        nxt_link_category_checklist();
    }
    ?>
	</ul>
</div>

<div id="categories-pop" class="tabs-panel" style="display: none;">
	<ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
		<?php 
    nxt_popular_terms_checklist('link_category');
    ?>
	</ul>
</div>

<div id="category-adder" class="nxt-hidden-children">
	<h4><a id="category-add-toggle" href="#category-add"><?php 
    _e('+ Add New Category');
    ?>
</a></h4>
	<p id="link-category-add" class="nxt-hidden-child">
		<label class="screen-reader-text" for="newcat"><?php 
    _e('+ Add New Category');
    ?>
</label>
		<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php 
    esc_attr_e('New category name');
    ?>
" aria-required="true" />
		<input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php 
    esc_attr_e('Add');
    ?>
" />
		<?php 
    nxt_nonce_field('add-link-category', '_ajax_nonce', false);
    ?>
		<span id="category-ajax-response"></span>
	</p>
</div>
<?php 
}