From f30b8cdbb7af1a8464f98ac0dc4e50fb1ad214f3 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 4 Oct 2016 10:41:56 -0400 Subject: [PATCH] Cleaned up shortcode attributes list and included missing options. --- css/admin.css | 12 +++ setup/rolesAndCapabilities.php | 4 +- setup/shortcodes.php | 148 +++++++++++++++++++++++---------- 3 files changed, 119 insertions(+), 45 deletions(-) diff --git a/css/admin.css b/css/admin.css index 6f06b8be..42bd5030 100644 --- a/css/admin.css +++ b/css/admin.css @@ -407,3 +407,15 @@ input[type=submit], input[type=file] { color: #888; font-weight: 400; } + + +.shortcode-option-list span +{ + display: inline-block; + width: 200px; +} +.shortcode-option-list-title +{ + font-weight: bold; +} + diff --git a/setup/rolesAndCapabilities.php b/setup/rolesAndCapabilities.php index 1189b428..1889047d 100644 --- a/setup/rolesAndCapabilities.php +++ b/setup/rolesAndCapabilities.php @@ -66,7 +66,7 @@ $this->addRoleCapability('glm_members_settings', 'administrator' => true, 'author' => false, 'contributor' => false, - 'editor' => false, + 'editor' => true, 'subscriber' => false ) ); @@ -77,7 +77,7 @@ $this->addRoleCapability('glm_members_management', 'administrator' => true, 'author' => false, 'contributor' => false, - 'editor' => true, + 'editor' => false, 'subscriber' => false ) ); diff --git a/setup/shortcodes.php b/setup/shortcodes.php index d6da5fad..51501dbc 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -322,30 +322,65 @@ $glmMembersShortcodesDescription = ' show regardless of any settings, although there is a setting to show this as a link or not as a link.

-

- - - - - - - - - - - - - - - - - - - - - -
Global Options
allnone
Map Options
mapmap-name-linkmap-logo
map-openedmap-descriptionmap-short-description
map-streetmap-city-state-zipmap-address
map-regionmap-phonemap-country
map-urlmap-url-new-targetmap-toll-free
map-categoriesmap-credit-cardsmap-email
map-amenities
Search Form Options
searchsearch-textsearch-categories
search-amenitiessearch-alpha
Member List Options
listname-linklogo
addressstreetcity-state-zip
countryregiondescription
short-descriptionphonetoll-free
urlurl-new-targetemail
categoriescredit-cardsamenities
+

+ Global Options
+ all + none

+

+ Map Options
+ map + map-name-link + map-logo + map-opened + map-description + map-short-description + map-street + map-city-state-zip + map-address + map-region + map-phone + map-country + map-url + map-url-new-target + map-toll-free + map-categories + map-credit-cards + map-email +

+

+ Search Form Options
+ search + search-text + search-categories + search-amenities + search-alpha + search-filters-opened + logo-filler +

+

+ Member List Options
+ list + name-link + logo + address + street + city-state-zip + country + region + description + short-description + phone + toll-free + url + url-new-target + email + categories + credit-cards + amenities + packages + packages-link +

@@ -414,26 +449,53 @@ $glmMembersShortcodesDescription = ' show regardless of any settings, although there is a setting to show this as a link or not as a link.

-

- - - - - - - - - - - - - - - - - - - +

+ Global Options
+ all + none +

+

+ Map Options
+ map + map-logo + map-description + map-short-description + map-address + map-street + map-city-state-zip + map-country + map-region + map-phone + map-toll-free + map-url + map-url-new-target + map-email + map-categories + map-credit-cards + map-amenities +

+

+ Directions Options
+ directions +

+

+ Member Detail Options
+ logo + address + street + city-state-zip + country + region + description + short-description + phone + toll-free + url + url-new-target + email + categories + credit-cards + amenities

Global Options
allnone
Map Options
mapmap-logomap-description
map-short-descriptionmap-addressmap-street
map-city-state-zipmap-countrymap-region
map-phonemap-toll-freemap-url
map-url-new-targetmap-emailmap-categories
map-credit-cardsmap-amenities
Directions Options
directions
Member Detail Options
logoaddressstreet
city-state-zipcountryregion
descriptionshort-descriptionphone
toll-freeurlurl-new-target
emailcategoriescredit-cards
amenities

-- 2.17.1