當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sandbox_body_class函數代碼示例

本文整理匯總了PHP中sandbox_body_class函數的典型用法代碼示例。如果您正苦於以下問題:PHP sandbox_body_class函數的具體用法?PHP sandbox_body_class怎麽用?PHP sandbox_body_class使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了sandbox_body_class函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _e

_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');
?>
開發者ID:mfojtik,項目名稱:elisinwonderland,代碼行數:31,代碼來源:header.php

示例2: cfct_banner

	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);
開發者ID:alicam,項目名稱:vanilla-theme,代碼行數:31,代碼來源:tag.php

示例3: wpi_get_body_class

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';
}
開發者ID:Creativebq,項目名稱:wp-istalker,代碼行數:24,代碼來源:template.php

示例4: cfct_banner

	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);
開發者ID:alicam,項目名稱:vanilla-theme,代碼行數:31,代碼來源:404.php

示例5: cfct_banner

	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);
開發者ID:alicam,項目名稱:vanilla-theme,代碼行數:31,代碼來源:search.php

示例6: PHPTAL

// 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);
?>



開發者ID:alicam,項目名稱:vanilla-theme,代碼行數:27,代碼來源:image.php


注:本文中的sandbox_body_class函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。