コード例 #1
0
ファイル: profile-header.php プロジェクト: UWAA/uwaa-2014
<div class="chapter-image-column" style="background-image:url('<?php 
\UWAA\View\UI::getPostFeaturedImageURL(get_post_thumbnail_id($post->ID), 'original');
?>
');"></div>
            <div class="chapter-logo">
                <?php 
$regionalTags = $UWAA->RegionalTags->getRegionalTags();
$communitySlug = new \UWAA\View\GetCommunitySlug($post, $regionalTags);
$finalSlug = $communitySlug->isCommunitiesContent();
$logo = new \UWAA\View\ChapterHeaderLogo($finalSlug);
// $logo = new \UWAA\View\ChapterHeaderLogo();
// $logo->determineSlug($post);
$logo->retriveSVG();
?>
                
            </div>
        

コード例 #2
0
ファイル: single-events.php プロジェクト: UWAA/uwaa-2014
    the_post();
    $isPartnerEvent = get_post_meta($post->ID, 'mb_isPartnerEvent', true);
    if ($isPartnerEvent) {
        $url = apply_filters('remove_cms', get_post_meta($post->ID, 'mb_alternate_link', true));
        $UWAA->Utilities->Redirect($url, true);
    }
    get_header();
    ?>
<a name="pagination-top"></a>
 



 <?php 
    $regionalTagList = $UWAA->RegionalTags->getRegionalTags();
    $communitySlug = new \UWAA\View\GetCommunitySlug($post, $regionalTagList);
    $featureImage = $UWAA->UI->returnPostFeaturedImageURL(get_post_thumbnail_id($post->ID), 'original');
    $finalSlug = $communitySlug->isCommunitiesContent();
    $noRegionalBranding = has_category('No Regional Branding');
    // if you have a featured image, put it in
    //
    if (has_category('Veterans Week')) {
        $vetsHome = get_site_url("/veterans/");
        wp_enqueue_style('google-font-cinzel');
        include locate_template('partials/vets-single-header.php');
    } elseif ($finalSlug && $featureImage && !$noRegionalBranding) {
        ?>
  <div class="uwaa-chapter-header">
    <div class="chapter-image-column" style="background-image:url('<?php 
        $UWAA->UI->getPostFeaturedImageURL(get_post_thumbnail_id($post->ID), 'chapterBrandingImage');
        ?>