• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wp_footer函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wp_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_footer函数的具体用法?PHP wp_footer怎么用?PHP wp_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wp_footer函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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'))));
     }
 }
开发者ID:TheMysticalSock,项目名称:westmichigansymphony,代码行数:25,代码来源:class.calendar_ajax.php


示例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> &amp; 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 &copy; %s All Rights Reserved', 'it-l10n-Builder-Paige'), date('Y'));
    ?>
	</div>
	<div class="alignright">
		<?php 
    echo $footer_credit;
    ?>
	</div>
	<?php 
    wp_footer();
}
开发者ID:jimrucinski,项目名称:Vine,代码行数:25,代码来源:footer.php


示例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";
}
开发者ID:CherylMuniz,项目名称:fashion,代码行数:11,代码来源:footer.php


示例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";
}
开发者ID:billerby,项目名称:Surdeg,代码行数:11,代码来源:footer.php


示例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));
 }
开发者ID:pento,项目名称:react,代码行数:9,代码来源:test-frontend.php


示例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');
 }
开发者ID:zakirsajib,项目名称:Chester-WordPress-MVC-Theme-Framework,代码行数:9,代码来源:base_controller.php


示例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]));
 }
开发者ID:chemaclass,项目名称:knob-base,代码行数:18,代码来源:BaseController.php


示例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
}
开发者ID:loevendahl,项目名称:flexbil,代码行数:13,代码来源:frame_html.php


示例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();
    }
开发者ID:RobStino,项目名称:wordcamp-sunshine-coast,代码行数:49,代码来源:class-wcb-footer.php


示例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 
}
开发者ID:andylunsford,项目名称:genesischild,代码行数:17,代码来源:front-page.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);
 }
开发者ID:kanei,项目名称:vantuch.cz,代码行数:23,代码来源:class.wpcom-json-api-render-endpoint.php


示例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']) : '';
}
开发者ID:shahadat014,项目名称:geleyi,代码行数:37,代码来源:scripts.php


示例14: the_wp_footer_html

 /**
  * Output the content for the wp_footer() method;
  */
 function the_wp_footer_html()
 {
     wp_footer();
 }
开发者ID:wpscholar,项目名称:wplib,代码行数:7,代码来源:class-theme-base.php


示例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>
开发者ID:Harnet69,项目名称:WP-test,代码行数:25,代码来源:footer.php


示例16: premise_footer

function premise_footer()
{
    do_action('premise_before_footer');
    wp_footer();
    do_action('premise_after_footer');
}
开发者ID:juslee,项目名称:e27,代码行数:6,代码来源:template-tags.php


示例17: edd_render_receipt_in_browser

/**
 * Render Receipt in the Browser
 *
 * A link is added to the Purchase Receipt to view the email in the browser and
 * this function renders the Purchase Receipt in the browser. It overrides the
 * Purchase Receipt template and provides its only styling.
 *
 * @since 1.5
 * @author Sunny Ratilal
 */
function edd_render_receipt_in_browser()
{
    if (!isset($_GET['payment_key'])) {
        wp_die(__('Missing purchase key.', 'edd'), __('Error', 'edd'));
    }
    $key = urlencode($_GET['payment_key']);
    ob_start();
    ?>
<!DOCTYPE html>
<html lang="en">
	<title><?php 
    _e('Receipt', 'edd');
    ?>
</title>
	<meta charset="utf-8" />
	<?php 
    wp_head();
    ?>
</html>
<body class="<?php 
    echo apply_filters('edd_receipt_page_body_class', 'edd_receipt_page');
    ?>
">
	<div id="edd_receipt_wrapper">
		<?php 
    do_action('edd_render_receipt_in_browser_before');
    ?>
		<?php 
    echo do_shortcode('[edd_receipt payment_key=' . $key . ']');
    ?>
		<?php 
    do_action('edd_render_receipt_in_browser_after');
    ?>
	</div>
<?php 
    wp_footer();
    ?>
</body>
<?php 
    echo ob_get_clean();
    die;
}
开发者ID:Bragi26,项目名称:Easy-Digital-Downloads,代码行数:52,代码来源:template.php


示例18: uniqid

		<footer class="motopress-wrapper footer">
		    <div class="container">
		        <div class="row">
		            <div class="span12" data-motopress-wrapper-file="wrapper/wrapper-footer.php" data-motopress-wrapper-type="footer" data-motopress-id="<?php echo uniqid() ?>">
		                <?php get_template_part('wrapper/wrapper-footer'); ?>
		            </div>
		        </div>
		    </div>
		</footer>
		<!--End #motopress-main-->
	</div>
	<div id="back-top-wrapper" class="visible-desktop">
	    <p id="back-top">
	        <a href="#top"><span></span></a>
	    </p>
	</div>
	<?php wp_footer(); ?> <!-- this is used by many Wordpress features and for plugins to work properly -->
	<?php if(of_get_option('ga_code')) { ?>
		<script type="text/javascript">
			<?php echo stripslashes(of_get_option('ga_code')); ?>
		</script>
	  <!-- Show Google Analytics -->	
	<?php } ?>
</body>
</html>
开发者ID:kevinreilly,项目名称:mendelements.com,代码行数:25,代码来源:footer.php


示例19: footer

 /**
  * WPZOOM public footer
  */
 public static function footer()
 {
     /**
      * Call WordPress footer hook
      */
     wp_footer();
 }
开发者ID:MBerguer,项目名称:wp-demo,代码行数:10,代码来源:ui.php


示例20: has_nav_menu

						'container_id'    => null,
						'menu_class'      => 'menu-footer',
						'menu_id'         => null,
						'echo'            => true,
						'fallback_cb'     => null,
						'before'          => null,
						'after'           => null,
						'link_before'     => null,
						'link_after'      => null,
						'items_wrap'      => '<div class="%2$s"><ul>%3$s</ul></div>',
						'depth'           => 1,
						'walker'          => ( has_nav_menu( $menuLocationName ) ) ? ( new wm_widget_walker() ) : ( null )
					) );

			$class = ( is_page_template( 'page-template/construction.php' ) ) ? ( 'text-center clearfix' ) : ( 'clearfix' );

			wm_credits( $class );
			?>
		</div>
	</div></section> <!-- /bottom-wrap -->
<!-- /footer --></footer>

<?php do_action( 'wm_after_website' ); ?>

<!-- wp_footer() -->
<?php wp_footer(); //WordPress footer hook ?>
</body>

<?php if ( ! wm_option( 'general-website-author' ) ) echo '<!-- ' . wm_static_option( 'static-webdesigner' ) . ' -->'; ?>

</html>
开发者ID:unisexx,项目名称:drtooth,代码行数:31,代码来源:footer.php



注:本文中的wp_footer函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wp_functionality_constants函数代码示例发布时间:2022-05-23
下一篇:
PHP wp_find_hierarchy_loop函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap