• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_page_content函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了get_page_content函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
    }
}
开发者ID:Vin985,项目名称:clqweb,代码行数:9,代码来源:pajax.php


示例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();
}
开发者ID:McCouman,项目名称:ultraschall-plugin,代码行数:13,代码来源:page-functions.php


示例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;
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:31,代码来源:class_gather.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:9,代码来源:container.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:10,代码来源:container.php


示例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";
开发者ID:aldahick,项目名称:csclub-website,代码行数:17,代码来源:index.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>

开发者ID:shemehs,项目名称:shine19395,代码行数:29,代码来源:container.php


示例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');
    }
}
?>
	
开发者ID:shemehs,项目名称:shine19395,代码行数:30,代码来源:content.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:27,代码来源:container.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:14,代码来源:container.php


示例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>
	
开发者ID:shemehs,项目名称:shine19395,代码行数:24,代码来源:container.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:14,代码来源:container.php


示例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>
开发者ID:shemehs,项目名称:shine19395,代码行数:12,代码来源:content.php


示例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;
}
开发者ID:kenrick95,项目名称:wam,代码行数:11,代码来源:api-main.php


示例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;
开发者ID:shemehs,项目名称:shine19395,代码行数:31,代码来源:frame.php


示例16: is_active

<ul id="my-side-nav" class="nav navbar-nav side-nav <?php 
echo is_active("collapse_side_nav_link") ? "" : "hide-side-nav";
?>
 ">
	<?php 
get_page_content("collapse_side_nav_menu") ? $this->load->view(get_page_content("collapse_side_nav_menu")) : false;
?>
</ul>
开发者ID:shemehs,项目名称:shine19395,代码行数:8,代码来源:container.php


示例17: die

if (!defined('IN_GS')) {
    die('you cannot load this page directly.');
}
include 'header.inc.php';
?>
	
	
	<div class="grid_12 marco2">
		<div class="space40"></div>
		<div class="grid_12 alpha welcome-content"><h1 style="text-align:left;"><?php 
get_page_title();
?>
</h1></div>
		<?php 
get_page_content();
?>
		

		<div class="grid_9">	
		<?php 
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    $page = 1;
}
get_cat_list($url, $page);
?>
		</div>
		<div class="grid_3"></div>
		<div class="clear"></div>
开发者ID:Emmett-Brown,项目名称:linea,代码行数:30,代码来源:category.php


示例18:

<nav class="left-sidebar-container hidden-print affix-top" role="navigation">
    <?php 
if (get_page_content("left_sidebar")) {
    $this->load->view(get_page_content("left_sidebar"));
}
?>
       
 </nav>
          
开发者ID:shemehs,项目名称:shine19395,代码行数:8,代码来源:container.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_page_hierarchy函数代码示例发布时间:2022-05-15
下一篇:
PHP get_page_children函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap