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

PHP page_content函数代码示例

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

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



在下文中一共展示了page_content函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: array

<h2>save_option</h2>
<p>save_option — saves option in the database</p>
<h3>Summary</h3>
<pre class="prettyprint"><code class="language-php">save_option($data);
</code></pre>
 
<h3>Usage</h3>
<pre class="prettyprint"><code class="language-php">
$option = array();
$option['option_value'] = 'my value';
$option['option_key'] = 'my_option';
$option['option_group'] = 'my_option_group';
save_option($option)
</code></pre>

<h4>See also</h4>
<?php 
print page_content('functions/_nav/options');
开发者ID:skyint,项目名称:microweber-docs,代码行数:18,代码来源:save_option.php


示例2: page_nav

?>
        </div>
        <div class="page-container" style="background-color: white;">
          <div class="mw-ui-row">
            <div class="mw-ui-col sidebar-col" style="width: 280px;">
              <div class="sidebar">
                <div class="sidebar-content"><?php 
print page_nav();
?>
</div>
              </div>
            </div>
            <div class="mw-ui-col">
              <div class="container">
                <div class="content"><?php 
print page_content();
?>
</div>
              </div>
            </div>
          </div>
        </div>
        <div class="not-ready">The documentation is under development. <a style="" href="https://github.com/microweber/microweber-docs/edit/master/<?php 
print url_path();
?>
">Help us by editing this page</a>.</div>
        <script src="<?php 
print site_url();
?>
assets/jquery.min.js"></script> 
        <script src="<?php 
开发者ID:skyint,项目名称:microweber-docs,代码行数:31,代码来源:index.php


示例3: page_content

</a></p>
		</fieldset>
	</form>
<?php 
}
?>
</div>
<!-- END frontend login -->
	<div id="frontedit">[[editthispage]]</div>
</div>    <!-- END left column -->   

	<!-- Content -->
	
	<div id="cont">
	<?php 
page_content(1);
?>
	
	</div>
	<br style="clear: both;" />
	<div id="foot">
	<?php 
show_menu2(2, SM2_ROOT, SM2_ALL, SM2_TRIM | SM2_PRETTY | SM2_XHTML_STRICT);
?>
	</div>

<!-- Block Bottom -->
	<div id="basic">
	<div id="links"><?php 
page_footer();
?>
开发者ID:pixelhulk,项目名称:LEPTON,代码行数:31,代码来源:index.php


示例4: next_content

<h2>next_content</h2>
<p>next_content — Gets next content item</p>
<h3>Summary</h3>
<pre><code>next_content()
</code></pre>
<h3>Description</h3>
<p>This function will get the next page or post. If the post is in a category it will return the next post from the same category.</p>
<h3>Return Values</h3>
<p> <code>Array</code> with the next content or <code>false</code> if the content is not found</p>
<h3>Usage</h3>
<h4>Get next content of the current page or post </h4>
<pre class="prettyprint"><code class="language-php">
$next =  next_content();  
if($next != false){
print $next['title'];
print content_link($next['id']);
}
 </code></pre>
<h4>Get next content of another post </h4>
<pre class="prettyprint"><code class="language-php">
$next =  next_content($content_id=5);  
if($next != false){
print $next['title'];
print content_link($next['id']);
}
 </code></pre>
<h4>See also</h4>
<?php 
print page_content('functions/_nav/content');
开发者ID:skyint,项目名称:microweber-docs,代码行数:29,代码来源:next_content.php


示例5: get_order_by_id

<h2>get_order_by_id</h2>
<p class="description">get_order_by_id — get single order placed in the online shop</p>
<h3>Summary</h3>
<pre class="prettyprint"><code class="language-php">get_order_by_id($id);
</code></pre>
<h3>Usage</h3>
<pre class="prettyprint"><code class="language-php">//get an order  
$order_id = 3;
$order = get_order_by_id($order_id);
 
if($order != false){
	print $order['id'];  
	print $order['amount'];
	print $order['total_items'];
	print $order['email'];
	print $order['created_at']; 
	// and more... print_r($order);
}
</code></pre>
<h3>Field names</h3>
<?php 
print page_content('params/cart_orders');
?>
<h4>See also</h4>
<?php 
print page_content('functions/_nav/shop');
开发者ID:skyint,项目名称:microweber-docs,代码行数:26,代码来源:get_order_by_id.php


示例6: page_content

<div class="full-width-white">
    <div class="mod mod-sliderhuge">
        <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/templates/massaging/modules-terrific/sliderhuge/sliderhuge.php';
?>
    </div>
</div>

<div class="full-width-white">
    <div class="container">
        <div class="row content">
            <div class="col-md-12">
                <div class="mod mod-textcontent">
                    <?php 
