WordPress.org

Making WordPress.org

Changeset 119


Ignore:
Timestamp:
11/15/2013 04:01:19 PM (6 years ago)
Author:
Otto42
Message:

Add link to title, auto-add Learn More link. props iandunn. see #223

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/front-page.php

    r92 r119  
    88    <div class="wrapper">
    99        <h2 class="section-title"><?php _e( 'There are many different ways for you to get involved with WordPress:', 'make-wporg' ); ?></h2>
    10 
    11         <?php $sites_query = new WP_Query( 'post_type=make_site&posts_per_page=-1&order=ASC' ); ?>
     10        <?php
     11            $sites_query = new WP_Query( 'post_type=make_site&posts_per_page=-1&order=ASC' );
     12            $makesites = make_site_get_network_sites();
     13        ?>
    1214        <?php while( $sites_query->have_posts() ) : $sites_query->the_post(); ?>
     15        <?php
     16            $make_site_id = get_post_meta( $post->ID, 'make_site_id', true );
     17            $url = $makesites[$make_site_id];
     18        ?> 
    1319            <article id="site-<?php the_ID(); ?>" <?php post_class(); ?>>
    14                 <h2><?php the_title(); ?></h2>
    15                 <?php the_content(); ?>
     20                <h2>
     21                    <?php if ( $url ) : ?>
     22                        <a href="<?php echo esc_url( $url ); ?>"><?php the_title(); ?></a>
     23                    <?php else : ?>
     24                        <?php the_title(); ?>
     25                    <?php endif; ?>
     26                </h2>
     27               
     28                <div class="team-description">
     29                    <?php the_content(); ?>
     30                    <?php if ( $url ) : ?>
     31                        <p><a href="<?php echo esc_url( $url ); ?>">Learn more about <?php the_title(); ?> &raquo;</a></p>
     32                    <?php endif; ?>
     33                </div>
     34               
    1635                <?php  if ( '1' == get_post_meta( get_the_ID(), 'weekly_meeting', true ) ) : ?>
    1736                    <small>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/style.css

    r103 r119  
    228228}
    229229
    230 section.get-involved article p {
     230
     231section.get-involved article h2 a {
     232    font-weight: 600;
     233    color: #444444;
     234}
     235
     236section.get-involved article div.team-description p {
     237    display: inline;
    231238    font-size: 1em;
    232239    line-height: 1.5;
Note: See TracChangeset for help on using the changeset viewer.