本文整理汇总了PHP中get_page_content函数的典型用法代码示例。如果您正苦于以下问题:PHP get_page_content函数的具体用法?PHP get_page_content怎么用?PHP get_page_content使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_page_content函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pajax
function pajax()
{
if (isAjax() && isset($_POST['pajax'])) {
echo "<!-- Loaded via Pajax -->";
echo get_page_content();
// Please let me know if you know of a better way to do this than die().
die;
}
}
示例2: get_content
function get_content($language)
{
$content_settings = get_field('content_settings');
//wp page content
if ($content_settings == 'box') {
get_box_content($language);
}
if ($content_settings == 'page') {
get_page_content($language);
}
//css
get_page_css();
}
示例3: get_page_content
function get_page_content($url)
{
$url = eregi_replace('^http://', '', $url);
$temp = explode('/', $url);
$host = array_shift($temp);
$path = '/' . implode('/', $temp);
$temp = explode(':', $host);
$host = $temp[0];
$port = isset($temp[1]) ? $temp[1] : 80;
$fp = @fsockopen($host, $port, $errno, $errstr, 30);
if ($fp) {
@fputs($fp, "GET {$path} HTTP/1.1\r\nHost: {$host}\r\nAccept: */*\r\nReferer:{$url}\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\nConnection: Close\r\n\r\n");
}
$Content = '';
while ($str = @fread($fp, 4096)) {
$Content .= $str;
}
@fclose($fp);
if (preg_match("/^HTTP\\/\\d.\\d 301 Moved Permanently/is", $Content)) {
if (preg_match("/Location:(.*?)\r\n/is", $Content, $murl)) {
return get_page_content($murl[1]);
}
}
if (preg_match("/^HTTP\\/\\d.\\d 200 OK/is", $Content)) {
preg_match("/Content-Type:(.*?)\r\n/is", $Content, $murl);
$contentType = trim($murl[1]);
$Content = explode("\r\n\r\n", $Content, 2);
$Content = $Content[1];
}
return $Content;
}
示例4: get_page_content
<div id="page-footer" class="page-footer-wrapper">
<div id="page-footer-container" class="">
<?php
get_page_content("page_footer") ? $this->load->view(get_page_content("page_footer")) : false;
?>
</div>
</div>
示例5: get_page_content
<nav id="page-top-nav" class="navbar navbar-inverse navbar-fixed-top ">
<div class="<?php
echo get_page_content("container") ? get_page_content("container") : "container-fluid";
?>
">
<?php
get_page_content("top_nav") ? $this->load->view(get_page_content("top_nav")) : "";
?>
</div>
</nav>
示例6: get_database
<?php
require_once __DIR__ . "/inc/header.php";
$db = get_database();
$content = get_page_content($db, $original_page_name);
?>
<div class="row">
<div class="col-xs-offset-3 col-xs-6">
<div id="desc-index" class="text-center">
<?php
echo $content["introduction"];
?>
</div>
</div>
</div>
<?php
require_once __DIR__ . "/inc/footer.php";
示例7:
?>
<div class="col-md-12">
<?php
}
}
?>
<div id="page-container" class="">
<?php
$this->load->view(get_page_content("page_content"));
?>
</div>
</div>
<?php
}
if (get_page_content("right_sidebar")) {
?>
<div class="col-md-3">
<?php
if (get_page_content("right_sidebar_container")) {
$this->load->view(get_page_content("right_sidebar_container"));
} else {
$this->load->view("management/template/page_content/right_sidebar/container");
}
?>
</div>
<?php
}
?>
</div>
示例8: base_url
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
}
?>
<a class="navbar-brand" href="<?php
echo base_url();
?>
">
<?php
echo $this->asset->image("WMSU_LOGO/esulogo.png", '', array('class' => 'pic-30x30 pull-left margin-top-n5'));
?>
<span class="margin-left-5">WMSU MOLAVE ESU</span>
</a>
</div>
<?php
if (get_page_content("user_nav") || get_page_content("collapse_side_nav")) {
if (get_page_content("user_nav_container")) {
$this->load->view(get_page_content("user_nav_container"));
} else {
$this->load->view('template/top_nav/user_nav/container');
}
}
?>
示例9:
</p>
</div>
<div class="panel-body">
<nav class="" role="navigation">
<?php
if (get_page_content("page_action_menu")) {
$this->load->view(get_page_content("page_action_menu"));
}
?>
</nav>
<div class="row">
<div class="col-md-12">
<?php
if (get_page_content("dashboard_curriculums_content")) {
$this->load->view(get_page_content("dashboard_curriculums_content"));
}
?>
</div>
</div>
</div>
</div>
</div>
示例10: get_page_content
<div id="my-navbar-collapse" class="collapse navbar-collapse ">
<?php
get_page_content("user_nav") ? $this->load->view(get_page_content("user_nav")) : false;
?>
<?php
if (get_page_content("collapse_side_nav")) {
if (get_page_content("collapse_side_nav_container")) {
$this->load->view(get_page_content("collapse_side_nav_container"));
} else {
$this->load->view('template/top_nav/collapse_side_nav/container');
}
}
?>
</div>
示例11:
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<?php
if (get_page_content("curriculums_settings_sub_mennu")) {
$this->load->view(get_page_content("curriculums_settings_sub_mennu"));
}
?>
<div class="row">
<div class="col-md-12">
<div class="margin-top-10">
<?php
if (get_page_content("curriculum_settings_content")) {
$this->load->view(get_page_content("curriculum_settings_content"));
} else {
echo "No Curriculum Settings Content Found";
}
?>
</div>
</div>
</div>
</div>
</div>
示例12: get_alert_message
<div class="login-form-container padding-0">
<div id="login-error-container" >
<?php
if (get_message('login')) {
echo get_alert_message("login");
}
?>
</div>
<?php
echo get_page_content("page_content") ? $this->load->view(get_page_content("page_content")) : "";
?>
</div>
示例13: get_page_content
<div class="row">
<div class="col-md-12">
<h2>
<span class="glyphicon glyphicon-dashboard" area-hidden="true"></span>
Dashboard
<small><span class=""> <?php
echo get_page_content("dashboard_header_subtitle");
?>
</span></small>
</h2>
</div>
</div>
示例14: get_organizers_list
function get_organizers_list()
{
global $settings;
$raw_data = get_page_content([$settings['organizer_list_page_id']])['query']['pages'][$settings['organizer_list_page_id']]['revisions'][0]['*'];
preg_match_all("/{{target\\s*\\|\\s*user\\s*=\\s*(.+)\\s*\\|\\s*site\\s*=\\s*(.+)\\s*}}/", $raw_data, $data);
$ret = [];
for ($i = 1; $i < count($data[2]); $i++) {
array_push($ret, str_replace(" ", "_", trim($data[1][$i])));
}
return $ret;
}
示例15: foreach
if (get_page_content("page_content")) {
if (get_page_content("page_content_container")) {
$this->load->view(get_page_content("page_content_container"));
} else {
$this->load->view('management/template/page_content/container');
}
}
?>
</div ><!-- page content container end -->
</div><!-- page content wrapper end -->
<?php
if (get_page_content("page_footer")) {
if (get_page_content("page_footer_container")) {
$this->load->view(get_page_content("page_footer_container"));
} else {
$this->load->view('management/template/page_footer/container');
}
}
?>
</div><!-- page body content wrapper end -->
</div>
<?php
$stylescripts = get_page_script("style");
if ($stylescripts && is_array($stylescripts) && count($stylescripts) > 0) {
echo '<style type="text/css">';
echo "\n\t";
foreach ($stylescripts as $cssi => $cssscript) {
echo $cssscript;