From: Steve Sutton Date: Thu, 13 Jun 2019 19:13:48 +0000 (-0400) Subject: Add help files X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3e03f2bb3d86ed94acad9dddae7229be52956c39;p=WP-Plugins%2Fglm-member-db-messages.git Add help files For plugin help section. --- diff --git a/setup/help.php b/setup/help.php index bebd2e2..bb247d3 100644 --- a/setup/help.php +++ b/setup/help.php @@ -53,23 +53,26 @@ add_action( 'current_screen', array( 'name' => 'dashboard', 'title' => 'Dashboard', - 'subs' => array( - array( - 'name' => 'list', - 'title' => 'Email Messages', - ), - array( - 'name' => 'listTemplates', - 'title' => 'Email Templates', - ), - ), + ), + array( + 'name' => 'search', + 'title' => 'Search', + ), + array( + 'name' => 'messages', + 'title' => 'Email Messages', + ), + array( + 'name' => 'templates', + 'title' => 'Email Templates', ), ); foreach ( $helpTabs as $tab ) { - $glmAction = isset( $_REQUEST['glm_action'] ) ? filter_var( $_REQUEST['glm_action'] ) : 'dashboard'; - if ( $glmAction === $tab['name'] ) { - $fileName = GLM_MEMBERS_BILLING_PLUGIN_SETUP_PATH . '/help/' . $tab['name'] . '.html'; + // $glmAction = isset( $_REQUEST['glm_action'] ) ? filter_var( $_REQUEST['glm_action'] ) : 'dashboard'; + // if ( $glmAction === $tab['name'] ) { + $fileName = GLM_MEMBERS_MESSAGES_PLUGIN_SETUP_PATH . '/help/' . $tab['name'] . '.html'; + // echo '
$fileName: ' . print_r( $fileName, true ) . '
'; if ( is_file( $fileName ) ) { $screen->add_help_tab( array( @@ -83,23 +86,26 @@ add_action( 'current_screen', } $option = isset( $_REQUEST['option'] ) ? filter_var( $_REQUEST['option'] ) : 'dashboard'; // Check for subs - if ( isset( $tab['subs'] ) && is_array( $tab['subs'] ) ) { - foreach ( $tab['subs'] as $sub ) { - $fileName = GLM_MEMBERS_BILLING_PLUGIN_SETUP_PATH . '/help/' . $option . '-' . $sub['name'] . '.html'; - if ( is_file( $fileName ) ) { - $screen->add_help_tab( - array( - 'id' => 'glm-member-db-messages-help-'. $option . '-' . $sub['name'], - 'title' => __( $sub['title'] ), - 'content' => '', - 'callback' => 'glm\messages\help\loadHelpFile', - 'extra' => $option . '-' . $sub['name'], - ) - ); - } - } - } - } + // if ( isset( $tab['subs'] ) && is_array( $tab['subs'] ) ) { + // foreach ( $tab['subs'] as $sub ) { + // $fileName = GLM_MEMBERS_MESSAGES_PLUGIN_SETUP_PATH . '/help/' . $option . '-' . $sub['name'] . '.html'; + // echo '
$fileName: ' . print_r( $fileName, true ) . '
'; + // $isFile = is_file($fileName); + // var_dump($isFile); + // if ( is_file( $fileName ) ) { + // $screen->add_help_tab( + // array( + // 'id' => 'glm-member-db-messages-help-'. $option . '-' . $sub['name'], + // 'title' => __( $sub['title'] ), + // 'content' => '', + // 'callback' => 'glm\messages\help\loadHelpFile', + // 'extra' => $option . '-' . $sub['name'], + // ) + // ); + // } + // } + // } + // } } // Help sidebars diff --git a/setup/help/messages-list.html b/setup/help/messages-list.html deleted file mode 100644 index f7e3770..0000000 --- a/setup/help/messages-list.html +++ /dev/null @@ -1 +0,0 @@ -Help diff --git a/setup/help/messages.html b/setup/help/messages.html new file mode 100644 index 0000000..f5abb27 --- /dev/null +++ b/setup/help/messages.html @@ -0,0 +1,9 @@ +

Email Messages

+

This tab show all active messages that you have

+

You'll also see the last updated, queued and sent times.

+

Queued time is when your mesage was queued.

+

Sent time is when your mesage was proccessed and sent.

+

To preview the message click Preview. This will show the template with test message data.

+

Images

+

Most email clients will not properly align images right or left of text.

+

Images that need to be aligned left or right of content will have to be done in a table. To add a table click Insert > Table.

diff --git a/setup/help/search.html b/setup/help/search.html new file mode 100644 index 0000000..699e4c9 --- /dev/null +++ b/setup/help/search.html @@ -0,0 +1,9 @@ +

Search

+ + + + diff --git a/setup/help/templates.html b/setup/help/templates.html new file mode 100644 index 0000000..b4434d9 --- /dev/null +++ b/setup/help/templates.html @@ -0,0 +1,3 @@ +

Email Templates

+

Here you'll see each email template for the message system

+

To preview the template click Preview. This will show the template with test message data.