本文整理匯總了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">