link_categories_meta_box [ WordPress Function ]
link_categories_meta_box ( $link )
| Parameters: |
|
| Defined at: |
|
Similar Functions: post_categories_meta_box, link_target_meta_box, link_advanced_meta_box, link_submit_meta_box, link_xfn_meta_box
Display link categories form fields.
Source
<?php
function link_categories_meta_box($link) {
?>
<div id="taxonomy-linkcategory" class="categorydiv">
<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) )
wp_link_category_checklist($link->link_id);
else
wp_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 wp_popular_terms_checklist('link_category'); ?>
</ul>
</div>
<div id="category-adder" class="wp-hidden-children">
<h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
<p id="link-category-add" class="wp-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 wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
<span id="category-ajax-response"></span>
</p>
</div>
</div>
<?php
}
?>
Examples [ wp-snippets.com ]
Top Google Search Results
- link_categories_meta_box - WordPress.org
/wp-admin/includes/meta-boxes.php. Description. Description | ...
phpdoc.wordpress.org - meta-boxes.php - PHP Cross Reference of WordPress Source - Yoast
link_categories_meta_box() link_target_meta_box() xfn_check() ...
xref.yoast.com - PHPXRef 0.7 : WordPress : Detail view of meta-boxes.php
link_categories_meta_box() link_target_meta_box() xfn_check() ...
phpxref.ftwr.co.uk - Fatal error : Cannot redeclare link_categories_meta_box() « zeList ...
22 mai 2010 ... Bonjour,. J'essaie d'utiliser Zelist pour intégrer un annuaire. Ma version de WP est la 2.9.2 fr couplée avec Buddypress v1.2. L'installation du ...
www.zelist.net