コード例 #1
0
        $term_id[$category->term_id] = $idObj->term_id;
        $catname = "Philippines";
    }
}
$the_query = new WP_Query(array("category__in" => $term_id, "posts_per_page" => 8));
?>
<span class="myriad_pro_bold_condensed sidebarheader"><?php 
echo $catname;
?>
</span>
<div class="sidetrip">
<?php 
if ($the_query->have_posts()) {
    while ($the_query->have_posts()) {
        $the_query->the_post();
        $postOtherInfo = getOtherInfo(get_the_id());
        $postRating = getPostRatings(get_the_id());
        $postImage = getImage(get_the_id(), 1);
        ?>
	<div class="sidetripcontent <?php 
        echo $style;
        ?>
">
		<div class="leftcont">
			<img width="70" height="50" src="/uploads/thumbs/<?php 
        echo $postImage->thumb;
        ?>
" alt="<?php 
        echo get_the_title();
        ?>
" />
コード例 #2
0
ファイル: single.php プロジェクト: 0x27/Philippine-Tourism
global $arrCatAll;
global $globalCatType;
global $parentCat;
global $isBlog;
global $arrCatAll;
get_header();
$globalCatType = "";
while (have_posts()) {
    the_post();
    $postID = get_the_ID();
    $activateDestinationCss = false;
    /*Get Star Ratings*/
    $starComputeFinal = getPostRatings(get_the_ID());
    /*Get Special Info*/
    $otherInfoData = getOtherInfo($postID);
    $GLOBALS['Current_Coordinates'] = $otherInfoData->google_map_coordinate != "" ? $otherInfoData->google_map_coordinate : $otherInfoData->location_address;
    $GLOBALS['GoogleMap_Type'] = $otherInfoData->google_map_coordinate != "" ? "latlang" : "";
    $GLOBALS['GoogleMap_Zoom'] = $otherInfoData->google_map_zoom_level != "" ? $otherInfoData->google_map_zoom_level : "13";
    $GLOBALS['Current_Location'] = $otherInfoData->location_address;
    $categories = get_the_category();
    $catctr = count($categories) - 1;
    $totalCat = count($categories);
    $totalCounter = 0;
    $categoryStatic = array();
    foreach ($categories as $cat) {
        $categoryStatic[$cat->name] = $cat->name;
        if (!in_array($cat->name, $arrCatAll)) {
            $finalCat = $cat->name;
        }
        if ($cat->name == "Destination") {
コード例 #3
0
    wp_reset_postdata();
}
if ($the_query->have_posts()) {
    ?>
			<div>
			<?php 
    $adcount = 0;
    while ($the_query->have_posts()) {
        $the_query->the_post();
        $adcount++;
        $postID = get_the_ID();
        $allCat = null;
        //Get Star Ratings
        $starComputeFinal = getPostRatings(get_the_ID());
        /*Get Special Info*/
        $otherInfoData = getOtherInfo(get_the_id());
        $imageListing = getImage(get_the_id(), "999");
        ?>

				<div class="searchresultBox">
					<div class="searchResultTitle">
						<div style="float:left;">
							<a href="<?php 
        the_permalink();
        ?>
" title="Visit <?php 
        echo get_the_title();
        ?>
"><?php 
        the_title();
        ?>
コード例 #4
0
<?php

include "../wp-load.php";
if (!is_user_logged_in()) {
    header("Location: /dashboard/login.php");
    exit;
}
include "dashboard.class.php";
$dashboard = new Dashboard($wpdb, $table_prefix, $current_user);
$userPosts = $dashboard->getUserPosts();
$postinfo = getPost($_GET['id']);
$otherInfo = getOtherInfo($_GET['id']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > 
<head>
    	<meta charset="utf-8">
		<title>Article Editor</title>
		<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="main styleguide" charset="utf-8"/>
		<link rel="stylesheet" href="editor/docs/style.css" type="text/css">
		
		
		
		<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
		<link rel="stylesheet" href="ckeditor/sample.css" type="text/css" media="screen" title="main styleguide" charset="utf-8"/>
		<script type="text/javascript" src="ckeditor/sample.js"></script>
		
		<script type="text/javascript" src="<?php 
bloginfo("stylesheet_directory");
?>
/js/jquery.js"></script>