Fixed some undefined references encountered during Add-On registration for when certa...
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 9 Feb 2016 16:11:51 +0000 (11:11 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 9 Feb 2016 16:11:51 +0000 (11:11 -0500)
glm-member-db-sample.php
setup/shortcodes.php

index a89a81c..11aef75 100644 (file)
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Sample
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 0.0.1
+ * Version: 0.0.2
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -53,7 +53,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_SAMPLE_PLUGIN_VERSION', '0.0.1');
+define('GLM_MEMBERS_SAMPLE_PLUGIN_VERSION', '0.0.2');
 // define('GLM_MEMBERS_SAMPLE_PLUGIN_DB_VERSION', '0.0.1');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
@@ -180,7 +180,7 @@ function glmMembersRegisterSample($addOns) {
     );
 
     // If we have database tables for this plugin/addon, provide that data also
-    if ($havePluginDatabase) {
+    if ($GLOBALS['havePluginDatabase']) {
         $addOns[GLM_MEMBERS_SAMPLE_PLUGIN_SLUG]['database'] = array(
             'dbPrefix' => GLM_MEMBERS_SAMPLE_PLUGIN_DB_PREFIX,
             'dbCurrentVersion' => GLM_MEMBERS_SAMPLE_PLUGIN_DB_VERSION,
@@ -188,6 +188,8 @@ function glmMembersRegisterSample($addOns) {
             'dbScriptPath' => GLM_MEMBERS_SAMPLE_PLUGIN_DB_SCRIPTS,
             'dbVersions' => $GLOBALS['glmMembersSampleDbVersions']
         );
+    } else {
+        $addOns[GLM_MEMBERS_SAMPLE_PLUGIN_SLUG]['database'] = false;
     }
 
     // Return the array with our data added
index dd7f9dc..bcb28fa 100644 (file)
  *      ... additional short-codes
  * )
  *
+ * Shortcode descriptions sample
+ *
+ *  <tr>
+ *       <th>[glm-members-sample-shortcode]</th>
+ *       <td>&nbsp;</td>
+ *       <td width="50%">
+ *           <p>
+ *           Displays something related to this add-on.
+ *           </p>
+ *       </td>
+ *   </tr>
+ *   <tr>
+ *       <td>&nbsp;</td>
+ *       <th>type="{types}"</th>
+ *       <td>
+ *           <p>
+ *           The "type" attribute is used to select the type of data to be displayed.
+ *           Below is a list of available list types.
+ *           </p>
+ *           <p>
+ *               <table width="100%">
+ *                   <tr><th colspan=3">List Types</th></tr>
+ *                   <tr><td>one</td><td>Type One</td></tr>
+ *                   <tr><td>two</td><td>Type Two</td></tr>
+ *               </table>
+ *           </p>
+ *
+ *       </td>
+ *   </tr>
+ *
  */
+
+$glmMembersSampleShortcodes = array(
+);
+
+$glmMembersSampleShortcodesDescription = '';
+