From b6f0317bde1b6d9a9ac5d81a660865a7aa9ad13d Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 8 May 2016 10:54:30 +0200 Subject: advanced build (1/2): a small refactor of index generating procedure; generation strategies --- templates/themes/recent/theme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/themes/recent/theme.php') diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index f44e2529..95921c35 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -25,10 +25,11 @@ $this->excluded = explode(' ', $settings['exclude']); if ($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete') { - if ($config['smart_build']) { + $action = generation_strategy('sb_recent', array()); + if ($action == 'delete') { file_unlink($config['dir']['home'] . $settings['html']); } - else { + elseif ($action == 'rebuild') { file_write($config['dir']['home'] . $settings['html'], $this->homepage($settings)); } } -- cgit v1.3 From fed9065cf1fe759e20ec10baf0aba1309ee6f8ab Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 19 Jun 2016 02:23:24 +0200 Subject: skip non-image files in recent themes; fixes vichan-devel/vichan#185 --- templates/themes/recent/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/themes/recent/theme.php') diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index 95921c35..a826048f 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -65,7 +65,7 @@ if (isset($post['files'])) $files = json_decode($post['files']); - if ($files[0]->file == 'deleted') continue; + if ($files[0]->file == 'deleted' || $files[0]->thumb == 'file') continue; // board settings won't be available in the template file, so generate links now $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] -- cgit v1.3 From bf78c3a46ec5db6106713e78e30a9437d9ae0f28 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Dec 2016 18:23:18 +0900 Subject: Changed message and CSS on the recent page / e.g. the recent theme. Cyberpunk is DUCK. --- templates/themes/recent/recent.css | 8 ++++++-- templates/themes/recent/recent.html | 10 ++++++---- templates/themes/recent/theme.php | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'templates/themes/recent/theme.php') diff --git a/templates/themes/recent/recent.css b/templates/themes/recent/recent.css index 1ec5dc50..2559bcc3 100644 --- a/templates/themes/recent/recent.css +++ b/templates/themes/recent/recent.css @@ -44,14 +44,14 @@ body color: #7fdd57; border: 0px solid #060; float: left; - width: 300px; + width: 50%; } .box.right { background: #0b000f; color: #7fdd57; border: 0px solid #006; float: right; - width: 436px; + width: 50%; } .box h2 { @@ -170,3 +170,7 @@ div.ban h2:not(:nth-child(1)) { border-top: 0px solid #0b000f; } + +div.footer{ +clear:both; +} diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html index f0276ac7..45b627d8 100644 --- a/templates/themes/recent/recent.html +++ b/templates/themes/recent/recent.html @@ -9,7 +9,6 @@ {% if config.url_favicon %}{% endif %} - {% if config.default_stylesheet.1 != '' %}{% endif %} {% if config.font_awesome %}{% endif %} @@ -24,12 +23,14 @@
+
mascot +

-

CYBERPUNK IS DEAD

Pour out the Soykaf, lurk, and read the rules before posting!
- +

CYBERPUNK IS DUCK

Pour out the Soykaf, lurk, and read the rules before posting!
+
mascot

@@ -67,13 +68,14 @@
- + {% endfilter %} diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index a826048f..d4d4e9b8 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -19,7 +19,7 @@ global $config, $_theme; if ($action == 'all') { - copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . $settings['css']); + copy('templates/themes/recent/' . $settings['basecss'], $config['dir']['home'] . "stylesheets/" . $settings['css']); } $this->excluded = explode(' ', $settings['exclude']); -- cgit v1.3