mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -484,6 +484,24 @@ jQuery(document).ready( function($) {
|
||||
updateVisibility();
|
||||
});
|
||||
|
||||
$('.edit-post-format', '#post-formats').click(function () {
|
||||
$('#post-formats-select').slideDown("normal");
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
$('.cancel-post-format', '#post-formats-select').click(function () {
|
||||
$('#post-formats-select').slideUp("normal");
|
||||
$('#post-format').val( $('#old-post-format').val() );
|
||||
$('#post-format-display').text( $('option:selected', '#post-formats-select').text() );
|
||||
$('.edit-post-format').show();
|
||||
});
|
||||
|
||||
$('.save-post-format', '#post-formats-select').click(function () {
|
||||
$('#post-formats-select').slideUp("normal");
|
||||
$('#post-format-display').text( $('option:selected', '#post-formats-select').text() );
|
||||
$('.edit-post-format').show();
|
||||
});
|
||||
|
||||
$('#timestampdiv').siblings('a.edit-timestamp').click(function() {
|
||||
if ($('#timestampdiv').is(":hidden")) {
|
||||
$('#timestampdiv').slideDown("normal");
|
||||
|
||||
Reference in New Issue
Block a user