本文整理汇总了PHP中utility::find_selected_content方法的典型用法代码示例。如果您正苦于以下问题:PHP utility::find_selected_content方法的具体用法?PHP utility::find_selected_content怎么用?PHP utility::find_selected_content使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类utility
的用法示例。
在下文中一共展示了utility::find_selected_content方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<?php
//Include necessary files
include_once '../includes/core/init.inc.php';
$my_session->confirm_logged_in();
?>
<?php
utility::find_selected_content();
?>
<?php
if (!$current_page) {
// subject ID was missing or invlid or
// subject couldn't be found in database
utility::redirect_to("manage_content.php");
}
?>
<?php
$_POST["home_display"] = isset($_POST["home_display"]) ? $_POST["home_display"] : null;
$_POST["archive_display"] = isset($_POST["archive_display"]) ? $_POST["archive_display"] : null;
$_POST["description"] = isset($_POST["description"]) ? $_POST["description"] : null;
?>
<?php
page::edit_page($current_page["id"]);
?>
示例2:
<?php
/*
* Include necessary files
*/
include_once '../includes/core/init.inc.php';
?>
<?php
$layout_context = "public";
include "../includes/layouts/header.php";
utility::find_selected_content(true);
?>
<div id="content-wrap">
<?php
include "../includes/layouts/public_navigation.php";
?>
<div id = "main">
<div id="profile">
<div id="tabs">
<ul>
<li><a href="#tabs-1">About Me</a></li>
<!-- <li><a href="#tabs-2">My Education</a></li> -->
<li><a href="#tabs-3">My Experience</a></li>
<li><a href="#tabs-4">Worked Projects</a></li>
</ul>
<div id="tabs-1">