Beispiel #1
0
                ?>
/<?php 
                echo $this->_tpl_vars['data']['realname'];
                ?>
" />
    							<param name="quality" value="high" />
    							<param name="loop" value="false" />
    							<param name="FlashVars" value="playerMode=embedded" />
    							<param name="bgcolor" value="#000000" />
    						</object>
    					<?php 
            } else {
                ?>
    						<img 
    							<?php 
                echo get_dimensions(array('width' => $this->_tpl_vars['data']['width'], 'height' => $this->_tpl_vars['data']['height']), $this);
                ?>
  
    							src="<?php 
                echo is_array($_tmp = $_SESSION['site_bannerdir']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "|/\$|", "") : smarty_modifier_regex_replace($_tmp, "|/\$|", "");
                ?>
/<?php 
                echo $this->_tpl_vars['data']['realname'];
                ?>
" />
    					<?php 
            }
            ?>
                    <?php 
        }
        ?>
Beispiel #2
0
function label_art()
{
    $artist = get_sub_field('artist');
    $title = get_sub_field('title');
    $year = get_sub_field('year');
    $medium = get_sub_field('medium');
    $credit = get_sub_field('credit');
    $photo_credit = get_sub_field('photo_credit');
    $post_type = get_post_type();
    $dimensions = get_dimensions();
    if ($post_type == 'resident' && !$artist) {
        $artist = get_the_title();
    }
    $caption = $artist;
    if ($title && $title != ' ') {
        if ($artist) {
            $caption .= ', ';
        }
        $caption .= '<em>' . $title . '</em>';
    }
    if ($year && $year != ' ') {
        $caption .= ', ' . $year;
    }
    if ($medium && $medium != ' ') {
        $caption .= ', ' . $medium;
    }
    if ($dimensions && $dimensions != ' ') {
        $caption .= ', ' . $dimensions . '.';
    } elseif ($caption) {
        $caption .= '.';
    }
    if ($credit && $credit != ' ') {
        $caption .= ' ' . $credit . '.';
    }
    if ($photo_credit && $photo_credit != ' ') {
        $caption .= ' ' . $photo_credit . '.';
    }
    return $caption;
}