Changeset 1641
- Timestamp:
- 05/30/2015 10:26:47 PM (9 years ago)
- Location:
- sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta
- Files:
-
- 1 added
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php
r1629 r1641 62 62 </div> 63 63 <div class="col-3"> 64 <?php 65 get_template_part( 'download-sidebar' ); 66 ?> 64 <?php get_sidebar( 'page' ); ?> 67 65 </div> 68 66 </div> … … 125 123 </div> 126 124 <?php endwhile; ?> 125 <?php if ( 'posts' === get_option( 'show_on_front' ) ) : ?> 127 126 <div class="wrapper"> 128 127 <div id="blog" class="section"> … … 143 142 144 143 <div class="col-3"> 145 <h5><?php _e( 'Blog Archives', 'rosetta' ); ?></h5> 146 <ul> 147 <?php wp_get_archives('type=monthly&limit=12'); ?> 148 </ul> 144 <?php get_sidebar( 'blog' ); ?> 149 145 </div> 150 146 </div> 151 147 </div> 148 <?php endif; ?> 152 149 </div> 153 150 <?php get_footer(); -
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php
r1631 r1641 33 33 add_action( 'after_setup_theme', 'rosetta_after_setup_theme' ); 34 34 35 /** 36 * Prints a hint, which explains that that support questions belong 37 * to the forums, on top of the comment form. 38 */ 35 39 function rosetta_comment_form_support_hint() { 36 40 printf( … … 42 46 add_action( 'comment_form_top', 'rosetta_comment_form_support_hint' ); 43 47 48 /** 49 * Show a home link for our wp_nav_menu() fallback, wp_page_menu(). 50 * 51 * @param array $args An optional array of arguments. 52 * @return array The filtered array of arguments. 53 */ 44 54 function rosetta_wp_page_menu_args( $args ) { 45 55 $args['show_home'] = true; … … 48 58 add_filter( 'wp_page_menu_args', 'rosetta_wp_page_menu_args' ); 49 59 60 /** 61 * The nav menu supports only top level menu items. 62 */ 50 63 function rosetta_admin_footer_nav_menus() { 51 64 echo '<script> wpNavMenu.options.globalMaxDepth = 0; </script>'; … … 53 66 add_action( 'admin_footer-nav-menus.php', 'rosetta_admin_footer_nav_menus' ); 54 67 68 /** 69 * Extend the default WordPress body classes. 70 * 71 * @param array $classes A list of existing body class values. 72 * @return array The filtered body class list. 73 */ 55 74 function rosetta_body_class( $classes ) { 56 75 $classes[] = 'wporg-responsive'; … … 60 79 add_filter( 'body_class', 'rosetta_body_class' ); 61 80 81 /** 82 * Checks if locale provides a custom stylesheet. 83 * 84 * @return boolean True if file exists, false if not. 85 */ 62 86 function is_locale_css() { 63 87 global $rosetta; … … 65 89 } 66 90 91 /** 92 * Returns URL to locale's custom stylesheet. 93 * 94 * @return string URL to custom stylesheet. 95 */ 67 96 function get_locale_css_url() { 68 97 global $rosetta; … … 70 99 } 71 100 72 // Makes final space a non-breaking one, to prevent orphaned word. 101 /** 102 * Makes final space a non-breaking one, to prevent orphaned word. 103 * 104 * @param string $string 105 * @return string 106 */ 73 107 function rosetta_orphan_control( $string ) { 74 108 return substr_replace( $string, ' ', strrpos( $string, ' ' ), 1 ); -
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/index.php
r1624 r1641 32 32 </div> 33 33 <div class="col-3"> 34 <div class="blog-categories"> 35 <h4><?php _e( 'Categories', 'rosetta' ); ?></h4> 36 <ul> 37 <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?> 38 </ul> 39 </div> 34 <?php get_sidebar( 'blog' ); ?> 40 35 </div> 41 36 </div> -
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/page.php
r1615 r1641 15 15 </div> 16 16 <div class="col-3"> 17 <?php get_ template_part( 'download-sidebar' ); ?>17 <?php get_sidebar( 'page' ); ?> 18 18 </div> 19 19 </div> -
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/single.php
r1624 r1641 41 41 </div> 42 42 <div class="col-3"> 43 <div class="blog-categories"> 44 <h4><?php _e( 'Categories', 'rosetta' ); ?></h4> 45 <ul> 46 <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?> 47 </ul> 48 </div> 43 <?php get_sidebar( 'blog' ); ?> 49 44 </div> 50 45 </div>
Note: See TracChangeset
for help on using the changeset viewer.