コード例 #1
0
ファイル: header.php プロジェクト: mfojtik/elisinwonderland
_e('Comments RSS feed', 'sandbox');
?>
" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />

<?php 
wp_head();
?>

</head>

<body class="<?php 
sandbox_body_class();
?>
">

<div id="wrapper" class="hfeed">

	<div id="header">
		<h1 id="blog-title"><a href="<?php 
echo get_option('home');
?>
/" title="<?php 
bloginfo('name');
?>
" rel="home"><?php 
bloginfo('name');
?>
コード例 #2
0
ファイル: tag.php プロジェクト: alicam/vanilla-theme
	warrant to Australis Media Pty Ltd that your use of the Vanilla
	theme software will comply with the CC-GNU-GPL.
*/
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
    die;
}
if (CFCT_DEBUG) {
    cfct_banner(__FILE__);
}
global $vnl_width, $vnl_nesting, $vnl_template, $vnl_utility, $tpl;
$vnl_width = isset($vnl_width) ? $vnl_width : vanilla_get_option("vnl_grid_width");
$vnl_nesting = isset($vnl_nesting) ? $vnl_nesting : vanilla_get_option("vnl_grid_nesting");
$vnl_template = isset($vnl_template) ? $vnl_template : vanilla_get_option("vnl_grid_template");
$vnl_utility = isset($vnl_utility) ? $vnl_utility : vanilla_get_option("vnl_utility_nesting");
// Page-specific overides
//$vnl_width = "yui-d3";
//$vnl_nesting = "yui-gd";
//$vnl_template = "yui-t2";
//$vnl_utility = "yui-bg";
// create a new PHPTAL template object
$template = new PHPTAL(vanilla_get_template('posts/tag.html'));
$template->cleanUpCache();
$tag_title = '<a href="' . get_tag_link(intval(get_query_var('tag_id'))) . '" title="">' . single_tag_title('', false) . '</a>';
$tag_title = sprintf(__('Tag Archives: %s', 'carrington'), $tag_title);
$tpl["page"] = array("width" => $vnl_width, "nesting" => $vnl_nesting, "template" => $vnl_template, "utility" => $vnl_utility, "body_class" => sandbox_body_class(false), "bd_class" => "{$vnl_width} {$vnl_template}", "tag_title" => $tag_title, "cat_description" => $cat_description ? $cat_description : 0);
get_header();
vnl_include('loop');
vnl_include('nav-posts');
get_footer();
// Execute the PHPTAL template
vanilla_output_page($template);
コード例 #3
0
ファイル: template.php プロジェクト: Creativebq/wp-istalker
function wpi_get_body_class($browser_object = false)
{
    if (!$browser_object && !is_object($browser_object)) {
        global $Wpi;
        $browser_object = $Wpi->Browser;
    }
    $output = false;
    if (!wpi_user_func_exists('sandbox_body_class')) {
        Wpi::getFile('body_class', wpiTheme::LIB_TYPE_IMPORT);
    }
    $output = sandbox_body_class(false);
    // append client useragent data
    $ua = array();
    // new browser might not get filtered
    $ua[] = $browser_object->Browser;
    $ua[] = (string) trim(trim($browser_object->Parent, '0'), '.');
    $ua[] = $browser_object->Platform;
    $ua = array_map('sanitize_title_with_dashes', $ua);
    $ua = strtolower(join(" ", $ua));
    if (wpi_option('client_time_styles') && is_cookie(wpiTheme::CL_COOKIE_TIME)) {
        $output .= ' ' . (string) $_COOKIE[wpiTheme::CL_COOKIE_TIME];
    }
    return $output . ' ' . $ua . ' -foaf-Document';
}
コード例 #4
0
ファイル: 404.php プロジェクト: alicam/vanilla-theme
	You may use the Vanilla theme software in accordance with the
	terms of that license. You agree that you are solely responsible
	for your use of the Vanilla theme software and you represent and 
	warrant to Australis Media Pty Ltd that your use of the Vanilla
	theme software will comply with the CC-GNU-GPL.
*/
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
    die;
}
if (CFCT_DEBUG) {
    cfct_banner(__FILE__);
}
global $vnl_width, $vnl_nesting, $vnl_template, $vnl_utility, $tpl;
$vnl_width = isset($vnl_width) ? $vnl_width : vanilla_get_option("vnl_grid_width");
$vnl_nesting = isset($vnl_nesting) ? $vnl_nesting : vanilla_get_option("vnl_grid_nesting");
$vnl_template = isset($vnl_template) ? $vnl_template : vanilla_get_option("vnl_grid_template");
$vnl_utility = isset($vnl_utility) ? $vnl_utility : vanilla_get_option("vnl_utility_nesting");
// Page-specific overides
//$vnl_width = "yui-d3";
//$vnl_nesting = "yui-gd";
//$vnl_template = "yui-t2";
//$vnl_utility = "yui-bg";
// create a new PHPTAL template object
$template = new PHPTAL(vanilla_get_template('error/404.html'));
$template->cleanUpCache();
$tpl["page"] = array("base_path" => CFCT_PATH, "width" => $vnl_width, "nesting" => $vnl_nesting, "template" => $vnl_template, "utility" => $vnl_utility, "body_class" => sandbox_body_class(false), "bd_class" => $vnl_width . " " . $vnl_template);
get_header();
vnl_include('search');
get_footer();
// Execute the PHPTAL template
vanilla_output_page($template);
コード例 #5
0
ファイル: search.php プロジェクト: alicam/vanilla-theme
	theme software will comply with the CC-GNU-GPL.
