<section> <?php if (fundify_is_crowdfunding()) { $wp_query = new ATCF_Campaign_Query(array('paged' => get_query_var('page') ? get_query_var('page') : 1)); } else { $wp_query = new WP_Query(array('posts_per_page' => get_option('posts_per_page'), 'paged' => get_query_var('page') ? get_query_var('page') : 1)); } if ($wp_query->have_posts()) { ?> <?php while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <?php get_template_part('content', fundify_is_crowdfunding() ? 'campaign' : 'post'); ?> <?php } ?> <?php } else { ?> <?php get_template_part('no-results', 'index'); ?> <?php }
<div class="legal-terms"> <h3><?php _e('Legal Terms', 'fundify'); ?> </h3> <ul> <?php wp_list_pages('meta_key=legal_page&sort_column=menu_order&title_li=<h2>' . __('Poetry') . '</h2>'); //include=1149,1146& //bumbum: eren les id's de les condicions d'us, ara usen el meta_key=legal_page ?> </ul> </div> <div class="last-widget"> <?php if (fundify_is_crowdfunding()) { ?> <h3><?php _e('Get the Stats', 'fundify'); ?> </h3> <ul> <li><?php printf('<strong>%s</strong> %s', wp_count_posts('download')->publish, _n(edd_get_label_singular(), edd_get_label_plural(), wp_count_posts('download')->publish)); ?> </li> <li><?php printf(__('<strong>%s</strong> Funded', 'fundify'), edd_currency_filter(edd_format_amount(edd_get_total_earnings()))); ?> </li> </ul>