- Timestamp:
- 05/24/2015 08:06:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/index.php
r1559 r1615 1 1 <?php get_header(); ?> 2 <div class="outer" id="mid-wrapper"> 3 <?php 4 $latest_release = $rosetta->rosetta->get_latest_public_release(); 5 if ( false === $latest_release && $rosetta->rosetta->get_latest_release() ) : 6 ?> 7 <div class="wrapper"> 8 <div class="section"> 9 <h3>The <?php echo $rosetta->rosetta->get_glotpress_locale()->english_name; ?> translation of WordPress is inactive</h3> 10 <p><a href="https://wordpress.org/download/">Download the English version instead</a>.</p> 11 <p>If you’re interested in translating WordPress to <?php echo $rosetta->rosetta->get_glotpress_locale()->english_name; ?>, 12 join <a href="https://make.wordpress.org/polyglots/">the Polyglots team</a> and find out how.</p> 13 </div> 2 3 <div id="pagebody"> 4 <div class="wrapper"> 5 <div class="col-9"> 6 <?php 7 if ( have_posts()) : 8 while (have_posts() ) : the_post(); ?> 9 <h2 class="fancy"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> 10 11 <div class="meta"> 12 <?php rosetta_entry_meta(); ?> 13 </div> 14 15 <div class="storycontent"> 16 <?php the_content('Read on for more »'); ?> 17 </div> 18 19 <div class="feedback"> 20 <?php comments_popup_link(); ?> 21 </div> 22 23 <?php comments_template(); ?> 24 <?php endwhile; 25 else: ?> 26 <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p> 27 <?php endif; ?> 28 29 <?php posts_nav_link(' — ', __( '« Newer Posts', 'rosetta' ), __( 'Older Posts »', 'rosetta' ) ); ?> 14 30 </div> 15 <?php endif; ?> 16 17 <div class="wrapper"> 18 <div class="section"> 19 <?php 20 query_posts('pagename=txt-welcome'); 21 while(have_posts()): 22 the_post(); 23 ?> 24 <h3><?php the_title(); ?></h3> 25 26 <?php 27 if ( $header_image = get_header_image() ) { 28 $hw = image_hwstring( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); 29 printf( 30 '<img class="shot" %ssrc="%s" alt="" />', 31 $hw, 32 esc_url( $header_image ) 33 ); 34 } 35 36 the_content(); 37 ?> 38 <?php endwhile; ?> 31 <div class="col-3"> 32 <div class="blog-categories"> 33 <h4><?php _e( 'Categories', 'rosetta' ); ?></h4> 34 <ul> 35 <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?> 36 </ul> 39 37 </div> 40 38 </div> 41 39 </div> 42 <?php 43 $latest_release = $rosetta->rosetta->get_latest_public_release(); 44 if (false !== $latest_release): 45 ?> 46 <div class="wrapper"> 47 <div class="section"> 48 <div class="main"> 49 <?php 50 query_posts('pagename=txt-download'); 51 while(have_posts()): 52 the_post(); 53 ?> 54 <h3><?php the_title(); ?></h3> 55 <?php the_content(); ?> 56 <?php endwhile; ?> 57 </div> 58 <div class="sidebar"> 59 <?php 60 require_once dirname( __FILE__ ) . '/download-sidebar.php'; 61 ?> 62 </div> 63 </div> 64 </div> 65 <?php 66 endif; # at least one no-beta release 67 $showcase = $rosetta->showcase->front(); 68 if ( $showcase ) : 69 ?> 70 <div class="wrapper"> 71 <div class="section"> 72 <h3><?php _e( 'Showcase', 'rosetta' ); ?></h3> 73 <ul id="showcase"> 74 <?php 75 foreach ( $showcase as $item ) : 76 $url = get_permalink( $item->ID ); 77 ?> 78 <li> 79 <a class="shot" href="<?php echo esc_url( $url ); ?>"> 80 <img src="<?php echo esc_url( $rosetta->screenshot_url( $url, 230 ) ); ?>" width="230" alt="screenshot" /> 81 </a> 82 <?php echo esc_html( $item->post_title ); ?> 83 <br /> 84 <a href="<?php echo esc_url( $url ); ?>"><?php _e( 'Visit the site →', 'rosetta' ); ?></a> 85 </li> 86 <?php 87 endforeach; 88 ?> 89 </ul> 90 </div> 91 </div> 92 <?php 93 elseif( current_user_can('edit_posts') ): 94 ?> 95 <div class="wrapper"> 96 <div class="section"> 97 <h3><?php _e('Showcase', 'rosetta'); ?></h3> 98 <span id="showcase-front-slate">You can <a href="<?php echo admin_url('edit.php?post_type=showcase'); ?>">add notable sites</a> in your language and screenshot and description of random three of them will show here.</span> 99 </div> 100 </div> 101 <?php 102 endif; 103 ?> 104 <?php 105 query_posts('pagename=txt-install'); 106 while(have_posts()): 107 the_post(); 108 ?> 109 <div class="wrapper"> 110 <div class="section"> 111 <h3><?php the_title(); ?></h3> 112 <?php the_content(); ?> 113 </div> 114 </div> 115 <?php endwhile; ?> 116 <div class="wrapper"> 117 <div id="blog" class="section"> 118 <div class="main"> 119 <h3><?php _e('Blog', 'rosetta'); ?></h3> 120 <?php 121 wp_reset_query(); 122 while (have_posts()) : the_post(); 123 ?> 124 <div class="post" id="post-<?php the_ID(); ?>"> 125 <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__('Permanent Link to %s', 'rosetta'), get_the_title()); ?>"><?php the_title(); ?></a></h4> 126 <h6><?php the_time(__('F j, Y', 'rosetta')); ?></h6> 127 <div class="entry"> 128 <?php the_excerpt(); ?> 129 </div> 130 </div> 131 <?php endwhile; ?> 132 </div> 40 </div> 133 41 134 <div class="sidebar"> 135 <h5><?php _e('Blog Archives', 'rosetta'); ?></h5> 136 <ul> 137 <?php wp_get_archives('type=monthly&limit=12'); ?> 138 </ul> 139 </div> 140 </div> 141 </div> 142 143 <?php get_footer(); ?> 42 <?php get_footer();
Note: See TracChangeset
for help on using the changeset viewer.