コード例 #1
0
/**
 * @Author	Jonathon byrd
 * @link http://www.5twentystudios.com
 * @Package Five Twenty CMS
 * @SubPackage PublicMarketSpace
 * @Since 1.0.0
 * @copyright  Copyright (C) 2011 5Twenty Studios
 * 
 */
defined('ABSPATH') or die("Cannot access pages directly.");
$route = Router::parse();
if (!isset($route['pass'][0])) {
    if (!is_user_logged_in()) {
        redirect(url());
    }
    $route['pass'][0] = get_publicid(get_current_user_id());
}
BRequest::setVar('publicid', $route['pass'][0]);
global $cl, $page;
$page = 'profile';
require_once ABSPATH . 'inc' . DS . 'func_public.php';
// START META AND TITLE INFO FOR PAGE
$meta_desc = '<META NAME="DESCRIPTION" CONTENT="' . SITE_DESC . '" />' . "\n";
$meta_keywords = '<META NAME="KEYWORDS" CONTENT="' . SITE_KEYWORDS . '" />' . "\n";
$title = '<title>' . SITE_TITLE . '</title>';
// END
// CONTENT ENGINE
$cl = new contentLogic();
// END
// INITIALIZE THE MAIN ENGINE
$main = new main();
コード例 #2
0
		class="linkWrap">Social Information</span> </a><span
		class="loadingIndicator"></span></li>
		
	<?php 
if ($user->is_business()) {
    ?>
	<li class="sideNavItem key-info" id="navItem_info"><a class="item"
		href="<?php 
    echo Router::url(array('controller' => 'user', 'action' => 'business'));
    ?>
"><span
		class="linkWrap">Business Information</span> </a><span
		class="loadingIndicator"></span></li>
	<li class="sideNavItem key-info" id="navItem_info"><a class="item"
		href="<?php 
    echo Router::url(array('controller' => 'user', 'action' => 'public', get_publicid(get_current_user_id())));
    ?>
"><span
		class="linkWrap">View Public Profile</span> </a><span
		class="loadingIndicator"></span></li>
	<li class="sideNavItem key-info" id="navItem_info"><a class="item"
		href="<?php 
    echo Router::url(array('controller' => 'user', 'action' => 'service'));
    ?>
"><span
		class="linkWrap">Service Information</span> </a><span
		class="loadingIndicator"></span></li>
	<li class="sideNavItem key-info" id="navItem_info"><a class="item"
		href="<?php 
    echo Router::url(array('controller' => 'user', 'action' => 'products'));
    ?>