/** * show_project_blogroll function. * * @access public * @param mixed $query * @param mixed $showthumb * @param mixed $committeeTitle * @return void */ function show_project_blogroll($query, $showthumb = 'no', $committeeTitle = '') { global $ProjectType; $hasCommitteeTitle = '' == trim($committeeTitle) ? false : true; while ($query->have_posts()) { $query->the_post(); if (!$hasCommitteeTitle) { $committeeTitle = rotary_get_committee_title_from_project(get_the_id()); } $type = get_field('project_type'); ?> <div class="connectedprojectscontainer clearfix"> <div class="projectheader"> <h3><?php echo $ProjectType[$type]; ?> <br /> <span><?php echo $committeeTitle; ?> </span> </h3> </div> <div class="projectcontent"> <h2 class="projecttitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> <?php if (1 == get_field('participants_table_flag')) { echo rotary_show_project_icons(); } ?> <div class="rotary_project_date"> <?php echo rotary_show_project_dates(); ?> </div> <?php if ('yes' == $showthumb) { if (has_post_thumbnail()) { the_post_thumbnail('medium'); } } the_excerpt(); ?> <p><a href="<?php the_permalink(); ?> ">><?php echo __('Keep Reading'); ?> </a></p> </div> </div> <?php } }
</ul> <?php } ?> <ul id="project-date"> <li id="project-calendar-image"> <img class="aligncenter project-calendar" src="<?php echo get_template_directory_uri(); ?> /rotary-sass/images/project-calendar.png" alt="project calendar image" /> </li> <li id="project-date-text"> <div class="project-date"> <?php echo rotary_show_project_dates(); ?> </div> </li> </ul> <?php $location = get_field('rotary_project_location'); ?> <?php if (!empty($location)) { ?> <ul id="project-address"> <li id="project-addresstext"> <div class="location"> <h3 class="meetingsite">Address</h3>