summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-03-10 19:13:59 +0100
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-03-10 19:13:59 +0100
commit06af2ce37c3e6f2111d3be8ae91da94873609ec6 (patch)
tree39d13b0bd50638e31812e0f1496d50fa8ae58f9a
parentaacaeacf9625cc3f0e281fb9e64a029a906cbc91 (diff)
downloadgigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.tar.gz
gigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.tar.bz2
gigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.zip
added help file for reviewers
-rw-r--r--giglogadmin.php43
-rw-r--r--includes/admin/helpfiles/instr_reviewers.php116
-rw-r--r--includes/admin/helpfiles/instrunctions.php58
3 files changed, 217 insertions, 0 deletions
diff --git a/giglogadmin.php b/giglogadmin.php
index c9defd4..b711baa 100644
--- a/giglogadmin.php
+++ b/giglogadmin.php
@@ -19,6 +19,49 @@
+/*Andrea's attempt at creating help files. Didn't get it to work inside giglogadmin class so it's all defined before that section */
+ require_once __DIR__ . '/includes/admin/helpfiles/instrunctions.php';
+ require_once __DIR__ . '/includes/admin/helpfiles/instr_reviewers.php';
+ add_action( 'admin_menu', 'add_help_pages');
+
+ function add_help_pages() {
+
+ add_menu_page(
+
+ "Help for ET users", // Page title
+
+ "Help for ET users", // Menu title
+
+ "upload_files", // Will show for users with this capability
+
+ "helpfiles", // menu slug
+
+ array( 'Instructions_Page', 'render_instr_html' ), // callable
+
+ 'dashicons-tickets-alt', // Icon url
+
+ 10); // Position, just below 'Media'
+
+
+ add_submenu_page(
+
+ "helpfiles", // parent slug
+
+ "Reviewer help files", // page title
+
+ "Reviewer help files", // menu title
+
+ "upload_files", // required capability
+
+ "reviewer_help", // menu slug
+
+ array( 'Instructions_Reviewers', 'render_instr_rev_html' )); // callable
+
+
+ }
+
+
+
if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php';
require_once __DIR__ . '/includes/public/shortcodes/giglog_display_unprocessed.php';
diff --git a/includes/admin/helpfiles/instr_reviewers.php b/includes/admin/helpfiles/instr_reviewers.php
new file mode 100644
index 0000000..51c2c48
--- /dev/null
+++ b/includes/admin/helpfiles/instr_reviewers.php
@@ -0,0 +1,116 @@
+<?php
+
+/*
+
+ * Copyright (C) 2021 Harald Eilertsen, Andrea Chirulescu
+
+ *
+
+ * This program is free software: you can redistribute it and/or modify
+
+ * it under the terms of the GNU Affero General Public License as
+
+ * published by the Free Software Foundation, either version 3 of the
+
+ * License, or (at your option) any later version.
+
+ *
+
+ * This program is distributed in the hope that it will be useful,
+
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
+ * GNU Affero General Public License for more details.
+
+ *
+
+ * You should have received a copy of the GNU Affero General Public License
+
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ */
+
+
+
+if ( !class_exists( 'Instructions_Reviewers' ) ) {
+
+ class Instructions_Reviewers {
+
+ static function render_instr_rev_html() {
+
+ ?>
+
+ <div class="wrap">
+
+<!-- wp:paragraph -->
+<p>Click Post -&gt; Add new on the tool bar</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:image {"id":812,"sizeSlug":"large","linkDestination":"none"} -->
+<figure class="wp-block-image size-large"><img class="wp-image-812" src="https://wp.eternal-terror.com/wp-content/uploads/2021/03/image.png" alt=""></figure>
+<!-- /wp:image -->
+
+<!-- wp:paragraph -->
+<p>First thing to do is to load the correct template from the post menu on the right</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:image {"id":814,"sizeSlug":"large","linkDestination":"none"} -->
+<figure class="wp-block-image size-large"><img class="wp-image-814" src="https://wp.eternal-terror.com/wp-content/uploads/2021/03/image-1.png" alt=""></figure>
+<!-- /wp:image -->
+
+<!-- wp:paragraph -->
+<p>You have some basic instructions in the template that loads, but it will anyway be reviewed before publishing.</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>It would be nice if you could fill as much info as possible based on the template, upload the album image (please don't upload very big files, nor very small images that don't scale well on bigger screens)</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>In order to upload image, click on the image placeholder in the template - where it says Album Cover be here and use the Add Media button</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:image {"id":817,"sizeSlug":"large","linkDestination":"none"} -->
+<figure class="wp-block-image size-large"><img class="wp-image-817" src="https://wp.eternal-terror.com/wp-content/uploads/2021/03/image-2.png" alt=""></figure>
+<!-- /wp:image -->
+
+<!-- wp:paragraph -->
+<p>Use upload files tab in the Media management and upload your image. You can just drag and drop from your PC, no need to browse to its location.</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>As soon as you placed it on the screen, it gets uploaded and you get taken back to the list of all images. Your newly created image is now selected. You might like to have this sorted by your images in the drop down menu (I'll check to see if this can be default/restricted)</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>Just click insert into post, no need to select anything else (unless you want to properly align it to the left already)</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>&nbsp;</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>After you have entered all info in the review text, please add some tags and the correct category - album, book, concert review and UNSELECT any other category that might be selected by default. Leave everything else as it is</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>When you click publish, you will be asked if you are sure you want to submit for review. You are not allowed to automatically publish the posts. An email is sent to an ET inbox warning that you have published new content. If you want to add any info about your review, please do it by mail (mainly if it is urgent)</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>&nbsp;</p>
+<!-- /wp:paragraph -->
+ </div>
+
+ <?php
+
+ }
+
+ }
+
+}
+
+?> \ No newline at end of file
diff --git a/includes/admin/helpfiles/instrunctions.php b/includes/admin/helpfiles/instrunctions.php
new file mode 100644
index 0000000..3f5c49b
--- /dev/null
+++ b/includes/admin/helpfiles/instrunctions.php
@@ -0,0 +1,58 @@
+<?php
+
+/*
+
+ * Copyright (C) 2021 Harald Eilertsen, Andrea Chirulescu
+
+ *
+
+ * This program is free software: you can redistribute it and/or modify
+
+ * it under the terms of the GNU Affero General Public License as
+
+ * published by the Free Software Foundation, either version 3 of the
+
+ * License, or (at your option) any later version.
+
+ *
+
+ * This program is distributed in the hope that it will be useful,
+
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
+ * GNU Affero General Public License for more details.
+
+ *
+
+ * You should have received a copy of the GNU Affero General Public License
+
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ */
+
+
+
+if ( !class_exists( 'Instructions_Page' ) ) {
+
+ class Instructions_Page {
+
+ static function render_instr_html() {
+
+ ?>
+
+ <div class="wrap">
+Pick a help file to go through
+
+ </div>
+
+ <?php
+
+ }
+
+ }
+
+}
+
+?> \ No newline at end of file