本文整理汇总了PHP中get_header函数的典型用法代码示例。如果您正苦于以下问题:PHP get_header函数的具体用法?PHP get_header怎么用?PHP get_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_header函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$registros = count($this->sector_model->listar($filter));
$sectores = $this->sector_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($sectores) > 0) {
foreach ($sectores as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->SECTORP_Codigo;
$lista[$indice]->descripcion = $value->SECTORC_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/sector/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['titulo'] = "Listado de Sectores";
$data['nuevo'] = "Crear una nueva Sector";
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("maestros/sector_index", $data);
}
示例2: get_header
static function get_header($use_main_template = false, $name = '')
{
if ($use_main_template) {
get_header($name);
return;
}
$header = 'header-snapjobs';
if ($name) {
$header .= '-' . $name;
}
$header .= '.php';
if (file_exists($template_header = _NP_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $header)) {
if ($name) {
$template_header = str_replace('.php', '', $template_header) . '-' . $name . '.php';
}
require $template_header;
} else {
if ($name) {
$template_header = 'templates/header-' . $name . '.php';
} else {
$template_header = 'templates/header.php';
}
require $template_header;
}
}
示例3: mtm_load_wrap_header
function mtm_load_wrap_header()
{
if (mtm_load_wrap()) {
get_header();
echo '<main id="main" class="site-main" role="main">';
}
}
示例4: template
function template()
{
do_action('activate_header');
add_action('wp_head', array($this, 'do_activate_header'));
add_action('wp_head', array($this, 'wpmu_activate_stylesheet'));
get_header();
?>
<div id="content" class="widecolumn">
<?php
if (!$this->has_activation_key()) {
get_template_part($this->template_folder . '/activate', 'no-key');
} else {
$key = $this->get_activation_key();
$this->result = GFUserSignups::activate_signup($key);
if (is_wp_error($this->result)) {
get_template_part($this->template_folder . '/activate', 'error');
} else {
get_template_part($this->template_folder . '/activate', 'success');
}
}
?>
</div>
<script type="text/javascript">
var key_input = document.getElementById('key');
key_input && key_input.focus();
</script>
<?php
get_footer();
}
示例5: 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;
}
示例6: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$filter_not->persona = "0";
$filter->order_by = array("c.TIPP_Codigo" => "asc");
$registros = count($this->tipoestudio_model->listar($filter, $filter_not));
$tipoestudios = $this->tipoestudio_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($tipoestudios) > 0) {
foreach ($tipoestudios as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->TIPP_Codigo;
$lista[$indice]->nombre = $value->TIPC_Nombre;
$lista[$indice]->descripcion = $value->TIPC_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/persona/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("maestros/tipoestudio_index", $data);
}
示例7: wp_us_cities_template_redirect_intercept
function wp_us_cities_template_redirect_intercept()
{
global $wp_query;
if ($wp_query->get('location-search')) {
get_header();
echo '
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<article class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
<header class="entry-header">
<h1 class="entry-title">Location Search</h1>
</header>
<div class="entry-content">
<p>
<div class="wp-city-container">
<input type="text" name="city-term" class="wp-city-term" placeholder="City" slug="" path="' . plugin_dir_url(dirname(__FILE__)) . '">
<div class="wp-city-output">
</div>
</div>
</p>
</div>
</article>
</main><!-- .site-main -->
</div><!-- .content-area -->
';
// get_sidebar();
get_footer();
//require_once('../home.php');
exit;
} elseif ($wp_query->get('search-city')) {
wp_us_cities_search_city($wp_query->get('search-city'));
exit;
}
}
示例8: 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));
}
示例9: 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();
}
}
}
示例10: principal
public function principal()
{
if (!isset($_SESSION['login'])) {
die("Sesion terminada. <a href='" . base_url() . "'>Registrarse e ingresar.</a> ");
}
$arrmes = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$mes = date("m", time());
$ano = date("Y", time());
$dia = date("d", time());
$ver = "";
$fecha = $dia . " DE " . strtoupper($arrmes[$mes - 1]) . " DE " . $ano;
$fecha_std = $dia . "/" . $mes . "/" . $ano;
$fecha_red = $dia . $mes . $ano;
$nombreusuario = $this->session->userdata('nomper');
$codusu = $this->session->userdata('codusu');
$rolusu = $this->session->userdata('rolusu');
$filter = new stdClass();
$filter->rol = $rolusu;
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
/*Accesos*/
$data['fecha'] = $fecha;
$data['menu'] = $menu;
$filter = new stdClass();
$filter->order_by = array("ACCESOP_Codigo" => "desc");
$data['accesos'] = $this->acceso_model->listar($filter);
$data['header'] = get_header();
$data['oculto'] = form_hidden(array("serie" => "", "numero" => "", "codot" => ""));
$this->load->view("seguridad/principal", $data);
}
示例11: 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;
}
示例12: session_start
if (isset($_GET['mls'])) {
session_start();
$mlsNo = $_GET['mls'];
$_SESSION['mlsnum'] = $mlsNo;
//$location = get_site_url()."/propertyview/";
wp_redirect($location);
}
}
add_action('get_header', 'get_property_view_item');
/**
示例13: parse_header
public function parse_header()
{
ob_start();
get_header();
$raw = ob_get_clean();
$css = $this->regex_parse(array('buffer' => $raw, 'type' => 'css'));
$js = $this->regex_parse(array('buffer' => $raw, 'type' => 'js'));
$divs = $this->regex_parse(array('buffer' => $raw, 'type' => 'divs'));
return array('css' => $css, 'js' => $js, 'divs' => $divs);
}
示例14: 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();
}
示例15: 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';
}