当前位置: 首页>>代码示例>>PHP>>正文


PHP get_footer函数代码示例

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


在下文中一共展示了get_footer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mtm_load_wrap_footer

function mtm_load_wrap_footer()
{
    if (mtm_load_wrap()) {
        echo '</main>';
        get_footer();
    }
}
开发者ID:marktimemedia,项目名称:page-components-for-wordpress-themes,代码行数:7,代码来源:mtm-config.php

示例2: whitepaper_template

function whitepaper_template()
{
    remove_action('thesis_hook_header', 'thesis_default_header');
    add_action('thesis_hook_header', 'thesis_whitepaper_header');
    get_header(apply_filters('thesis_get_header', $name));
    echo '<div id="container">' . "\n";
    echo '<div id="page">' . "\n";
    thesis_header_area();
    echo '	<div id="content_box">' . "\n";
    thesis_content_column();
    echo '		<div id="sidebars">' . "\n";
    echo '			<div id="sidebar_5 class="sidebar">' . "\n";
    echo '				<ul class="sidebar_list">' . "\n";
    dynamic_sidebar(5);
    echo '				</ul>' . "\n";
    echo '			</div>' . "\n";
    // sidebar_5
    echo '		</div>' . "\n";
    // //sidebars
    echo '	</div>' . "\n";
    // content_box
    thesis_footer_area();
    echo '</div>' . "\n";
    //page
    echo '</div>' . "\n";
    //container
    get_footer(apply_filters('thesis_get_footer', $name));
}
开发者ID:robertok,项目名称:custom,代码行数:28,代码来源:wiaw_whitepapers.php

示例3: showErrorPage

function showErrorPage()
{
    get_header();
    ?>
	<div class="row">
	    <div class="col-lg-12">
			<div class="page-header">
				<h1><?php 
    echo __('Create building', 'idp-theme');
    ?>
					
					<small><?php 
    echo __('Step 3: Images', 'idp-theme');
    ?>
</small> 
				</h1>
			</div>
		</div>
	</div>
		<?php 
    idp_showAlertMessage('buildingNotFound');
    ?>

	<?php 
    get_footer();
    exit;
}
开发者ID:IDP-EUD,项目名称:idp-theme,代码行数:27,代码来源:pdf-buildingdetails.php

示例4: spyropress_get_builder_footer

/**
 * Get footer for builder templates
 */
