/**
 * Does this Achievement picture need to be thumbnail sized?
 *
 * @global DPA_Achievement_Template $achievements_template Achievements template tag object
 * @return bool
 */
function dpa_get_achievement_picture_is_thumbnail()
{
    global $achievements_template;
    return apply_filters('dpa_get_achievement_picture_is_thumbnail', dpa_is_create_achievement_page() || dpa_is_directory_page() || $achievements_template->in_the_loop && (!dpa_is_achievement_edit_page() && !dpa_is_achievement_change_picture_page() && !dpa_is_achievement_delete_page() && !dpa_is_achievement_unlocked_by_page() && !dpa_is_achievement_activity_page() && !dpa_is_achievement_grant_page()));
}
Beispiel #2
0
				<?php 
        } elseif (dpa_is_achievement_delete_page()) {
            ?>
					<?php 
            dpa_load_template(array('achievements/single/delete.php'));
            ?>

				<?php 
        } elseif (dpa_is_achievement_edit_page()) {
            ?>
					<?php 
            dpa_load_template(array('achievements/single/edit.php'));
            ?>

				<?php 
        } elseif (dpa_is_achievement_grant_page()) {
            ?>
					<?php 
            dpa_load_template(array('achievements/single/grant.php'));
            ?>
				<?php 
        }
        ?>

				<?php 
        do_action('dpa_after_achievement_home_body');
        ?>
			</div><!-- #item-body -->

			<?php 
        do_action('dpa_after_achievement_home_content');