Beispiel #1
0
<?php

session_start();
ob_start();
/**
 * The Header for our theme
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage portalDesign2
 * @since portalDesign2 1.0
 */
global $table_prefix;
global $wpdb;
$pages = get_current_files();
$blogname = get_option('blogname');
$blogdescription = get_option('blogdescription');
$blog = $blogname . " | " . $blogdescription;
$result = $wpdb->get_row("SELECT title" . " FROM " . $table_prefix . "settings" . " WHERE id=1");
$title = '';
if (isset($result) && count($result) > 0) {
    $portal = $result->title;
}
?>

<!DOCTYPE html>
<html>
    <head>
        <?php 
wp_head();
Beispiel #2
0
/**
 * Add the data in admin header
 * @name add_admin_head
 */
function add_admin_head()
{
    $page = get_current_files(1);
    echo '<input type="hidden" id="page" value="' . $page . '">';
}