コード例 #1
0
ファイル: single.php プロジェクト: Ashleyotero/oldest-old
        if ($venue->is_flickr()) {
            $data["flickr_markup"] = $tpl->flickr($venue->flickr("venue"), false);
        }
        if ($venue->is_post()) {
            $posts = $venue->posts($venue->data["venue_category"]);
            $data["news_markup"] = $tpl->posts(array("posts" => $posts, "total" => count($posts)), false);
        }
        if ($venue->is_tour()) {
            $data["tour_markup"] = $venue->events(apply_filters("venue_events_shortcode_params", array()));
        }
        $tpl->venue($data);
        echo wt_load_script("all");
        echo wt_load_script("venue");
    }
}
if ($album) {
    if ($album->is_album()) {
        $data = $album->template();
        if ($album->is_tracks()) {
            $tracks = $album->tracks();
            $data["tracks_markup"] = $tpl->tracks(array("tracks" => $tracks, "total" => count($tracks)), false);
        }
        if ($album->is_similar()) {
            $similar_albums = $album->similar();
            $data["similar_markup"] = $tpl->similar_albums(array("albums" => $similar_albums, "total" => count($similar_albums)), false);
        }
        $tpl->album($data);
        echo wt_load_script("all");
        echo wt_load_script("album");
    }
}
コード例 #2
0
if ($code == "wordtour_tours") {
    $html .= $theme->tours($tpl, false, $theme_file_name);
    $html .= wt_load_script("all", $theme_name);
    $html .= wt_load_script("tours", $theme_name);
}
if ($code == "wordtour_venues") {
    $html .= $theme->venues($tpl, false, $theme_file_name);
    $html .= wt_load_script("all", $theme_name);
    $html .= wt_load_script("tours", $theme_name);
}
if ($code == "wordtour_albums") {
    $html .= $theme->albums($tpl, false, $theme_file_name);
    $html .= wt_load_script("all", $theme_name);
    $html .= wt_load_script("albums", $theme_name);
}
if ($code == "wordtour_bio") {
    $html .= $theme->bio($tpl, false, $theme_file_name);
    $html .= wt_load_script("all", $theme_name);
    $html .= wt_load_script("bio", $theme_name);
}
if ($code == "wordtour_videos") {
    $html .= $theme->videos_shortcode($tpl, false, $theme_file_name);
    $html .= wt_load_script("all", $theme_name);
    $html .= wt_load_script("videos", $theme_name);
}
?>