echo page_content(2);
?>
                </div>
            </div>
        </div>
        <div class="row teasers">
            <div class="col-md-12">
                <h2>Unsere Services</h2>
            </div>
            <div class="col-md-4">
                <div class="mod mod-teaser">
                    <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/templates/massaging/modules-terrific/teaser/teaser.php';
?>
                </div>
            </div>
            <div class="col-md-4">
开发者ID:bladicito,项目名称:massging,代码行数:31,代码来源:home.php


示例7: page_description

	<meta name="description" content="<?php 
page_description();
?>
" />
	<meta name="keywords" content="<?php 
page_keywords();
?>
" />
	<?php 
get_page_headers();
?>
	<link rel="stylesheet" type="text/css" href="<?php 
echo TEMPLATE_DIR;
?>
/template.css" media="screen,projection" />
	<title><?php 
page_title('', '[WEBSITE_TITLE]');
?>
</title>
</head>
<body>
<?php 
/**
 *	TEMPLATE CODE STARTS BELOW
 *	output only the page content, nothing else
 */
page_content();
?>
  
</body>
</html>
开发者ID:pixelhulk,项目名称:LEPTON,代码行数:31,代码来源:index.php


示例8: page_content

<div class="container">
    <div class="slider-holder">
        <?php 
echo page_content(1);
?>
    </div>
</div>
开发者ID:bladicito,项目名称:massging,代码行数:7,代码来源:sliderhuge.php


示例9: defined

<?php

defined('IN_CMS') or die('No direct access allowed.');
$title = page_title();
$content = page_content();
$url = page_url();
$time = false;
$page = true;
include 'includes/template.php';
开发者ID:nathggns,项目名称:Light,代码行数:9,代码来源:page.php


示例10: page_nav

function page_nav($path = false)
{
    if ($path == false) {
        $locate_file_content = url_path();
        if ($locate_file_content == '') {
            $locate_file_content = 'README';
        }
    } else {
        $locate_file_content = $path;
    }
    $basename = basename($locate_file_content);
    $locate_file_content = str_replace('..', '', $locate_file_content);
    $folder = __DIR__ . DIRECTORY_SEPARATOR . $locate_file_content;
    if (is_file($folder)) {
        $ext = get_file_extension($folder);
        $folder = dirname($folder) . DIRECTORY_SEPARATOR;
    }
    $cont = false;
    $folder = normalize_path($folder, true);
    if (!is_dir($folder)) {
        $folder = dirname($folder) . DIRECTORY_SEPARATOR;
    }
    if (is_dir($folder)) {
        $nav = $folder . '_Sidebar.md';
        if (is_file($nav)) {
            $cont = page_content($nav);
        }
        $nav = $folder . '_nav.md';
        if (is_file($nav)) {
            $cont = page_content($nav);
        }
        $nav = $folder . '_nav.php';
        if (is_file($nav)) {
            $cont = page_content($nav);
        }
    }
    //    if ($cont == false) {
    //        $folder = dirname($folder) . DIRECTORY_SEPARATOR;
    //        print $folder;
    //        $nav = $folder . '_Sidebar.md';
    //        if (is_file($nav)) {
    //            $cont = page_content($nav);
    //        }
    //    }
    if ($cont != false) {
        $s = '<a href="' . $basename;
        $r = '<a class="active" href="' . $basename;
        $cont = str_replace($s, $r, $cont);
        return $cont;
    }
}
开发者ID:skyint,项目名称:microweber-docs,代码行数:51,代码来源:one.php


示例11: ob_get_contents

$fulltop = ob_get_contents();
ob_end_clean();
ob_start();
page_content(3);
$left = ob_get_contents();
ob_end_clean();
ob_start();
page_content(4);
$right = ob_get_contents();
ob_end_clean();
ob_start();
page_content(5);
$fullbottom = ob_get_contents();
ob_end_clean();
ob_start();
page_content(6);
$hero = ob_get_contents();
ob_end_clean();
$contentheadline = "";
if ($hero) {
    ?>
<div class="hero">
<?php 
} else {
    $contentheadline = "<h1>" . PAGE_TITLE . "</h1>";
}
?>
	<div class="navbg">
	<div class="center">
		<div class="row">
			<div class="fg12 nav">
开发者ID:WBCE,项目名称:WebsiteBaker_CommunityEdition,代码行数:31,代码来源:index.php


示例12: header

<?php

if (!defined('ONE')) {
    header("Location: index");
}
?>


<h2>Microweber functions</h2>
<p>Microweber comes with a lot of functions to help you get and save things in your website. In most cases those functions are simple wrappers to the more complex OOP core. </p>
<p>You can use them while you develop your site. The functions are defined into the system on load and they are globally available in the core, the site templates and modules. </p>
<h3>Writing custom functions</h3> 
<p>There the few ways to write custom functions.</p>
<ol>
  <li>To add functions with a module, create <code>functions.php</code> file inside your module folder</li>
  <li>To add function when certain site template is active, create <code>functions.php</code> file inside the site template folder</li>
  <li>To make custom functions available only on your application create a file at <code>/src/Microweber/functions/my_functions.php</code></li>
