<?php if (!defined('ROOT')) { exit('No direct script access allowed'); } session_check(true); _css(array("jquery.tagit")); _js(array("jquery.tagit", "validator", "jquery.form.min")); loadHelpers('uicomponents'); loadModule("editor"); loadEditor("cleditor"); if (isset($_REQUEST['refid'])) { loadModuleLib('api', 'api'); $apiDetails = getApiDetails($_REQUEST['refid']); } else { $apiDetails['editable'] = true; } if ($apiDetails['editable'] == 'true') { ?> <style> .cleditorMain { height: auto !important; } </style> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <form name="apiForm" id="apiForm" class='apiForm' onsubmit="return validateForm('#apiForm');"> <input type="hidden" name="id" id="id" value="<?php if (isset($apiDetails['id'])) {
if (!defined('ROOT')) { exit('No direct script access allowed'); } loadModuleLib('api', 'api'); loadModuleLib("markitup", "api"); $login = session_check(); $page = $_REQUEST['page']; $pageArr = explode("/", $page); if (count($pageArr) > 1) { $title = end($pageArr); $titleArr = explode("-", $title); $id = md5(end($titleArr)); $apiDetails = getApiDetails($id); _js(array("jquery.snippet.min")); _css(array("jquery.snippet.min")); ?> <div class="apiContent container-fluid"> <div class="row"> <div class="col-lg-12"> <?php if (session_check(false)) { ?> <div id='toolbar' class="text-right"> <a href="<?php echo _link("api/create"); ?> ">Create</a> | <?php if ($apiDetails['editable'] == 'true') {
function module_css($uri, $tag = true) { $path_css = module_url(assets_dir('css') . '/' . $uri); return _css($path_css, $tag); }
$pageTitle = _t('Categories'); ?> <!DOCTYPE html> <html lang="<?php echo _lang(); ?> "> <head> <title><?php echo _title($pageTitle); ?> </title> <?php include _i('inc/tpl/head.php'); ?> <?php _css('base.my.css'); ?> </head> <body> <?php include 'view.php'; ?> </body> </html> <script language="javascript"> $(function() { LC.Page.Category.init(); }); </script>
<link rel="canonical" href="<?php echo _canonical(); ?> " /> <?php _hreflang(); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <?php // remove this line if your website isn't specifically designed to be responsive _metaSeoTags(); ?> <link rel="shortcut icon" href="<?php echo _img('favicon.ico'); ?> " type="image/x-icon" /> <?php _css('base.css'); _css('base.' . _lang() . '.css'); _css('jquery-ui'); _js('jquery'); _js('jquery-ui'); _script(); _js('LC.js'); _js('site.js');
ob_start(); session_start(); date_default_timezone_set('PRC'); require 'lib/helper.php'; require FrameFile::controller('init'); if (isset($force_redirect)) { // 强制跳转 这个在整站关闭的时候很有用 $controller = $force_redirect; } $view = $controller; if (!file_exists(FrameFile::controller($controller))) { $controller = 'default'; // page 404 include FrameFile::controller($controller); include smart_view($controller); exit; } // auto include if there exists css or js file same name with controller if (file_exists(_css($controller))) { $page['styles'][] = $controller; } // execute controller include FrameFile::controller($controller); // view $arr = explode('?', $view); if (count($arr) == 2 && $arr[1] == 'master') { $content = $arr[0]; $view = 'master'; } include smart_view($view); // 渲染 view
} } include 'query.php'; ?> <!DOCTYPE html> <html lang="<?php echo _lang(); ?> "> <head> <title><?php echo _title($pageTitle); ?> </title> <?php include _i('inc/tpl/head.php'); ?> <?php _css('base.' . _getLang() . '.css'); ?> </head> <body> <?php include 'view.php'; ?> </body> </html> <script type="text/javascript"> LC.Page.Post.Setup.init(); </script>
<?php define("WEBAPPROOT", SiteLocation . BASEPATH); _css(explode(",", "bootstrap.min,font-awesome.min")); _js(explode(",", "jquery,bootstrap.min")); ?> <style> body { padding-top: 40px; padding-bottom: 40px; margin:0px; background-color: #eee; box-shadow: inset -4px -3px 42px -3px #9B9B9B; -webkit-box-shadow: inset -4px -3px 42px -3px #9B9B9B; -moz-box-shadow: inset -4px -3px 42px -3px #9B9B9B; -o-box-shadow: inset -4px -3px 42px -3px #9B9B9B; -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease; height:100%; } .panel-heading { padding: 5px 15px; } .panel-footer { padding: 5px 15px; color: #A0A0A0; font-size: 12px;