Ticket #17198: 17672.status-quote-formats.diff
File 17672.status-quote-formats.diff, 4.3 KB (added by , 12 years ago) |
---|
-
style.css
796 796 top: 80px; 797 797 } 798 798 799 /* Aside */ 799 800 /* =Aside 801 ----------------------------------------------- */ 802 800 803 .format-aside .entry-title, 801 804 .format-aside .entry-header .comments-link { 802 805 display: none; … … 811 814 padding: 1.625em 0 0; 812 815 } 813 816 814 /* Link */ 817 818 /* =Link 819 ----------------------------------------------- */ 820 815 821 .format-link .entry-title, 816 822 .format-link .entry-header .comments-link { 817 823 display: none; … … 826 832 padding: 1.625em 0 0; 827 833 } 828 834 829 /* Gallery */ 835 836 /* =Gallery 837 ----------------------------------------------- */ 838 830 839 .format-gallery .gallery-thumb { 831 840 float: left; 832 841 display: block; 833 842 margin-right: 1.625em; 834 843 } 835 844 836 /* error404 */ 845 846 /* =Status 847 ----------------------------------------------- */ 848 849 .format-status .entry-title, 850 .format-status .entry-header .comments-link { 851 display: none; 852 } 853 .singular .format-status .entry-title { 854 display: block; 855 } 856 .format-status .entry-content { 857 padding: 0; 858 } 859 .singular .format-status .entry-content { 860 padding: 1.625em 0 0; 861 } 862 .format-status img.avatar { 863 -moz-border-radius: 3px; 864 border-radius: 3px; 865 -webkit-box-shadow: 0 1px 2px #ccc; 866 -moz-box-shadow: 0 1px 2px #ccc; 867 box-shadow: 0 1px 2px #ccc; 868 float: left; 869 margin: 4px 10px 1.625em 0; 870 padding: 0; 871 } 872 873 874 /* =Quote 875 ----------------------------------------------- */ 876 877 .format-quote blockquote { 878 color: #555; 879 font-size: 17px; 880 margin: 0; 881 } 882 883 884 /* =error404 885 ----------------------------------------------- */ 837 886 .error404 #main #searchform { 838 887 background: #f9f9f9; 839 888 border: 1px solid #ddd; -
showcase.php
87 87 'tax_query' => array( 88 88 array( 89 89 'taxonomy' => 'post_format', 90 'terms' => array( 'post-format-aside', 'post-format-link' ),90 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ), 91 91 'field' => 'slug', 92 92 'operator' => 'NOT IN', 93 93 ), -
widgets.php
12 12 * @return void 13 13 **/ 14 14 function Twenty_Eleven_Ephemera_Widget() { 15 $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside and Link posts', 'twentyeleven' ) );15 $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ) ); 16 16 $this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops ); 17 17 $this->alt_option_name = 'widget_twentyeleven_ephemera'; 18 18 … … 63 63 'tax_query' => array( 64 64 array( 65 65 'taxonomy' => 'post_format', 66 'terms' => array( 'post-format-aside', 'post-format-link' ),66 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-status', 'post-format-quote' ), 67 67 'field' => 'slug', 68 68 'operator' => 'IN', 69 69 ), … … 85 85 <ol> 86 86 <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?> 87 87 88 <?php if ( ' aside' == get_post_format( $post->ID ) ) : ?>88 <?php if ( 'link' != get_post_format( $post->ID ) ) : ?> 89 89 90 90 <li class="entry-title"> 91 91 <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a> … … 94 94 </span> 95 95 </li> 96 96 97 <?php else if ( 'link' == get_post_format( $post->ID ) ): ?>97 <?php else : ?> 98 98 99 99 <li class="entry-title"> 100 100 <?php -
functions.php
38 38 /** 39 39 * Add support for an Aside Post Format 40 40 */ 41 add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery' ) );41 add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote' ) ); 42 42 43 43 /** 44 44 * Add support for custom backgrounds