本文整理汇总了PHP中wp_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_footer函数的具体用法?PHP wp_footer怎么用?PHP wp_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_footer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_rendered_item
function get_rendered_item()
{
$item_id = explode('-', $_REQUEST['id']);
if (count($item_id) == 2) {
global $wp_query;
query_posts('page_id=' . $item_id[0]);
query_posts(array('p' => $item_id[0], 'post_type' => $item_id[1]));
ob_start();
wp_head();
$header = ob_get_contents();
ob_end_clean();
ob_start();
include RHC_PATH . 'templates/calendar-single-post.php';
$content = ob_get_contents();
ob_end_clean();
ob_start();
wp_footer();
$footer = ob_get_contents();
ob_end_clean();
$response = (object) array('R' => 'OK', 'MSG' => '', 'DATA' => array('body' => $content, 'footer' => $footer));
die(json_encode($response));
} else {
die(json_encode(array('R' => 'ERR', 'MSG' => __('Invalid item id', 'rhc'))));
}
}
示例2: render_footer
function render_footer()
{
$builder_link = '<a href="http://ithemes.com/purchase/builder-theme/" title="iThemes Builder">iThemes Builder</a>';
$ithemes_link = '<a href="http://ithemes.com/" title="iThemes WordPress Themes">iThemes</a>';
$wordpress_link = '<a href="http://wordpress.org">WordPress</a> & hosted by <a href="http://www.siteground.com/wordpress-hosting.htm" target="_blank">SiteGround WordPress Hosting</a>';
$footer_credit = sprintf(__('%1$s by %2$s<br />Powered by %3$s', 'it-l10n-Builder-Paige'), $builder_link, $ithemes_link, $wordpress_link);
$footer_credit = apply_filters('builder_footer_credit', $footer_credit);
?>
<div class="alignleft">
<strong><?php
bloginfo('name');
?>
</strong><br />
<?php
printf(__('Copyright © %s All Rights Reserved', 'it-l10n-Builder-Paige'), date('Y'));
?>
</div>
<div class="alignright">
<?php
echo $footer_credit;
?>
</div>
<?php
wp_footer();
}
示例3: thesis_footer
/**
* Display primary footer content.
*/
function thesis_footer()
{
echo "\t<div id=\"footer\">\n";
thesis_hook_footer();
thesis_admin_link();
wp_footer();
echo "\t</div>\n";
}
示例4: thesis_footer
/**
* Display primary footer content.
*/
function thesis_footer()
{
echo ' <div id="footer">' . "\n";
thesis_hook_footer();
thesis_admin_link();
wp_footer();
echo ' </div>' . "\n";
}
示例5: test_selector_in_footer
function test_selector_in_footer()
{
$post_id = $this->factory->post->create();
$this->go_to(get_permalink($post_id));
ob_start();
wp_footer();
$footer = ob_get_clean();
$this->assertGreaterThanOrEqual(0, strpos('<div class="emoji-reaction-selector"', $footer));
}
示例6: renderPage
public function renderPage($templateName, $templateVars = false)
{
echo $this->render('header', ChesterWPCoreDataHelpers::getBlogInfoData());
wp_head();
echo $this->render('header_close', array('siteTitleHTML' => self::renderSiteTitle()));
echo $this->render($templateName, $templateVars);
wp_footer();
echo $this->render('footer');
}
示例7: renderPage
/**
* Print head + template + footer
*
* @param string $templateName Template name to print
* @param array $templateVars Parameters to template
*/
public function renderPage($templateName, $templateVars = [])
{
// HEAD
ob_start();
wp_head();
$wpHead = ob_get_clean();
// FOOTER
ob_start();
wp_footer();
$wpFooter = ob_get_clean();
return $this->render($templateName, array_merge($templateVars, ['wp_head' => $wpHead, 'wp_footer' => $wpFooter]));
}
示例8: bizz_html_footer
function bizz_html_footer()
{
do_action('bizz_foot_grid');
#hook
do_action('bizz_foot_before');
#hook
wp_footer();
#wp #hook
do_action('bizz_foot_after');
#hook
echo "</body>\n</html>";
#END <body> and <html> tags
}
示例9: html5slidesjs
function html5slidesjs()
{
?>
<script>
function addPrettify() {
var els = document.querySelectorAll('pre');
for (var i = 0, el; el = els[i]; i++) {
if (!el.classList.contains('noprettyprint')) {
el.classList.add('prettyprint');
}
}
var el = document.createElement('script');
el.type = 'text/javascript';
el.src = '<?php
echo plugins_url('js/prettify.js', __FILE__);
?>
';
el.onload = function() {
prettyPrint();
}
document.body.appendChild(el);
};
function addGeneralStyle() {
var el = document.createElement('link');
el.rel = 'stylesheet';
el.type = 'text/css';
el.href = '/css/html5-presentation.css';
document.body.appendChild(el);
var el = document.createElement('meta');
el.name = 'viewport';
el.content = 'width=1100,height=750';
document.querySelector('head').appendChild(el);
var el = document.createElement('meta');
el.name = 'apple-mobile-web-app-capable';
el.content = 'yes';
document.querySelector('head').appendChild(el);
};
</script>
<?php
if (get_option('include-wp_footer')) {
wp_footer();
}
}
开发者ID:WPCMSNinja,项目名称:HTML5-Slideshow-Presentations-WordPress-Plugin,代码行数:49,代码来源:html5-presentation-template.php
示例10: content
function content()
{
?>
<div class="grid_12">
<div id="<?php
echo $this->get_id();
?>
" role="contentinfo">
<div id="colophon">
<div id="site-info">
<a href="<?php
echo home_url('/');
?>
" title="<?php
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home">
<?php
bloginfo('name');
?>
</a>
</div><!-- #site-info -->
<div id="site-generator">
<?php
do_action('twentyten_credits');
?>
<a href="<?php
echo esc_url(__('http://wordpress.org/', 'wordcampbase'));
?>
" title="<?php
esc_attr_e('Semantic Personal Publishing Platform', 'wordcampbase');
?>
" rel="generator"><?php
printf(__('Proudly powered by %s.', 'wordcampbase'), 'WordPress');
?>
</a>
</div><!-- #site-generator -->
</div><!-- #colophon -->
</div><!-- #footer -->
</div>
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
}
示例11: wpb_genesis_footer
function wpb_genesis_footer()
{
//genesis_structural_wrap( 'site-inner', 'close' );
//echo '</div>'; //* end .site-inner or #inner
do_action('genesis_before_footer');
do_action('genesis_footer');
do_action('genesis_after_footer');
echo '</div>';
//* end .site-container or #wrap
do_action('genesis_after');
wp_footer();
//* we need this for plugins
?>
</body>
</html>
<?php
}
示例12: process_render
function process_render($callback, $callback_arg)
{
global $wp_scripts, $wp_styles;
// initial scripts & styles (to subtract)
ob_start();
wp_head();
wp_footer();
ob_end_clean();
$initial_scripts = $wp_scripts->done;
$initial_styles = $wp_styles->done;
// actually render the shortcode, get the result, and do the resource loading again so we can subtract..
ob_start();
wp_head();
ob_end_clean();
$result = call_user_func($callback, $callback_arg);
ob_start();
wp_footer();
ob_end_clean();
// find the difference (the new resource files)
$loaded_scripts = array_diff($wp_scripts->done, $initial_scripts);
$loaded_styles = array_diff($wp_styles->done, $initial_styles);
return array('result' => $result, 'loaded_scripts' => $loaded_scripts, 'loaded_styles' => $loaded_styles);
}
示例13: op_footer
function op_footer()
{
do_action('op_footer');
//Init the scripts array
$js_scripts = array('tooltipster.min.js', 'selectnav.min.js', 'dropkick.js', 'jquery/jquery-ui-1.10.3.custom.min.js', 'jquery/jquery.sharrre-1.3.4.min.js', 'jquery/jquery.reveal.js', 'jquery/countdown.js', 'global.js');
//Init the frontend array, which will then be converted to JSON
if (!is_admin()) {
op_localize_script('front');
wp_enqueue_script('op-menus', OP_JS . 'menus.js', array());
}
//Print out script include
foreach ($js_scripts as $script) {
echo '<script type="text/javascript" src="' . OP_JS . $script . '"></script>';
}
//Print out footer scripts
op_print_footer_scripts('front');
wp_footer();
//Return (which will not allow user in), if the user does not have permissions
if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) {
return;
}
if (!get_user_option('rich_editing')) {
return;
}
//If we are previewing, run the following script
$preview = !empty($_GET['preview']) ? $_GET['preview'] : false;
echo $preview ? '
<script type="text/javascript">
jQuery(\'#TB_window\', window.parent.document).css({marginLeft: \'-\' + parseInt((1050 / 2),10) + \'px\',width:\'1050px\',height:\'600px\'});
jQuery(\'#TB_iframeContent\', window.parent.document).css({width:\'1050px\',height:\'600px\'});
</script>
' : '';
//Insert tracking scripts
$tracking = op_default_option('analytics_and_tracking');
echo !empty($tracking['google_analytics_tracking_code']) ? stripslashes($tracking['google_analytics_tracking_code']) : '';
echo !empty($tracking['sitewide_tracking_code']) ? stripslashes($tracking['sitewide_tracking_code']) : '';
}
示例14: the_wp_footer_html
/**
* Output the content for the wp_footer() method;
*/
function the_wp_footer_html()
{
wp_footer();
}
示例15: bloginfo
<div class="footer-wrapper">
<div class="footer-main">
<div class="footer-left">
<a><img src="<? bloginfo('template_url');?>/Images/logo-footer2.png" alt="" /></a>
<p>Design&create by<a href="#">www.aliot.eu</a></p>
</div>
<div class="footer-right">
<a><img src="<? bloginfo('template_url');?>/Images/footer-twitter.png" alt="" /></a>
<a><img src="<? bloginfo('template_url');?>/Images/footer-facebook.png" alt="" /></a>
</div>
</div>
</div>
</body>
<script>
$(function(){
$(window).load(function(){
$('#slide_2').liSlidik({
auto:3000,
duration: 1000
});
})
});
</script>
<? wp_footer();?>
</html>