'use' => 'a'
),
+ // Front-end Member Detail - Show Image Gallery
+ 'detail_show_imagegallery' => array(
+ 'field' => 'detail_show_imagegallery',
+ 'type' => 'checkbox',
+ 'default' => false,
+ 'use' => 'a'
+ ),
+
/*
* Front-end Member Detail Map Options
*/
'type' => 'checkbox',
'default' => false,
'use' => 'a'
- ),
-
-
-
-
+ )
);
front-config['detail_show_categories'] = true
front-config['detail_show_creditcards'] = true
front-config['detail_show_amenities'] = true
+front-config['detail_show_imagegallery'] = true
;
; End of site configuration options
}
+/*
+ * If not doing debug, then just keep all of the debug messages cleared
+ */
+if (!GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ delete_option('glmMembersAdminNoticeAlerts');
+ delete_option('glmMembersAdminNotices');
+ delete_option('glmMembersAdminNoticeProcess');
+ delete_option('glmMembersAdminNoticeDataBlocks');
+}
+
/*
* Check if there's any startup notices in this file. (stuff that happens before we get all setup)
*
detail_show_categories BOOLEAN DEFAULT true,
detail_show_creditcards BOOLEAN DEFAULT true,
detail_show_amenities BOOLEAN DEFAULT true,
+ detail_show_imagegallery BOOLEAN DEFAULT true,
detail_map_show_logo BOOLEAN DEFAULT false,
detail_map_logo_size TINYTEXT NULL,
detail_map_show_descr BOOLEAN DEFAULT false,
$where = '';
$haveMember = false;
+ $haveImageGallery = false;
// If member ID submitted in the URL
if (isset($_REQUEST['id']) && $_REQUEST['id'] > 0) {
}
+ // Also get any image gallery images
+ require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+ $Images = new GlmDataImages($this->wpdb, $this->config);
+ $imageGallery = $Images->getGallery($this->config['ref_type_numb']['MemberInfo'], $memberInfoID);
+ $haveImageGallery = ($imageGallery != false);
+
// Compile template data
$templateData = array(
'haveMember' => $haveMember,
'member' => $memberData,
+ 'haveImageGallery' => $haveImageGallery,
+ 'imageGallery' => $imageGallery
);
// Return status, suggested view, and data to controller
<tr><th>Show Categories:</th><td><input type="checkbox" name="detail_show_categories"{if $settings.fieldData.detail_show_categories.value} checked="checked"{/if}></td></tr>
<tr><th>Show Credit Cards Accepted:</th><td><input type="checkbox" name="detail_show_creditcards"{if $settings.fieldData.detail_show_creditcards.value} checked="checked"{/if}></td></tr>
<tr><th>Show Amenities:</th><td><input type="checkbox" name="detail_show_amenities"{if $settings.fieldData.detail_show_amenities.value} checked="checked"{/if}></td></tr>
+ <tr><th>Show Image Gallery:</th><td><input type="checkbox" name="detail_show_imagegallery"{if $settings.fieldData.detail_show_imagegallery.value} checked="checked"{/if}></td></tr>
</table>
</td>
</tr>
{/if}
{if $detail_show_amenities}
<p>
- <p>Amenities go here</p>
+ Amenities go here
</p>
{/if}
</div>
</div>
+
+<!-- Image Gallery -->
+ {if $detail_show_imagegallery}
+ <div class="row"><div class="small-12 columns"><b>Image Gallery</b></div></div>
+
+ <div class="row">
+ <div class="small-12 columns">
+ <ul class="clearing-thumbs small-block-grid-2 medium-block-grid-3 large-block-grid-4" data-clearing>
+ {foreach $imageGallery as $i}
+ <li><a href="{$glmPluginMediaURL}/images/large/{$i.file_name}"><img data-caption="{$i.caption}" src="{$glmPluginMediaURL}/images/small/{$i.file_name}"></a></li>
+ {/foreach}
+ </ul>
+ </div>
+ </div>
+ {/if}
</div>
</div>