Exemple #1
0
 public function __construct()
 {
     $this->CI =& get_instance();
     //$this->CI调用框架方法
     $this->CI->load->helper(array('html', 'string', 'url'));
     $this->CI->load->model('tool/spider_model');
     if (!is_cli()) {
         echo doctype('html4-trans') . meta('Content-type', 'text/html;charset=utf-8', 'equiv');
         echo link_tag(base_url('public/image/favicon.ico'), 'shortcut icon', 'image/ico');
     }
 }
Exemple #2
0
 public function index()
 {
     $main['doctype'] = doctype('html5');
     $main['html_properties'] = config_item('html_properties');
     $main['title'] = config_item('site_title') . 'Home';
     $main['meta'] = $this->build->meta(_VIEW_DIR_);
     $main['links'] = $this->build->links(_VIEW_DIR_);
     $main['scripts'] = $this->build->scripts(_VIEW_DIR_);
     $body['navigation'] = $this->build->navigation();
     $main['body'] = $this->build->body(_VIEW_DIR_, $body);
     $this->load->view('global_main', $main);
 }
 /**
  * Sets server headers and doctype
  *
  * Also sets page mime type, based on if sent as
  * html or xhtml, and what the target browser
  * supports
  *
  * @param bool $xhtml
  * @param bool $html5
  * @return Page
  */
 private function _headers($xhtml, $html5)
 {
     $this->CI->output->set_header("Cache-Control: must-revalidate, public");
     $this->CI->output->set_header("Vary: Accept");
     $mime = "";
     //Variable for accept keyword
     $accept = !empty($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : "";
     //Predefine doctype
     $doctype_string = $html5 == TRUE ? doctype('html5') : doctype('xhtml11');
     //Predefine charset
     $charset = "UTF-8";
     //If xhtml flag is false, set html5 header
     if ($xhtml == TRUE) {
         //Check that the user agent accepts application/xhtml+xml, or if it's the W3C Validator
         if (stristr($accept, "application/xhtml+xml") || stristr($_SERVER["HTTP_USER_AGENT"], "W3C_Validator")) {
             $mime = "application/xhtml+xml";
         } else {
             if (stristr($accept, "application/xml")) {
                 $mime = "application/xml";
             } else {
                 if (stristr($accept, "text/xml")) {
                     $mime = "text/xml";
                 } else {
                     $mime = "text/html";
                     if ($html5 == FALSE) {
                         $doctype_string = doctype('html4-strict');
                     }
                 }
             }
         }
     } else {
         $mime = "text/html";
         if ($html5 == FALSE) {
             $doctype_string = doctype('html4-strict');
         }
     }
     // set the doctype according to the mime type which was determined
     if ($mime == "application/xhtml+xml" || $mime == "text/xml" || $mime == "application/xml") {
         if ($html5 == TRUE) {
             $doctype_string = '';
         }
         $doctype_string = "<?xml version='1.0' encoding='{$charset}' ?>\n" . $doctype_string . "\n<html xmlns='http://www.w3.org/1999/xhtml'" . " xml:lang='en'>";
     } else {
         $doctype_string .= "\n<html lang='en'>";
     }
     // finally, output the mime type and prolog type
     $this->CI->output->set_header("Content-Type: {$mime};charset={$charset}");
     $this->CI->output->set_header("X-UA-Compatible: chrome=1, IE=edge");
     $this->CI->output->set_output($doctype_string);
     return $this;
 }
Exemple #4
0
<?php

include_once '../include.php';
doctype();
//<title>Monster constructor</title>
$path = pathinfo($_SERVER['SCRIPT_NAME']);
$folder = $path['dirname'] . '/';
$filename = $path['basename'];
?>
<html>
<head>
	<?php 
head();
?>
	
	<link href="/_files/css/white.css" rel="stylesheet" />

<style>
	.draggable {
		 cursor:move;
	 }
	.draggable:hover {
		background:transparent url(_img/bg_20_mid_grey.png) top left repeat;
		border-radius:3px;
	}
	.resizable {}
	.img-wrap {
		display: inline-block;
	}
	.img-wrap .ui-resizable-handle {
		display: none !important;
Exemple #5
0
 /**
  * Render
  *
  * This function is for the template system,
  * it takes all the templates and renders
  * them to the browser.
  *
  * @author Chris Baines
  * @since 0.0.1
  */
 public function render($page_data = array(), $page_title, $page_template)
 {
     // See if any reports exist.
     $reports = $this->reports->count_by('zapped', NULL);
     // Build the template data array.
     $data = array('navigation' => array('links' => array(array('link' => anchor(site_url('dashboard/categories'), lang('lnk_categories'))), array('link' => anchor(site_url('dashboard/all_users'), lang('lnk_users'))), array('link' => anchor(site_url('dashboard/all_groups'), lang('lnk_groups'))), array('link' => anchor(site_url('dashboard/settings'), lang('lnk_settings'))), array('link' => anchor(site_url('dashboard/achievements'), lang('lnk_achievements')))), 'logo' => anchor(site_url(), $this->site_name, array('class' => 'navbar-brand')), 'username' => ucfirst($this->session->userdata('username')), 'logout_link' => anchor(site_url('users/logout'), lang('lnk_logout')), 'home_link' => anchor(site_url('forums'), lang('lnk_visit_site'))), 'sidebar' => array('all_users' => anchor(site_url('dashboard/all_users'), lang('lnk_users')), 'add_user' => anchor(site_url('dashboard/add_user'), lang('lnk_add_user')), 'categories' => anchor(site_url('dashboard/categories'), lang('lnk_categories')), 'reports' => empty($reports) ? anchor(site_url('dashboard/reports'), lang('lnk_reports')) : anchor(site_url('dashboard/reports'), '' . lang('lnk_reports') . ' <span class="pull-right label label-danger">' . $reports . '</span>'), 'all_groups' => anchor(site_url('dashboard/all_groups'), lang('lnk_groups')), 'add_group' => anchor(site_url('dashboard/add_group'), lang('lnk_add_group')), 'all_settings' => anchor(site_url('dashboard/settings'), lang('lnk_settings')), 'language_packs' => anchor(site_url('dashboard/language'), lang('lnk_language_packs')), 'achievements' => anchor(site_url('dashboard/achievements'), lang('lnk_achievements')), 'achievement_triggers' => anchor(site_url('dashboard/achievement_triggers'), lang('lnk_achievement_triggers')), 'permissions' => anchor(site_url('dashboard/permissions'), lang('lnk_permissions')), 'themes' => anchor(site_url('dashboard/themes'), lang('lnk_themes'))), 'footer' => array('copy_text' => 'Powered By ' . anchor('http://www.doveforums.com', 'Dove Forums') . ', &copy; 2011 - 2015.'));
     // Define the template regions.
     $data['templates'] = array('doctype' => doctype('html5'), 'theme' => $this->admin_theme->name !== 'default' ? '<link href="' . $this->admin_theme->url . '" rel="stylesheet">' : '', 'css' => array(array('link' => '<link href="' . base_url('themes/default/css/custom.css') . '" rel="stylesheet">'), array('link' => '<link href="' . base_url('themes/default/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css') . '" rel="stylesheet" type="text/css" />')), 'meta' => array(array('meta' => meta('keywords', $this->config->item('keywords')))), 'js' => array(array('script' => '<script src="' . base_url('themes/default/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js') . '" type="text/javascript"></script>'), array('script' => '<script src="' . base_url('themes/default/js/forums.js') . '"></script>')), 'title' => '' . $this->site_name . ' - ' . $page_title . '', 'navigation' => $this->parser->parse('default/sections/admin_navigation', element('navigation', $data), TRUE), 'sidebar' => $this->parser->parse('default/sections/admin_sidebar', element('sidebar', $data), TRUE), 'content' => $this->parser->parse('default/' . $page_template . '', $page_data, TRUE), 'footer' => $this->parser->parse('default/sections/footer', element('footer', $data), TRUE));
     // Send all the data to the layout file.
     $this->parser->parse('default/layout', element('templates', $data));
 }
Exemple #6
0
<?php

echo doctype('xhtml1-trans');
?>
  <head>
    <?php 
$this->view->metas();
?>
    <?php 
$this->view->title();
?>
    <?php 
$this->view->asset('css');
?>
    <?php 
echo link_tag(base_url() . 'favicon.ico', 'shortcut icon', 'image/ico');
?>
  </head>
  <body>
    <div id="wrap">
      <div id="header" class="clearfix">
        <h1 class="hidden"><?php 
echo $title;
?>
</h1>
        <div id="logo"><a href="<?php 
echo base_url();
?>
">Demo</a></div>
        <?php 
$this->view->partial('common/_nav');
Exemple #7
0
    function render()
    {
        $CI =& get_instance();
        /***************************************
         *  saving the page edit mode condition in a 
         * variable so open it in the body after that
         * **************************************/
        $editMode = $CI->vunsy->edit_mode() ? TRUE : FALSE;
        if ($CI->vunsy->section->can_view()) {
            /***************************************
             *  rendering the BEFORE page
             * i must close the edit mode before that 
             * then render it so that the container box don't 
             * display ...
             * **************************************/
            $CI->vunsy->mode = 'view';
            $before_page = new Layout();
            $before_page->get_by_info('BEFORE_PAGE_LOCKED');
            $before_page_text = $before_page->render();
            /***************************************
             *  rendering the page Head
             * without the CSS and JS
             * i have to render them after all the
             * widgets rendered to add all the widgets needed
             * js and css files
             ***************************************/
            $page_head = new Layout();
            $page_head->get_by_info('PAGE_HEAD_LOCKED');
            $page_head_text = $page_head->render();
            /*********************************************
             *  redering the page BODY content
             * here i open the edit mode so the widgets got the
             * container box and the controller buttons
             * and the admin toolbar 
             * ********************************************/
            if ($editMode) {
                $CI->vunsy->mode = 'edit';
            }
            $page_body = new Layout();
            $page_body->get_by_info('PAGE_BODY_LOCKED');
            $page_body_text = $page_body->render();
            if ($CI->vunsy->user->is_root()) {
                $page_body_text .= $CI->load->view('edit_mode/toolbar', '', TRUE);
            }
            /*********************************************
             *  redering the AFTER page content
             * i must close the edit mode variable 
             * before rendering so that the container
             * of editing doesn't rendered
             * ********************************************/
            $CI->vunsy->mode = 'view';
            $after_page = new Layout();
            $after_page->get_by_info('AFTER_PAGE_LOCKED');
            $after_page_text = $after_page->render();
            $doctype_text = doctype($CI->config->item('doctype'));
            /*********************************************************
             * display the page content
             * i sum all the page content text
             * before page + CSS + JS + head + body + after page
             * *******************************************************/
            // Rendering the page
            echo <<<EOT
{$before_page_text}
{$doctype_text}
<html xmlns="http://www.w3.org/1999/xhtml" >
\t<head>
\t<title>{$CI->config->item('site_name')} {$this->name}</title>
\t<meta http-equiv="content-type" content="text/html;charset={$CI->config->item('charset')}" />
\t<meta name="generator" content="VUNSY system" />
{$CI->vunsy->css_text()}
{$CI->vunsy->js_text()}
{$CI->vunsy->dojo_text()}
{$page_head_text}
\t</head>
\t<body class="{$CI->vunsy->dojoStyle}">
\t\t{$page_body_text}
\t</body>
</html>
{$after_page_text}
EOT;
            $CI->vunsy->js = array();
            $CI->vunsy->css = array();
            $CI->vunsy->dojo = array();
        }
        //Very long IF block for view permission
    }
        $language = $this->lang_detect->language();
    } else {
        $language = $this->config->item('language');
    }
    $this->session->set_userdata('ua_language', $language);
}
$this->lang->load('index', $language);
$this->lang->load('index', $this->session->userdata('ua_language'));
#### SET THEME
$theme = $this->input->post('go_theme');
if (empty($theme)) {
    $theme = 'goautodial.css';
}
#### LOAD HTML
$this->load->helper('html');
echo doctype('xhtml11') . "\n";
echo "<html>\n";
echo "<head>\n";
#### SET SITE TITLE
#echo "<title>GoAutoDial - Empowering The Next Generation Contact Centers</title>\n";
?>
<title>GoAdmin &reg; 3.0</title>
<link rel="shortcut icon" href="<?php 
echo $base;
?>
img/gologoico.ico" />
<?php 
#### SET META TAGS
$meta = array(array('name' => 'GoAutoDial', 'content' => 'GoAutoDial Inc. http://www.goautodial.com'), array('name' => 'description', 'content' => 'GoAutoDial'), array('name' => 'keywords', 'content' => 'dialer, predictive dialer'), array('name' => 'Content-type', 'content' => 'application/xhtml+xml; charset=utf-8; charset=utf-8', 'type' => 'equiv'));
echo meta($meta) . "\n";
#### SET SITE ICONS
Exemple #9
0
 public function html_helper()
 {
     $this->load->helper('html');
     echo doctype('html5');
     echo meta('description', 'My Great site');
     // Generates:  <meta name="description" content="My Great Site" />
     echo meta('Content-type', 'text/html; charset=utf-8', 'equiv');
     // Note the third parameter.  Can be "equiv" or "name"
     // Generates:  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     echo meta(array('name' => 'robots', 'content' => 'no-cache'));
     // Generates:  <meta name="robots" content="no-cache" />
     $meta = array(array('name' => 'robots', 'content' => 'no-cache'), array('name' => 'description', 'content' => 'My Great Site'), array('name' => 'keywords', 'content' => 'love, passion, intrigue, deception'), array('name' => 'robots', 'content' => 'no-cache'), array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'));
     echo meta($meta);
     echo link_tag('css/mystyles.css');
     echo link_tag('favicon.ico', 'shortcut icon', 'image/ico');
     echo link_tag('feed', 'alternate', 'application/rss+xml', 'My RSS Feed');
     $link = array('href' => 'css/printer.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'print');
     echo link_tag($link);
     echo heading('Welcome!', 3);
     echo heading('Welcome!', 3, 'class="pink"');
     echo heading('How are you?', 4, array('id' => 'question', 'class' => 'green'));
     echo "<br>";
     echo img('images/picture.jpg');
     echo img('images/picture.jpg', TRUE);
     $image_properties = array('src' => 'images/picture.jpg', 'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time', 'class' => 'post_images', 'width' => '200', 'height' => '200', 'title' => 'That was quite a night', 'rel' => 'lightbox');
     img($image_properties);
     $list = array('red', 'blue', 'green', 'yellow');
     $attributes = array('class' => 'boldlist', 'id' => 'mylist');
     echo ul($list, $attributes);
     $attributes = array('class' => 'boldlist', 'id' => 'mylist');
     $list = array('colors' => array('red', 'blue', 'green'), 'shapes' => array('round', 'square', 'circles' => array('ellipse', 'oval', 'sphere')), 'moods' => array('happy', 'upset' => array('defeated' => array('dejected', 'disheartened', 'depressed'), 'annoyed', 'cross', 'angry')));
     echo ul($list, $attributes);
     echo br(3);
     echo nbs(10);
     echo br(3);
 }
<?php echo doctype('html5');?>
<!DOCTYPE html>
<head>
	<title>SIASSM</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/assets/css/materialize.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/assets/fa/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/assets/css/index.css">
</head>
<body>
    <div class="head row yellow darken-2">
    	<div class="col s4 m4">
      <a href="#" class=""><img src="<?php echo base_url();?>/assets/images/icon-logo.png" class="logo"></a>
  </div>
  <div class="col s8 m8">
      <p class="right">LOGGED IN BY <span style="color:black"><?php echo $this->session->logged_in['username'];?></span>
      <?php echo anchor('login/empty_login', 'Logout', 'class="btn-logout waves-effect waves-light btn blue lighten-3"');?></p>
    </div>
</div>
Exemple #11
0
<?php

echo doctype('xhtml1-trans') . "\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
echo meta('Content-type', 'text/html; charset=iso-8859-1', 'equiv') . "\n";
?>


<title>Bolivar International</title>
<?php 
echo link_tag('css/estilos_home.css') . "\n";
echo link_tag('css/sexyalertbox.css') . "\n";
echo link_tag('css/jquery.lightbox-0.5.css') . "\n";
?>
<script type="text/javascript" src="<?php 
echo base_url();
?>
js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="<?php 
echo base_url();
?>
js/height_page.js"></script>
<script type="text/javascript" src="<?php 
echo base_url();
?>
js/loadImage2.js"></script>
  <script type="text/javascript" src="<?php 
echo base_url();
Exemple #12
0
        if (preg_match('/jpg|jpeg$/i', $e)) {
            $ee = rawurlencode($e);
            //			print("<div class='image'><a target='view' href='".script_name()."?show=$ee'><img src='".php_self()."?thumb=$ee' alt='$e' /><br />$e</a></div>");
            print "<p><a target='view' href='" . script_name() . "?show={$ee}'>" . preg_replace('/.jpeg$|.jpg$/i', '', $e) . "</a></p>";
        } elseif (is_dir($n . '/' . $e) and file_exists($n . '/' . $e . '/index.php')) {
            print "<p><a href='../{$e}/index.php/index-frame'>{$e}</a></p>";
        } elseif (is_dir($n . '/' . $e)) {
            print "<p><a href='../{$e}/'>{$e}</a></p>";
        }
    }
    ?>
	</body>
</html>
	<?php 
} elseif ($_SERVER['PATH_INFO'] == '/view-frame') {
    print doctype("XHTML/1.0") . "\n";
    ?>
<html>
	<head><title></title>
		<meta http-equiv='Content-type' value='text/html; charset=UTF-8' />
		<?php 
    if (STYLESHEET_BASE) {
        $ss = STYLESHEET_BASE . "/style.css";
        print "<link rel='StyleSheet' href='{$ss}' type='text/css'/>";
    }
    ?>
	</head>
	<body><?php 
    $text = @join('', @file('main.txt'));
    print wiki_render($text);
    ?>
Exemple #13
0
 public function setDocType($doctype = '')
 {
     $this->_head_tags['doctype'] = doctype($doctype) . PHP_EOL;
 }
Exemple #14
0
 /**
  *	Generates the html tag with its content
  *
  *	@return string
  *	@access public
  */
 function generate()
 {
     if (!is_null($this->_oDoc)) {
         $this->_sDoc = doctype();
         $this->_sDoc .= $this->_oDoc->generate();
         return $this->_sDoc;
     } else {
         show_error('You must use the <big>doc</big> method before using <big>output</big> or <big>generate</big> methods', 500);
     }
 }
<?php echo doctype('html4-trans'); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><?php echo $titulo ?></title>
		<?php
			echo link_tag('externalfiles/css/administracao.css');
		
			$meta = array(
			        array('name' => 'robots', 'content' => 'NOFOLLOW, NOINDEX'),
			        array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv')
			);
			echo meta($meta);
			?>
			
			<script type="text/javascript" 
					src="<?php echo base_url(); ?>externalfiles/js/jquery-1.5.1.min.js">
					</script>	
	</head>

	<body>
Exemple #16
0
 function render()
 {
     // getting the page itself
     $CI =& get_instance();
     $p = $this->page;
     if (isset($this->pages->{$p})) {
         $page_text = $CI->load->view($this->view_folder . $this->pages->{$p}, '', TRUE);
     } else {
         $page_text = $CI->load->view($this->view_folder . $p, '', TRUE);
     }
     $toolbar_text = $this->show_toolbar ? $this->toolbar() : "";
     $title_text = $this->show_title ? $this->title() : "";
     if (!$this->can_view()) {
         show_error('Access denied');
     }
     $OUTPUT = doctype("XHTML 1.0 Strict");
     $OUTPUT .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" >\n" . "<head>\n" . "\t<title>" . $this->name . " " . $this->page . "</title>\n" . "\t<meta http-equiv=\"content-type\" content=\"text/html;charset=" . "UTF-8" . "\" />\n" . "\t<meta name=\"generator\" content=\"VUNSY system\" />\n" . $this->css_text() . $this->js_text() . $this->dojo_text() . "\n</head>" . "\n<body style=\"font-size: 12px\" class=\"{$CI->vunsy->dojoStyle} ui-helper-reset\">" . $toolbar_text . "\n<div class=\"ui-widget  ui-corner-all\" style=\"margin:10px;\">" . $title_text . $this->error_text() . $this->info_text() . "\n<div class=\"ui-widget-content  ui-corner-all\" style=\"padding:10px;\" >" . $page_text . "\n</div>" . "\n</div>" . "\n</body>" . "\n</html>";
     echo $OUTPUT;
 }
Exemple #17
0
<?php

echo doctype('html');
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php 
echo $title;
?>
</title>
<?php 
echo meta('Content-type', 'text/html; charset=utf-8', 'equiv');
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php 
//<!-- Core CSS - Include with every page -->
$style = array('href' => base_url() . 'assets/css/bootstrap.min.css', 'rel' => 'stylesheet', 'type' => 'text/css');
$font = array('href' => base_url() . 'assets/font-awesome/css/font-awesome.css', 'rel' => 'stylesheet', 'type' => 'text/css');
//<!-- Page-Level Plugin CSS - Dashboard -->
$morrischart = array('href' => base_url() . 'assets/css/plugins/morris/morris-0.4.3.min.css', 'rel' => 'stylesheet', 'type' => 'text/css');
$timeline = array('href' => base_url() . 'assets/css/plugins/timeline/timeline.css', 'rel' => 'stylesheet', 'type' => 'text/css');
// <!-- Page-Level Plugin CSS - Tables -->
$datatable = array('href' => base_url() . 'assets/css/plugins/dataTables/dataTables.bootstrap.css', 'rel' => 'stylesheet', 'type' => 'text/css');
// <!-- SB Admin CSS - Include with every page -->
$sbadmin = array('href' => base_url() . 'assets/css/sb-admin.css', 'rel' => 'stylesheet', 'type' => 'text/css');
echo link_tag($style);
echo link_tag($font);
echo link_tag($timeline);
echo link_tag($datatable);
echo link_tag($sbadmin);
?>
Exemple #18
0
 function codeBuilder()
 {
     $links[] = script(["src" => "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"]);
     $links[] = script(["src" => "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"]);
     $links[] = alink(["rel" => "stylesheet", "href" => "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css"]);
     $content = $this->ajaxHandler("", "", "ajaxCode", "", "post", false);
     $content .= script("\n        function loadFileCode (aFileName) {\n            ajaxCode ('/cody/loadFile', 'codeArea', {fileName: aFileName});\n        }\n        ");
     $content .= $this->getFileExplorer();
     $content .= div(["id" => "codeArea"], $this->getCodeWindow("1", file_get_contents("index.php")));
     $html = shape(doctype(), html(head(meta(["charset" => "UTF-8"]), title("Code- Online Developer Editor"), $links), body($content)));
     return $html;
 }
<?php

echo doctype("html5");
?>
<html class="white-bg-login" lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title>Sign in</title>

    <!-- bootstrap 3.0.2 -->
    <link href="<?php 
echo base_url('assets/bootstrap/bootstrap.min.css');
?>
" rel="stylesheet"  type="text/css">
    <!-- font Awesome -->
    <link href="<?php 
echo base_url('assets/fonts/font-awesome.css');
?>
" rel="stylesheet"  type="text/css">
    <!-- Style -->
    <link href="<?php 
echo base_url('assets/inilabs/style.css');
?>
" rel="stylesheet"  type="text/css">
    <!-- iNilabs css -->
    <link href="<?php 
echo base_url('assets/inilabs/inilabs.css');
?>
" rel="stylesheet"  type="text/css">
<?php

echo doctype('html5') . "\n";
?>
<html lang="ko">
<head>
	<?php 
echo meta($meta);
?>
	<title><?php 
echo $title_for_layout;
?>
</title>
	<link href="/images/favicon.ico" type="image/x-icon" rel="shortcut icon"/>	
	<?php 
echo $style_for_layout;
meta_tags(array('general' => true, 'og' => true, 'twitter' => true, 'robot' => true), $common_data['meta_title'], $common_data['meta_description']);
?>
	<?php 
if (isset($data['tags'])) {
    ?>
	<meta content="<?php 
    echo tag_restore($data['tags']);
    ?>
" name="keywords" />
	<?php 
} else {
    ?>
	<meta content="정종호,웹프로그래머,웹표준,퍼블리셔,웹개발,리눅스,html,html5,javascript,php,ruby,rails,레일즈,퍼블리싱,publishing,잠자는사자,sl,sleepinglion,sleeping-lion" name="keywords" />
	<?php 
}
Exemple #21
0
<?php

echo doctype('html4-trans');
?>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
		<link type="text/css" rel="stylesheet" href="<?php 
echo base_url();
?>
/assets/css/toolbar.css" />
		<title>:: <?php 
echo $this->config->item('titulo', 'titles');
?>
::</title>
		<style type="text/css">
			a{color:#4D4D4D;text-decoration:none}
			body{font-size:9pt; font-family: arial; margin:0px;padding:0px}
			
			.control_panel{ list-style-image:none; list-style-position:outside; list-style-type:none; margin:0; padding:0; width:700px;}
			.control_panel li{float: left;margin:10px}
			.control_panel a {
				color:#46912F;
				display:block;
				font-weight:bold;
				height:77px;
				padding-left:70px;
				padding-top:15px;
				text-decoration:none;
				width:90px;
			}
Exemple #22
0
<?php

echo doctype('html5');
?>
<html>
<head>

    <?php 
$this->load->view('templates/admin/partials/login_html_head');
?>

</head>

<body class="gray-bg">

    <div class="middle-box text-center animated fadeInDown">
        <h1>500</h1>
        <h3 class="font-bold">Internal Server Error</h3>

        <div class="error-desc">
            <p>
                The server encountered something unexpected that didn't allow it to complete the request. We apologize.
            </p>
            <p>
                You can go back to main page: 
            </p>
            <a class="btn btn-primary btn-rounded" href="<?php 
echo site_url('dashboard');
?>
"><i class="fa fa-th-large"></i> Dashboard</a>
        </div>
Exemple #23
0
    $action = 'reply';
} elseif (isset($_GET['as'])) {
    $action = 'view';
} elseif (!$QUERY_STRING) {
    $action = 'view';
} else {
    die("Invalid action.  Try again, please. <br />{$QUERY_STRING}");
}
if (WIKI_LOGINS and (isset($_COOKIE['login']) and $_COOKIE['login'] == 'true' or isset($_SERVER['PHP_AUTH_USER']) and $_SERVER['PHP_AUTH_USER'] != '')) {
    login_do_http_auth();
    if (!is_logged_in()) {
        http_401();
        while (ob_get_level()) {
            ob_end_clean();
        }
        print doctype('XHTML/1.0') . html(head(title("Log In Cancelled")) . body("Go to the <a href='" . $_SERVER['SCRIPT_NAME'] . "?logout'>Logout\n\t\t\t\tpage</a> to not log in."));
        exit;
    } else {
        //$s = ob_get_contents(); ob_end_clean();
        //ob_start("ob_userpref");
        //print($s);
    }
    header("Cache-control: private");
    session_cache_limiter("private_no_expire");
} else {
    header("Cache-control: public");
    session_cache_limiter("public");
}
if (get_magic_quotes_gpc()) {
    $PATH_INFO = stripslashes($PATH_INFO);
    $_SERVER['PHP_SELF'] = stripslashes($_SERVER['PHP_SELF']);
<?php

echo doctype('xhtml11');
?>

<html>
<head>
	<title><?php 
if (!empty($page_title)) {
    echo $page_title;
} else {
    echo 'Codeigniter 2 Extended';
}
?>
</title>
	
	<?php 
echo link_tag('/public/styles/application.css');
?>
	<?php 
echo link_tag('/public/styles/ui-lightness/jquery-ui-1.8.6.css');
?>
	
	<script type="text/javascript" src="/public/scripts/jquery-1.4.3.min.js"></script>
	<script type="text/javascript" src="/public/scripts/jquery-ui-1.8.6.min.js"></script>
	<script type="text/javascript" src="/public/scripts/application.js"></script>
</head>
<body>
	
	<!-- START NAVIGATION --> 
	<div id="nav"><div id="nav_inner"></div></div> 
Exemple #25
0
<?php

echo doctype(get_page_info('doctype'));
echo "\n";
?>
<html lang="en">
	<head>
		<?php 
$meta = get_page_info("meta");
if ($meta && is_array($meta) && count($meta) > 0) {
    foreach ($meta as $metsi => $mets) {
        if (is_array($mets)) {
            echo meta($mets);
        }
    }
}
?>
		<title><?php 
echo get_page_info("title");
?>
</title>
		<?php 
$stylesheets = get_page_info("stylesheet");
if ($stylesheets && is_array($stylesheets) && count($stylesheets) > 0) {
    $si = 0;
    foreach ($stylesheets as $styleshheti => $stylesheet) {
        echo $si > 0 ? "\t\t" : "";
        echo $this->asset->stylesheet($stylesheet, get_page_info("media", $styleshheti) ? get_page_info("media", $styleshheti) : false);
        echo "\n";
        $si++;
    }
Exemple #26
0
    function render()
    {
        $CI =& get_instance();
        if ($CI->vunsy->section->can_view()) {
            /*********************************************
             *  redering the page BODY content
             * here i open the edit mode so the widgets got the
             * container box and the controller buttons
             * and the admin toolbar 
             * ********************************************/
            $page_body = new Content();
            $page_body->get_by_info('PAGE_BODY_LOCKED');
            $page_body_text = $page_body->render();
            // adding the root toolbar
            if ($CI->vunsy->user->is_root()) {
                $page_body_text .= $CI->load->view('edit_mode/toolbar', '', TRUE);
            }
            $doctype_text = doctype($CI->config->item('doctype'));
            /*********************************************************
             * display the page content
             * i sum all the page content text
             * before page + CSS + JS + head + body + after page
             * *******************************************************/
            // Rendering the page
            echo <<<EOT
{$doctype_text}
<html xmlns="http://www.w3.org/1999/xhtml" >
\t<head>
\t<title>{$CI->config->item('site_name')} {$this->name}</title>
\t<meta http-equiv="content-type" content="text/html;charset={$CI->config->item('charset')}" />
\t<meta name="generator" content="VUNSY system" />
{$CI->vunsy->css_text()}
{$CI->vunsy->js_text()}
{$CI->vunsy->dojo_text()}
{$CI->vunsy->header_text()}
\t</head>
\t<body class="{$CI->vunsy->dojoStyle}">
\t\t{$page_body_text}
\t</body>
</html>
EOT;
        } else {
            show_error('Access denied');
        }
    }
Exemple #27
0
<?php

echo doctype("html5") . "\n";
?>
<html>
	<head>
		<?php 
echo meta('Content-type', 'text/html; charset=utf-8', 'equiv');
?>
		<title><?php 
echo isset($page_title) ? $page_title : "";
?>
</title>
		<?php 
if (isset($page_metatag) && is_array($page_metatag)) {
    echo "<!-- additional meta tag -->\n";
    foreach ($page_metatag as $key => $item) {
        echo $item;
    }
    echo "<!-- end additional meta tag -->\n";
}
?>
		
		<?php 
echo link_tag('client/themes/' . $this->config->item('usetheme') . '/style-sample.css');
// sample css.
if (isset($page_linktag) && is_array($page_linktag)) {
    echo "<!-- additional link tag -->\n";
    foreach ($page_linktag as $key => $item) {
        echo $item . "\n";
    }
Exemple #28
0
<?php

doctype('html5');
?>
<html lang="pt-br">
    <head>
        <title><?php 
echo $titulo;
?>
</title>
            <?php 
$meta = array(array('charset' => 'utf-8'), array('name' => 'robots', 'content' => 'no-cache'), array('name' => 'description', 'content' => 'Descrição do website'), array('name' => 'keywords', 'content' => 'palavra1, palavra2, palavra3'), array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'));
echo meta($meta);
$link = array('href' => 'css/estilo.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen');
echo link_tag($link);
?>
    </head>
    <body>
Exemple #29
0
<?php

echo doctype();
?>
<html lang="en">
<head>
    <base href="<?php 
echo base_url();
?>
">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php 
echo lang('babylab');
?>
</title>
    <!-- (default) CSS -->
    <?php 
echo link_tag('css/pure-min.css');
?>
    <?php 
echo link_tag('css/style.css');
?>
</head>
<body>

    <div class="pure-g">
       <div class="pure-u-1-8"></div>
       <div id="wrapper" class="pure-u-3-4">

          <img id="header-img" src="images/uu-header.png">
Exemple #30
0
<?php

echo doctype('HTML5');
?>
<html>
  <head>
    <meta charset="utf-8">
    <title>MiniBlog</title>
    <?php 
echo link_tag('public/styles/stylesheets/main.css');
?>
    <script type="text/javascript"
            src="<?php 
echo base_url();
?>
public/js/boilerplate/vendor/jquery-1.11.3.min.js">
    </script>
    <script type="text/javascript"
            src="<?php 
echo base_url();
?>
public/js/boilerplate/vendor/modernizr-2.8.3.min.js">
    </script>
    </script>
    <script type="text/javascript" src="<?php 
echo base_url();
?>
public/js/main.js">
    </script>
  </head>
  <body>