*/
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
    die;
}
if (CFCT_DEBUG) {
    cfct_banner(__FILE__);
}
global $vnl_width, $vnl_nesting, $vnl_template, $vnl_utility, $tpl;
$vnl_width = isset($vnl_width) ? $vnl_width : vanilla_get_option("vnl_grid_width");
$vnl_nesting = isset($vnl_nesting) ? $vnl_nesting : vanilla_get_option("vnl_grid_nesting");
$vnl_template = isset($vnl_template) ? $vnl_template : vanilla_get_option("vnl_grid_template");
$vnl_utility = isset($vnl_utility) ? $vnl_utility : vanilla_get_option("vnl_utility_nesting");
// Page-specific overides
//$vnl_width = "yui-d3";
//$vnl_nesting = "yui-gd";
//$vnl_template = "yui-t2";
//$vnl_utility = "yui-bg";
// create a new PHPTAL template object
$template = new PHPTAL(vanilla_get_template('posts/search.html'));
$template->cleanUpCache();
$s = get_query_var('s');
$search_title = '<a href="' . get_bloginfo('url') . '/?s=' . attribute_escape($s) . '" title="">' . htmlspecialchars($s) . '</a>';
$tpl["page"] = array("base_path" => CFCT_PATH, "width" => $vnl_width, "nesting" => $vnl_nesting, "template" => $vnl_template, "utility" => $vnl_utility, "body_class" => sandbox_body_class(false), "bd_class" => $vnl_width . " " . $vnl_template, "search_title" => sprintf(__('Search Results for: %s', 'carrington'), $search_title));
get_header();
vnl_include('search');
vnl_include('loop');
vnl_include('nav-posts');
get_footer();
// Execute the PHPTAL template
vanilla_output_page($template);
コード例 #6
0
ファイル: image.php プロジェクト: alicam/vanilla-theme
// create a new PHPTAL template object
$template = new PHPTAL(vanilla_get_template('misc/image.html'));
$template->cleanUpCache();
get_header();
$four04 = 0;
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $parent_permalink = get_permalink($post->post_parent);
        $parent_title = get_the_title($post->post_parent);
        $prev_image_link = vanilla_adjacent_image_link(true);
        $next_image_link = vanilla_adjacent_image_link(false);
        $image_url = wp_get_attachment_url($post->ID);
        $image_link = wp_get_attachment_image($post->ID, 'full aligncenter');
        $image_title = get_the_title();
        $image_caption = !empty($post->post_excerpt) ? get_the_excerpt() : 0;
        $image_description = get_the_content();
        $imgmeta = wp_get_attachment_metadata($post->ID);
    }
} else {
    $four04 = 1;
}
$tpl["page"] = array("width" => $vnl_width, "nesting" => $vnl_nesting, "template" => $vnl_template, "utility" => $vnl_utility, "body_class" => sandbox_body_class(false), "bd_class" => $vnl_width . " " . $vnl_template, "parent_permalink" => $parent_permalink, "parent_title" => $parent_title, "prev_image_link" => $prev_image_link, "next_image_link" => $next_image_link, "image_url" => $image_url, "image_link" => $image_link, "image_title" => $image_title, "image_caption" => $image_caption, "image_description" => $image_description, "four04" => $four04, "exif_dimensions" => 0 != $imgmeta['width'] ? $imgmeta['width'] . " x " . $imgmeta['height'] : 0, "exif_aperture" => 0 != $imgmeta['image_meta']['aperture'] ? "f/" . $imgmeta['image_meta']['aperture'] : 0, "exif_camera" => 0 != $imgmeta['image_meta']['camera'] ? $imgmeta['image_meta']['camera'] : 0, "exif_date" => 0 != $imgmeta['image_meta']['created_timestamp'] ? date("d-m-Y H:i", $imgmeta['image_meta']['created_timestamp']) : 0, "exif_copyright" => 0 != $imgmeta['image_meta']['copyright'] ? $imgmeta['image_meta']['copyright'] : 0, "exif_focal_length" => 0 != $imgmeta['image_meta']['focal_length'] ? $imgmeta['image_meta']['focal_length'] . "mm" : 0, "exif_iso" => 0 != $imgmeta['image_meta']['iso'] ? $imgmeta['image_meta']['iso'] : 0, "exif_shutter_speed" => 0 != $imgmeta['image_meta']['shutter_speed'] ? number_format($imgmeta['image_meta']['shutter_speed'], 2) . " seconds" : 0);
get_footer();
// Execute the PHPTAL template
vanilla_output_page($template);
?>