mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Various minor theme updates
This commit is contained in:
@@ -53,7 +53,7 @@ urls()->set('jquery', 'wire/modules/Jquery/JqueryCore/JqueryCore.js');
|
||||
<!-- MAIN CONTENT -->
|
||||
<main id='main' class='uk-container uk-margin uk-margin-large-bottom'>
|
||||
<?php if(page()->parent->id > $home->id) echo ukBreadcrumb(page(), [ 'class' => 'uk-visible@m' ]); ?>
|
||||
<div class='uk-grid-large' uk-grid>
|
||||
<div class='uk-grid uk-grid-large' uk-grid>
|
||||
<div id='content' class='uk-width-expand'>
|
||||
<h1 id='content-head' class='uk-margin-small-top'>
|
||||
<?=page()->get('headline|title')?>
|
||||
@@ -79,7 +79,7 @@ urls()->set('jquery', 'wire/modules/Jquery/JqueryCore/JqueryCore.js');
|
||||
<!-- FOOTER -->
|
||||
<footer class='uk-section uk-section-secondary'>
|
||||
<div id='footer' class='uk-container'>
|
||||
<div uk-grid>
|
||||
<div class='uk-grid' uk-grid>
|
||||
<div class='uk-width-1-3@m uk-flex-last@m uk-text-center'>
|
||||
<form class='uk-search uk-search-default' action='<?=pages()->get('template=search')->url?>' method='get'>
|
||||
<button type='submit' class='uk-search-toggle uk-search-icon-flip' uk-search-icon></button>
|
||||
|
@@ -943,7 +943,7 @@ function ukComment(Comment $comment) {
|
||||
|
||||
$out = "
|
||||
<article id='Comment$comment->id' class='$classes uk-comment uk-comment-primary' data-comment='$comment->id'>
|
||||
<header class='uk-comment-header uk-grid-medium uk-flex-middle' uk-grid>
|
||||
<header class='uk-comment-header uk-grid uk-grid-medium uk-flex-middle' uk-grid>
|
||||
$gravatar
|
||||
<div class='uk-width-expand'>
|
||||
<h4 class='uk-comment-title uk-margin-remove'>$cite</h4>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php namespace ProcessWire; ?>
|
||||
|
||||
<div class='uk-child-width-1-2@s uk-child-width-1-3@m uk-grid-match uk-margin-large-bottom' pw-append='content' uk-grid>
|
||||
<div class='uk-child-width-1-2@s uk-child-width-1-3@m uk-grid uk-grid-match uk-margin-large-bottom' pw-append='content' uk-grid>
|
||||
<?php foreach(page()->children as $category): ?>
|
||||
<a class='uk-link-reset' href='<?=$category->url?>'>
|
||||
<div class='uk-card uk-card-default uk-card-hover uk-card-body'>
|
||||
|
@@ -10,4 +10,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/** @var Config $config */
|
||||
if(!defined("PROCESSWIRE")) die();
|
||||
require($config->paths->core . "admin.php");
|
||||
|
@@ -8,8 +8,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/** @var Config $config */
|
||||
/** @var User $user */
|
||||
/** @var WireInput $input */
|
||||
/** @var Modules $modules */
|
||||
/** @var Page $page */
|
||||
/** @var Sanitizer $sanitizer */
|
||||
/** @var Notices $notices */
|
||||
|
||||
if(!defined("PROCESSWIRE")) die();
|
||||
|
||||
/** @var ProcessPageSearch $pps */
|
||||
$searchForm = $user->hasPermission('page-edit') ? $modules->get('ProcessPageSearch')->renderSearchForm() : '';
|
||||
$bodyClass = $input->get->modal ? 'modal' : '';
|
||||
$bodyClass = $input->get('modal') ? 'modal' : '';
|
||||
if(!isset($content)) $content = '';
|
||||
|
||||
$config->styles->prepend($config->urls->adminTemplates . "styles/main.css?v=4");
|
||||
@@ -62,7 +73,7 @@ if(!$browserTitle) $browserTitle = __(strip_tags($page->get('title|name')), __FI
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title><?php echo $browserTitle; ?></title>
|
||||
<title><?php echo $sanitizer->entities1($browserTitle); ?></title>
|
||||
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
@@ -131,9 +142,9 @@ if(!$browserTitle) $browserTitle = __(strip_tags($page->get('title|name')), __FI
|
||||
<div id="content" class="content fouc_fix">
|
||||
<div class="container">
|
||||
|
||||
<?php if(trim($page->summary)) echo "<h2>{$page->summary}</h2>"; ?>
|
||||
<?php if(trim($page->get('summary'))) echo "<h2>" . $page->get('summary') . "</h2>"; ?>
|
||||
|
||||
<?php if($page->body) echo $page->body; ?>
|
||||
<?php if($page->get('body')) echo $page->get('body'); ?>
|
||||
|
||||
<?php echo $content?>
|
||||
|
||||
|
@@ -1,4 +1,10 @@
|
||||
<?php namespace ProcessWire;
|
||||
|
||||
/** @var Notices $notices */
|
||||
/** @var Config $config */
|
||||
|
||||
if(!defined("PROCESSWIRE")) die();
|
||||
|
||||
?><ul id='notices' class='ui-widget'>
|
||||
<?php
|
||||
|
||||
|
@@ -1,11 +1,18 @@
|
||||
<?php namespace ProcessWire;
|
||||
|
||||
/** @var Pages $pages */
|
||||
/** @var ProcessWire $wire */
|
||||
/** @var User $user */
|
||||
/** @var Page $page */
|
||||
/** @var Sanitizer $sanitizer */
|
||||
|
||||
if(!defined("PROCESSWIRE")) die();
|
||||
|
||||
foreach($pages->get($wire->config->adminRootPageID)->children("check_access=0") as $p) {
|
||||
|
||||
if(!$p->viewable()) continue;
|
||||
|
||||
$showItem = $user->isSuperuser() ? true : false;
|
||||
$info = array();
|
||||
|
||||
if(!$showItem) {
|
||||
$checkPages = $p->numChildren ? $p->children("check_access=0") : array($p);
|
||||
@@ -20,7 +27,7 @@ foreach($pages->get($wire->config->adminRootPageID)->children("check_access=0")
|
||||
if($showItem) {
|
||||
$class = strpos($page->path, $p->path) === 0 ? " class='on'" : '';
|
||||
$title = strip_tags((string)$p->get('title|name'));
|
||||
$title = __($title, dirname(__FILE__) . '/default.php'); // translate from context of default.php
|
||||
$title = $sanitizer->entities1(__($title, dirname(__FILE__) . '/default.php')); // translate from context of default.php
|
||||
echo "\n\t\t\t\t<li><a href='{$p->url}'$class>$title</a></li>";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user