</ol>
<p>&nbsp;</p>




<h3>Explore the  functions bellow</h3>
<p>You can call them inside your templates and modules.</p>

<?php 
print page_content('functions/_nav/index');
开发者ID:skyint,项目名称:microweber-docs,代码行数:28,代码来源:index.php


示例13: menu_tree

    <tr>
      <td><code class="language-php">link</code></td>
      <td>Customize the <code>&lt;a&gt;</code> element</td>
    </tr>
  </tbody>
</table>
<h3>Usage</h3>
<h4>Print the header menu</h4>
<pre class="prettyprint"><code class="language-php runner">$menu = menu_tree('menu_id=1');
print $menu;
</code></pre>
<h4>Print menu with custom CSS classes</h4>
<pre class="prettyprint"><code class="language-php runner">$params = array();
$params['menu_id'] = 1;
$params['ul_class'] = 'nav-holder';
$params['li_class'] = 'nav-item';
$menu = menu_tree($params);
print $menu;
</code></pre>
<h4>Print menu with custom tags</h4>
<pre class="prettyprint"><code class="language-php runner">$params = array();
$params['menu_id'] = 1;
$params['ul_tag'] = 'div';
$params['li_tag'] = 'span';
$menu = menu_tree($params);
print $menu;
</code></pre>
<h4>See also</h4>
<?php 
print page_content('functions/_nav/menus');
开发者ID:skyint,项目名称:microweber-docs,代码行数:30,代码来源:menu_tree.php


示例14: page_content

<div class="container">
    <?php 
echo page_content(3);
?>
</div>
开发者ID:bladicito,项目名称:massging,代码行数:5,代码来源:teaser.php


示例15: page_content

      <td>id</td>
      <td>the id of the user</td>
      <td>If you want to update user, set this to existing user id</td>
    </tr>
    <tr>
      <td>username</td>
      <td>the username for login</td>
      <td></td>
    </tr>
    <tr>
      <td>email</td>
      <td>the email for login</td>
      <td></td>
    </tr>
    <tr>
      <td>password</td>
      <td>the password for login</td>
      <td></td>
    </tr>
   <tr>
      <td>is_active</td>
      <td>flag if users can login</td>
      <td>&quot;y&quot; or &quot;n&quot;</td>
    </tr>
   
  </tbody>
</table>
<h4>See also</h4>
<?php 
print page_content('functions/_nav/users');
开发者ID:skyint,项目名称:microweber-docs,代码行数:30,代码来源:save_user.php


示例16: strpos

<div class="full-width-white">
    <div class="container">
        <div class="row content">
            <div class="col-md-12">
                <div class="mod mod-textcontent">
                    <div class="container">
                        <?php 
$commentPage = strpos($_SERVER['PHP_SELF'], "comment.php");
if ($commentPage == true) {
    page_content();
} else {
    page_content(2);
}
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
开发者ID:bladicito,项目名称:massging,代码行数:20,代码来源:standard.php


示例17: get_picture

<h2>thumbnail</h2>
<p>thumbnail - Resizes an image and returns the url of the resized thumbnail</p>
<h3>Summary</h3>
<pre class="prettyprint"><code class="language-php">thumbnail($src, $width = 200, $height = 200);
</code></pre>
<h3>Usage</h3>
<p>Get the picture of a post</p>
<pre class="prettyprint"><code class="language-php runner"> 
$content_id = 1;
$picture_link = get_picture($content_id);

$thumbnail = thumbnail($picture_link,150,150);

print &quot;&lt;img src='&quot;.$thumbnail.&quot;' /&gt;&quot;;
 
</code></pre>
<h4>See also</h4>
<?php 
print page_content('functions/_nav/media');
开发者ID:skyint,项目名称:microweber-docs,代码行数:19,代码来源:thumbnail.php


示例18: page_content

<div class="container">
    <?php 
echo page_content(5);
?>
</div>
开发者ID:bladicito,项目名称:massging,代码行数:5,代码来源:teaser3.php


示例19: theme_include

<?php

theme_include('header');
?>

			<div id="main">
				<section id="one">
					<header class="major">
						<h1><?php 
echo page_title();
?>
</h1>
					</header>
					<p><?php 
echo page_content();
?>
</p>
				</section>
			</div>

<?php 
theme_include('footer');
开发者ID:Th3f,项目名称:Strata,代码行数:22,代码来源:page.php


示例20: show_content

 function show_content($block = 1)
 {
     page_content($block);
 }
开发者ID:WebsiteBaker-modules,项目名称:WB-Portable,代码行数:4,代码来源:frontend.functions.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP page_create_instance函数代码示例发布时间:2022-05-15
下一篇:
PHP page_close函数代码示例发布时间: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