function spyropress_get_builder_footer()
{
    global $wp_query;
    $template_id = $wp_query->queried_template_id;
    $canvas_footer = get_post_meta($template_id, 'canvas_footer', true);
    // if left blank or theme default
    if ($canvas_footer == '' || $canvas_footer == -2) {
        get_footer();
        return;
    } elseif ($canvas_footer == -1) {
        get_footer('blank');
        return;
    }
    spyropress_before_footer();
    printf('
            <!-- footer -->
            <footer id="footer">
                <div class="container">
                    %s
                </div>
            </footer>
            <!-- /footer -->', builder_render_frontend_rows($canvas_footer));
    spyropress_after_footer();
    // custom footer
    get_footer('builder');
    return;
}
开发者ID:rinodung,项目名称:myfreetheme,代码行数:30,代码来源:spyropress-builder-template.php

示例5: CancellaEmail

function CancellaEmail()
{
    global $_GET;
    global $wpdb;
    $table_email = $wpdb->prefix . "nl_email";
    if ($_GET['action'] == "delete") {
        $user_count = $wpdb->get_var("SELECT COUNT(*) FROM {$table_email} where magic_string ='{$_GET['c']}';");
        if ($user_count < 1) {
            echo "<div class=\"error\">" . __('email addresso not present or something is going wrong?!', 'sendit') . "</div>";
        } else {
            $wpdb->query("UPDATE {$table_email} set accepted='d' where magic_string = '{$_GET['c']}'");
            $table_liste = $wpdb->prefix . "nl_liste";
            $templaterow = $wpdb->get_row("SELECT * from {$table_liste} where id_lista = '{$_GET['lista']}' ");
            //utile anzi fondamentale
            $plugindir = "sendit/";
            $sendit_root = get_option('siteurl') . '/wp-content/plugins/' . $plugindir;
            /*
             * QUI potete ridisegnare il vs TEMA
             */
            get_header();
            echo '<div id=\\"content\\">';
            echo '<div id="message" class="updated fade"><p><strong>' . __("Your email address was deleted suffesfully from our mailing list!", "sendit") . '</strong></p></div>';
            echo '</div>';
            echo '</div>';
            get_footer();
        }
    }
}
开发者ID:tammia,项目名称:sendit,代码行数:28,代码来源:delete.php

示例6: get_footer

 static function get_footer($use_main_template = false, $name = '')
 {
     if ($use_main_template) {
         get_footer($name);
         return;
     }
     $footer = 'footer-snapjobs';
     if ($name) {
         $footer .= '-' . $name;
     }
     $footer .= '.php';
     if (file_exists($template_footer = _NP_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $footer)) {
         if ($name) {
             $template_footer = str_replace('.php', '', $template_footer) . '-' . $name . '.php';
         }
         require $template_footer;
     } else {
         if ($name) {
             $template_footer = 'templates/footer-' . $name . '.php';
         } else {
             $template_footer = 'templates/footer.php';
         }
         require $template_footer;
     }
 }
开发者ID:quangnpd,项目名称:jobshop_web,代码行数:25,代码来源:helper.php

示例7: function_totalcoin

function function_totalcoin($seperator, $sessionid)
{
    global $wpdb, $wpsc_cart;
    $purchase_log = $wpdb->get_row("SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `sessionid`= " . $sessionid . " LIMIT 1", ARRAY_A);
    $usersql = "SELECT `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.value,\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`name`,\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`unique_name` FROM\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "` LEFT JOIN\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "` ON\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.id =\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.`form_id` WHERE\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.`log_id`=" . $purchase_log['id'];
    $userinfo = $wpdb->get_results($usersql, ARRAY_A);
    $data = array();
    $data['sucess'] = get_option('totalcoin_url_sucess');
    $data['pending'] = get_option('totalcoin_url_pending');
    $data['before_step'] = get_option('totalcoin_url_before_step');
    $data['Email'] = get_option('totalcoin_email');
    $data['ApiKey'] = get_option('totalcoin_apikey');
    $data['Currency'] = get_option('totalcoin_currency');
    $data['Country'] = get_option('totalcoin_country');
    $data['MerchantId'] = get_option('totalcoin_merchantid');
    $data['Reference'] = $purchase_log['id'];
    $data['Site'] = 'Wordpress';
    $data['PaymentMethods'] = get_option('totalcoin_methods');
    $data['Quantity'] = 1;
    $data['Amount'] = number_format($wpsc_cart->total_price, 2, '.', '');
    $description = '';
    foreach ($wpsc_cart->cart_items as $item) {
        $description .= $item->product_name . ' - Precio por Unidad: ' . number_format($item->unit_price, 2, '.', '');
        $description .= ' - Cantidad: ' . $item->quantity . ' | ';
    }
    $description = rtrim($description, ' | ');
    $data['Description'] = $description;
    $tc = new TotalCoinAPI($data['Email'], $data['ApiKey']);
    $results = $tc->perform_checkout($data);
    if ($results['IsOk']) {
        $url = $results['Response']['URL'];
        $type_checkout = get_option('totalcoin_typecheckout');
        switch ($type_checkout) {
            case "Redirect":
                header("location: " . $url);
                break;
            case "Iframe":
                $content = '<iframe src="' . $url . '" name="TC-Checkout" width="953" height="600" frameborder="0" style="overflow:hidden"></iframe>';
                break;
            default:
                $content = '<TOTALCOIN SIMPLE BUTTON>';
                break;
        }
    } else {
        $content = 'Se ha producido un Error Interno';
    }
    $title = 'TotalCoin Checkout';
    get_header();
    $html = '<div style="position: relative; margin: 20px 0;" >';
    $html .= '<div style="margin: 0 auto; width: 80%; ">';
    $html .= '<h3>' . $title . '</h3>';
    $html .= $content;
    $html .= '</div>';
    $html .= '</div>';
    echo $html;
    get_footer();
    exit;
}
开发者ID:emaraschio,项目名称:plugin-wpecommerce,代码行数:58,代码来源:totalcoin.php

示例8: parse_footer

 public function parse_footer()
 {
     ob_start();
     get_footer();
     // wp_footer();
     // 		wp_print_scripts();
     $raw = ob_get_clean();
     return array('raw' => $raw);
 }
开发者ID:climo,项目名称:PageLines-Framework,代码行数:9,代码来源:class.integration.php

示例9: senviet_demo_template

function senviet_demo_template()
{
    get_head();
    get_nav();
    if (isset($_GET['page'])) {
        get_template_part("content-" . $_GET['page']);
    } else {
        get_template_part("content");
    }
    get_footer();
}
开发者ID:daiduong47,项目名称:HeadroomJs-Generator,代码行数:11,代码来源:functions.php

示例10: check_posttype

function check_posttype($type)
{
    // THIS FUNCTIONS CHECK IF A POSTTYPE IS ACTIVE OR NOT. THIS REDUCE ERRORS WHILE USING AN INACTIVE POSTTYPE
    if (load_option("posttype_" . $type) == "on") {
        return;
    } else {
        echo "<div class='error'><p>This Posttype is not active. Please go to the adminpanel and actived this posttype for using.</p></div>";
        get_footer();
        die;
    }
}
开发者ID:annbransom,项目名称:techishowl-wp,代码行数:11,代码来源:7league_functions.php

示例11: q21

function q21()
{
    if (defined('Q21_SHORT') && Q21_SHORT === true) {
        return;
    }
    /*this is where the magic happens, leaving it in functins for now till I find a better place for q21 to live - a class perhaps? */
    get_header();
    do_action('q21_content_start');
    do_action('q21_content_end');
    get_footer();
}
开发者ID:rfair404,项目名称:q21-theme,代码行数:11,代码来源:q21-core.php

示例12: show_page

function show_page($page)
{
    $template = "view/templates/default_template.php";
    if (file_exists($template) && is_file($template)) {
        require_once $template;
    } else {
        require_once "view/templates/default_template.php";
    }
    echo get_document_head();
    echo get_header_start();
    if (is_logged_in()) {
        echo get_logout();
    } else {
    }
    echo get_header_end();
    if (is_logged_in()) {
        echo get_menu();
    } else {
        echo get_guest_menu();
    }
    if (is_logged_in()) {
        if ($page == "startpage") {
            echo "startpage";
        } else {
            if ($page == "fileupload") {
                echo get_fileupload();
            } else {
                if ($page == "nyheter") {
                    echo get_news();
                } else {
                    if ($page == "flowing") {
                        echo get_flowing();
                    } else {
                        if ($page == "event") {
                            echo get_event();
                        } else {
                            if ($page == "profile") {
                                $user_id = 1;
                                echo get_profile($user_id);
                            } else {
                                echo get_default("");
                            }
                        }
                    }
                }
            }
        }
    } else {
        echo get_login();
    }
    echo get_footer();
    echo get_document_end();
}
开发者ID:eva-chaunm,项目名称:paraflow,代码行数:53,代码来源:page.php

示例13: crmpress

/**
 *
 * This is the theme.php file for the CRM Press theme.
 * DO NOT EDIT THIS FILE! IT WILL BE OVERRIDEN WITH FUTURE UPDATES.
 * If you wish to make customizations, please make a child theme instead.
 *
 */
function crmpress()
{
    global $prefix;
    // Add our global variable here so we don't have to call it anywhere else in our theme :)
    get_header();
    do_action('crmpress_top_section');
    do_action('crmpress_before_main_content');
    // Adds a hook before the #main-content div
    do_action('crmpress_content');
    do_action('crmpress_after_main_content');
    get_footer();
}
开发者ID:netcon-source,项目名称:CRM-Press,代码行数:19,代码来源:theme.php

示例14: render

 /**
  * Renders the views
  *
  * @access public
  * @param  String $template
  * @param  Array  $viewData
  * @return void
  */
 public function render($template)
 {
     foreach ($this->data as $key => $val) {
         ${$key} = $val;
     }
     $path = ABSPATH . Constants::DIR_VIEWS . DIRECTORY_SEPARATOR;
     get_header();
     require_once $path . 'header.php';
     require_once $path . $template . '.php';
     get_footer();
     require_once $path . 'footer.php';
 }
开发者ID:kukua,项目名称:www.kukua.cc,代码行数:20,代码来源:AbstractController.php

示例15: render

 /**
  * Render TWIG component.
  *
  * @param string $template Twig template to display
  * @param array $vars Contains all field options
  *
  * @since 3.2.4
  */
 public static function render($template, $vars)
 {
     //Define Twig loaders
     $loader = new Twig_Loader_Filesystem(array(TTO_PATH . '/Resources/views'));
     //Build Twig renderer
     $twig = new Twig_Environment($loader, array('cache' => TTO_PATH . '/../_cache'));
     //Get footer and header from WordPress
     $twig->addFunction(new Twig_SimpleFunction('getFooter', function ($file = '') {
         get_footer($file);
     }));
     $twig->addFunction(new Twig_SimpleFunction('getHeader', function ($file = '') {
         get_header($file);
     }));
     //Get permalink from WordPress
     $twig->addFunction(new Twig_SimpleFunction('get_permalink', function ($id) {
         get_permalink($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_term_link', function ($id, $type) {
         get_term_link($id, $type);
     }));
     //Get terms
     $twig->addFunction(new Twig_SimpleFunction('get_the_term_list', function ($id, $type, $before, $inside, $after) {
         get_the_term_list($id, $type, $before, $inside, $after);
     }));
     //Get author from WordPress
     $twig->addFunction(new Twig_SimpleFunction('get_the_author_meta', function ($display, $id) {
         get_the_author_meta($display, $id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_author_posts_url', function ($id) {
         get_author_posts_url($id);
     }));
     //Image
     $twig->addFunction(new Twig_SimpleFunction('has_post_thumbnail', function ($id) {
         has_post_thumbnail($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_post_thumbnail_id', function ($id) {
         get_post_thumbnail_id($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('wp_get_attachment_image_src', function ($id, $format) {
         wp_get_attachment_image_src($id, $format);
     }));
     //Make Include function
     $twig->addFunction(new Twig_SimpleFunction('includeFile', function ($file) {
         include $file;
     }));
     //Make wpEditor function
     $twig->addFunction(new Twig_SimpleFunction('wpEditor', function ($content, $editor_id, $settings = array()) {
         wp_editor($content, $editor_id, $settings);
     }));
     //Display template
     echo $twig->render($template, $vars);
 }
开发者ID:crewstyle,项目名称:TeaThemeOptions,代码行数:60,代码来源:Render.php


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