Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
- Leggero theme:
- Depending on your browser or operating system settings, the Stringendo style switches between light and dark modes. ([#852](https://github.com/flatpressblog/flatpress/pull/852))
- Open Graph prefix added. ([#856](https://github.com/flatpressblog/flatpress/pull/856))
- The Leggero theme now supports a widget top and bottombar for simple blockparser widgets. ([#937](https://github.com/flatpressblog/flatpress/pull/937))

## Internationalization
- Chinese translation by [Qingfeng Xiyu](http://zp.qfxy.net/) ([#913](https://github.com/flatpressblog/flatpress/pull/913))
Expand Down
14 changes: 4 additions & 10 deletions admin/panels/maintain/admin.maintain.apcu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
.apcu-label { font-size: 0.9em; color: #666; }
.apcu-value { font-weight: bold; }
.apcu-actions { margin: 0.5em 0 1em 0; }
.apcu-button { display: inline-block; padding: 0.4em 0.9em; border-radius: 4px; border: 1px solid #a94442; background: #f2dede; color: #a94442; text-decoration: none; font-weight: bold; }
.apcu-button:hover { background: #e4b9b9; }
.apcu-clear-result { margin: 0.25em 0 1em 0; }
@media (max-width: 720px) {
.apcu-panel { padding: 0 0.25em; }
Expand All @@ -23,6 +25,8 @@

<div class="apcu-panel">

<p><a href="admin.php?p=maintain">{$panelstrings.back}</a></p>

<p>{$panelstrings.descr}</p>

<div class="apcu-status-box {if $apcu.status == 'good'}apcu-status-good{else}apcu-status-bad{/if}">
Expand Down Expand Up @@ -52,12 +56,6 @@
<div class="apcu-label">apc.shm_size</div>
<div class="apcu-value">{$apcu.shm_size_ini}</div>
</div>
<div class="apcu-card">
<div class="apcu-label">{$panelstrings.memory_type}</div>
<div class="apcu-value">
{if $apcu.memory_type}{$apcu.memory_type}{else}{$panelstrings.memory_type_unknown}{/if}
</div>
</div>
<div class="apcu-card">
<div class="apcu-label">{$panelstrings.num_slots}</div>
<div class="apcu-value">{$apcu.num_slots}</div>
Expand Down Expand Up @@ -102,10 +100,6 @@
{/if}
</div>
</div>
<div class="apcu-card">
<div class="apcu-label">{$panelstrings.cache_type}</div>
<div class="apcu-value">{$panelstrings.cache_user_only}</div>
</div>
</div>

<div class="buttonbar">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/.thumbs/03-leggero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/.thumbs/05-stringendo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/02-flatmaas-rev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/03-leggero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/04-leggero-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fp-content/images/Leggero-Themepreview/05-stringendo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 33 additions & 37 deletions fp-defaults/plugins.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,38 @@
* remove it to enable :)
*/

'accessibleantispam',
'adminarea',
'archives',
'audiovideo',
'bbcode', // bbcode-style formatting; if you disable this
// you'll loose some features, but you will be able to use html
// as a default
'blockparser',
// 'calendar',
'categories',
'commentcenter', // including Akismet interface
'cookiebanner',
'datechanger', // Lets you change the publish date for (new) entries.
'emoticons', // Activates an emoticons toolbar for entries and static pages
'favicon',
'feed', // Activates the RSS and Atom feed widget
'fpprotect', // Hardens your blog with additional features in the HTTP response header.
// Removes the htaccess editor from the PrettyURLs plugin.
'gallerycaptions',
'gdprvideoembed', // Simple two-click solution for GDPR-compliant embedding of YouTube, Facebook and Vimeo videos.
'jquery', // needed by ligthbox2 (quite heavy in size)
'lastcomments', // cache-based last-comments block
'lastentries',
'mastodon',
'mediamanager',
// 'newsletter',
'photoswipe',
'postviews', // Counts and displays entry views
'prettyurls', // PrettyURLs with NGINX? see https://wiki.flatpress.org/res:plugins:prettyurls#nginx
'qspam', // quick spam filter
'readmore',
'searchbox',
'seometataginfo', // Makes it easier to find with search engines and post on social media
'storage',
'support', // Provides the FlatPress admin and the community with all relevant data in case of problems.
'tag',
'thumb' // creates thumbnails adding scale=NN% to [img] tags :)
0 => 'accessibleantispam',
1 => 'adminarea',
2 => 'archives',
3 => 'audiovideo',
4 => 'bbcode', // bbcode-style formatting
5 => 'blockparser',
6 => 'categories',
7 => 'commentcenter', // including Akismet interface
8 => 'cookiebanner',
9 => 'datechanger', // Lets you change the publish date for (new) entries
10 => 'emoticons', // Activates an emoticons toolbar for entries and static pages
11 => 'favicon',
12 => 'feed', // Activates the RSS and Atom feed widget
13 => 'fpprotect', // Hardens your blog with additional features in the HTTP response header
14 => 'gallerycaptions',
15 => 'gdprvideoembed', // Simple two-click solution for GDPR-compliant embedding of YouTube, Facebook and Vimeo videos
16 => 'jquery',
17 => 'lastcomments', // cache-based last-comments block
18 => 'lastentries',
19 => 'mastodon',
20 => 'mediamanager',
21 => 'newsletter',
22 => 'photoswipe',
23 => 'postviews', // Counts and displays entry views
24 => 'prettyurls', // PrettyURLs with NGINX? see https://wiki.flatpress.org/res:plugins:prettyurls#nginx
25 => 'qspam', // quick spam filter
26 => 'readmore',
27 => 'searchbox',
28 => 'seometataginfo', // Makes it easier to find with search engines and post on social media
29 => 'storage',
30 => 'support', // Provides the FlatPress admin and the community with all relevant data in case of problems
31 => 'tag',
32 => 'thumb' // creates thumbnails adding scale=NN% to [img] tags :)
);
?>
5 changes: 3 additions & 2 deletions fp-defaults/settings-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
'plugins' => array(
'blockparser' => array(
'pages' => array(
'menu',
'about'
0 => 'menu',
1 => 'bottommenu',
2 => 'about'
),
),
'bbcode' => array (
Expand Down
24 changes: 11 additions & 13 deletions fp-defaults/widgets.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

'top' => array (
// (no widgets)
0 => 'blockparser:menu'
),

/**
Expand All @@ -22,21 +22,19 @@

// Right side widgets
'right' => array (
'adminarea',
'blockparser:menu',
'categories',
'archives',
//'calendar', // quite time consuming, not really recommended
'lastentries',
// 'lastcomments',
'searchbox',
'feed',
// 'newsletter',
'mastodon'
0 => 'categories',
1 => 'archives',
2 => 'lastentries',
3 => 'lastcomments',
4 => 'searchbox',
5 => 'feed',
6 => 'newsletter',
7 => 'mastodon'
),

'bottom' => array (
// (no widgets)
0 => 'blockparser:bottommenu',
1 => 'adminarea'
),
);
?>
98 changes: 51 additions & 47 deletions fp-interface/themes/leggero/comments.tpl
Original file line number Diff line number Diff line change
@@ -1,67 +1,71 @@
{include file="header.tpl"}
{include file="widgetstop.tpl"}
<div id="main">
{entry_block}
{entry}
{include file="entry-default.tpl"}
{comment_block}

<div id="main">
{entry_block}
{entry}
{include file="entry-default.tpl"}
{comment_block}
<ol id="comments">
{comment}
<li id="{$id}" {$loggedin|notempty:"class=\"comment-admin\""}>
<ol id="comments">
{comment}

<strong class='comment-name'>
{*
using this tag combo, the name is displayed as a link only
if user entered a URL.
<li id="{$id}"{$loggedin|notempty:" class=\"comment-admin\""}>

Syntax is quite intuitive:
"if $url is not empty, show $name between a tags,
else default fallback on displaying plain $name"
<strong class="comment-name">

*}
{if $url}
{if $url|is_external_url}
{if $url}
{if $url|is_external_url}

<a href="{$url|wp_specialchars:1}" target="_blank" rel="nofollow noopener noreferrer" title="Visit {$url|wp_specialchars:1}">{$name|wp_specialchars:1}</a>
{else}
<a href="{$url|wp_specialchars:1}" target="_blank" rel="nofollow noopener noreferrer" title="Visit {$url|wp_specialchars:1}">{$name|wp_specialchars:1}</a>
{else}

<a href="{$url|wp_specialchars:1}" rel="nofollow" title="Visit {$url|wp_specialchars:1}">{$name|wp_specialchars:1}</a>
{/if}
{else}
<a href="{$url|wp_specialchars:1}" rel="nofollow" title="Visit {$url|wp_specialchars:1}">{$name|wp_specialchars:1}</a>
{/if}
{else}

{$name|wp_specialchars:1}
{/if}
</strong>
{$name|wp_specialchars:1}
{/if}
</strong>

{include file="shared:commentadminctrls.tpl"}

<p class="date">

<a href="{$entryid|link:comments_link}#{$id}" title="Permalink to {$name|wp_specialchars:1}'s comment">{$date|date_format_daily} {$lang.entryauthor.at} {$date|date_format:"`$fp_config.locale.timeformat`"}</a>
</p>

{$content|tag:comment_text}

{include file="shared:commentadminctrls.tpl"} {* this shows edit/delete links *}
</li>

<p class="date">
<a href="{$entryid|link:comments_link}#{$id}" title="Permalink to {$name|wp_specialchars:1}'s comment">{$date|date_format_daily} {$lang.entryauthor.at} {$date|date_format:"`$fp_config.locale.timeformat`"}</a>
</p>
{/comment}

{$content|tag:comment_text}
</ol>
{/comment_block}

</li>
{/comment}
</ol>
{/comment_block}
{/entry}

{/entry}
{capture assign='fp_nextpage'}{strip}{nextpage}{/strip}{/capture}
{capture assign='fp_prevpage'}{strip}{prevpage}{/strip}{/capture}
{if $fp_nextpage != '' || $fp_prevpage != ''}

{capture assign='fp_nextpage'}{strip}{nextpage}{/strip}{/capture}
{capture assign='fp_prevpage'}{strip}{prevpage}{/strip}{/capture}
{if $fp_nextpage != '' || $fp_prevpage != ''}
<div class="navigation">
{$fp_nextpage nofilter}{$fp_prevpage nofilter}
</div>
{/if}
<div class="navigation">

{$fp_nextpage nofilter}{$fp_prevpage nofilter}

</div>

{/if}

{/entry_block}
{/entry_block}

{include file="shared:comment-form.tpl"}
{include file="shared:comment-form.tpl"}

</div>
</div>

{include file="widgets.tpl"}
{include file="widgets.tpl"}

{*
<hr>
*}
{include file="footer.tpl"}
41 changes: 24 additions & 17 deletions fp-interface/themes/leggero/default.tpl
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{include file="header.tpl"}

<div id="main">


<div class="entry">
<h2 class="title">{$subject}</h2>
<div class="body">

{if isset($rawcontent) and $rawcontent} {$content}
{else} {include file=$content}{/if}


{include file="widgetstop.tpl"}

<div id="main">

<div class="entry">
<h2 class="title">{$subject}</h2>
<div class="body">

{if isset($rawcontent) and $rawcontent}

{$content}
{else}

{include file=$content}
{/if}

</div>
</div>

</div>
</div>

</div>

{include file="widgets.tpl"}


{include file="widgets.tpl"}


{include file="footer.tpl"}


Expand Down
Binary file modified fp-interface/themes/leggero/flatmaas-rev/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading