From 06af2ce37c3e6f2111d3be8ae91da94873609ec6 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Wed, 10 Mar 2021 19:13:59 +0100 Subject: added help file for reviewers --- giglogadmin.php | 43 ++++++++++ includes/admin/helpfiles/instr_reviewers.php | 116 +++++++++++++++++++++++++++ includes/admin/helpfiles/instrunctions.php | 58 ++++++++++++++ 3 files changed, 217 insertions(+) create mode 100644 includes/admin/helpfiles/instr_reviewers.php create mode 100644 includes/admin/helpfiles/instrunctions.php 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 @@ +. + + */ + + + +if ( !class_exists( 'Instructions_Reviewers' ) ) { + + class Instructions_Reviewers { + + static function render_instr_rev_html() { + + ?> + +
+ + +

Click Post -> Add new on the tool bar

+ + + +
+ + + +

First thing to do is to load the correct template from the post menu on the right

+ + + +
+ + + +

You have some basic instructions in the template that loads, but it will anyway be reviewed before publishing.

+ + + +

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)

+ + + +

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

+ + + +
+ + + +

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.

+ + + +

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)

+ + + +

Just click insert into post, no need to select anything else (unless you want to properly align it to the left already)

+ + + +

 

+ + + +

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

+ + + +

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)

+ + + +

 

+ +
+ + \ 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 @@ +. + + */ + + + +if ( !class_exists( 'Instructions_Page' ) ) { + + class Instructions_Page { + + static function render_instr_html() { + + ?> + +
+Pick a help file to go through + +
+ + \ No newline at end of file -- cgit v1.2.3