Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugins] Add filters to manifest files. #20410

Merged
merged 16 commits into from
May 15, 2018
3 changes: 3 additions & 0 deletions plugins/authentication/gmail/gmail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="PLG_GMAIL_FIELD_APPLYSUFFIX_LABEL"
description="PLG_GMAIL_FIELD_APPLYSUFFIX_DESC"
default="0"
filter="integer"
>
<option value="0">PLG_GMAIL_FIELD_VALUE_NOAPPLYSUFFIX</option>
<option value="1">PLG_GMAIL_FIELD_VALUE_APPLYSUFFIXMISSING</option>
Expand All @@ -46,6 +47,7 @@
label="PLG_GMAIL_FIELD_VERIFYPEER_LABEL"
description="PLG_GMAIL_FIELD_VERIFYPEER_DESC"
default="1"
filter="integer"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
Expand All @@ -66,6 +68,7 @@
label="PLG_GMAIL_FIELD_BACKEND_LOGIN_LABEL"
description="PLG_GMAIL_FIELD_BACKEND_LOGIN_DESC"
default="0"
filter="integer"
class="btn-group btn-group-yesno"
>
<option value="1">JENABLED</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/authentication/ldap/ldap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
label="PLG_LDAP_FIELD_V3_LABEL"
description="PLG_LDAP_FIELD_V3_DESC"
default="0"
filter="integer"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
Expand All @@ -59,6 +60,7 @@
label="PLG_LDAP_FIELD_NEGOCIATE_LABEL"
description="PLG_LDAP_FIELD_NEGOCIATE_DESC"
default="0"
filter="integer"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
Expand All @@ -71,6 +73,7 @@
label="PLG_LDAP_FIELD_REFERRALS_LABEL"
description="PLG_LDAP_FIELD_REFERRALS_DESC"
default="0"
filter="integer"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
Expand Down
1 change: 1 addition & 0 deletions plugins/content/emailcloak/emailcloak.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="PLG_CONTENT_EMAILCLOAK_MODE_LABEL"
description="PLG_CONTENT_EMAILCLOAK_MODE_DESC"
default="1"
filter="integer"
>
<option value="0">PLG_CONTENT_EMAILCLOAK_NONLINKABLE</option>
<option value="1">PLG_CONTENT_EMAILCLOAK_LINKABLE</option>
Expand Down
2 changes: 2 additions & 0 deletions plugins/content/joomla/joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
description="PLG_CONTENT_JOOMLA_FIELD_CHECK_CATEGORIES_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -38,6 +39,7 @@
description="PLG_CONTENT_JOOMLA_FIELD_EMAIL_NEW_FE_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down
5 changes: 4 additions & 1 deletion plugins/content/pagebreak/pagebreak.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
description="PLG_CONTENT_PAGEBREAK_SITE_TITLE_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
Expand All @@ -39,6 +40,7 @@
description="PLG_CONTENT_PAGEBREAK_SITE_ARTICLEINDEX_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
Expand All @@ -49,7 +51,6 @@
type="text"
label="PLG_CONTENT_PAGEBREAK_SITE_ARTICLEINDEXTEXT"
description="PLG_CONTENT_PAGEBREAK_SITE_ARTICLEINDEXTEXT_DESC"
default=""
showon="article_index:1"
/>

Expand All @@ -60,6 +61,7 @@
description="PLG_CONTENT_PAGEBREAK_TOC_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
Expand All @@ -72,6 +74,7 @@
description="PLG_CONTENT_PAGEBREAK_SHOW_ALL_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/content/pagenavigation/pagenavigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
label="PLG_PAGENAVIGATION_FIELD_POSITION_LABEL"
description="PLG_PAGENAVIGATION_FIELD_POSITION_DESC"
default="1"
filter="integer"
>
<option value="1">PLG_PAGENAVIGATION_FIELD_VALUE_BELOW</option>
<option value="0">PLG_PAGENAVIGATION_FIELD_VALUE_ABOVE</option>
Expand All @@ -38,6 +39,7 @@
label="PLG_PAGENAVIGATION_FIELD_RELATIVE_LABEL"
description="PLG_PAGENAVIGATION_FIELD_RELATIVE_DESC"
default="1"
filter="integer"
>
<option value="1">PLG_PAGENAVIGATION_FIELD_VALUE_ARTICLE</option>
<option value="0">PLG_PAGENAVIGATION_FIELD_VALUE_TEXT</option>
Expand All @@ -49,6 +51,7 @@
label="PLG_PAGENAVIGATION_FIELD_DISPLAY_LABEL"
description="PLG_PAGENAVIGATION_FIELD_DISPLAY_DESC"
default="0"
filter="integer"
>
<option value="0">PLG_PAGENAVIGATION_FIELD_VALUE_NEXTPREV</option>
<option value="1">PLG_PAGENAVIGATION_FIELD_VALUE_TITLE</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/search/categories/categories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
label="JFIELD_PLG_SEARCH_SEARCHLIMIT_LABEL"
description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC"
default="50"
filter="integer"
size="5"
/>

Expand All @@ -36,6 +37,7 @@
description="JFIELD_PLG_SEARCH_ALL_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -48,6 +50,7 @@
description="JFIELD_PLG_SEARCH_ARCHIVED_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/search/contacts/contacts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="JFIELD_PLG_SEARCH_SEARCHLIMIT_LABEL"
description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC"
default="50"
filter="integer"
size="5"
/>

Expand All @@ -35,6 +36,7 @@
description="JFIELD_PLG_SEARCH_ALL_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -47,6 +49,7 @@
description="JFIELD_PLG_SEARCH_ARCHIVED_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/search/content/content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="PLG_SEARCH_CONTENT_FIELD_SEARCHLIMIT_LABEL"
description="PLG_SEARCH_CONTENT_FIELD_SEARCHLIMIT_DESC"
default="50"
filter="integer"
size="5"
/>

Expand All @@ -35,6 +36,7 @@
description="PLG_SEARCH_CONTENT_FIELD_CONTENT_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -47,6 +49,7 @@
description="PLG_SEARCH_CONTENT_FIELD_ARCHIVED_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down
3 changes: 3 additions & 0 deletions plugins/search/newsfeeds/newsfeeds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="JFIELD_PLG_SEARCH_SEARCHLIMIT_LABEL"
description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC"
default="50"
filter="integer"
size="5"
/>

Expand All @@ -35,6 +36,7 @@
description="JFIELD_PLG_SEARCH_ALL_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -47,6 +49,7 @@
description="JFIELD_PLG_SEARCH_ARCHIVED_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JON</option>
<option value="0">JOFF</option>
Expand Down
2 changes: 1 addition & 1 deletion plugins/search/tags/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function onContentSearch($text, $phrase = '', $ordering = '', $areas = nu
}
}

if (!$this->params->get('show_tagged_items'))
if (!$this->params->get('show_tagged_items', 0))
{
return $rows;
}
Expand Down
2 changes: 2 additions & 0 deletions plugins/search/tags/tags.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
label="JFIELD_PLG_SEARCH_SEARCHLIMIT_LABEL"
description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC"
default="50"
filter="integer"
size="5"
/>

Expand All @@ -35,6 +36,7 @@
description="PLG_SEARCH_TAGS_FIELD_SHOW_TAGGED_ITEMS_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down
1 change: 1 addition & 0 deletions plugins/twofactorauth/totp/totp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
label="PLG_TWOFACTORAUTH_TOTP_SECTION_LABEL"
description="PLG_TWOFACTORAUTH_TOTP_SECTION_DESC"
default="3"
filter="integer"
class="btn-group"
>
<option value="1">PLG_TWOFACTORAUTH_TOTP_SECTION_SITE</option>
Expand Down
1 change: 1 addition & 0 deletions plugins/twofactorauth/yubikey/yubikey.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
label="PLG_TWOFACTORAUTH_YUBIKEY_SECTION_LABEL"
description="PLG_TWOFACTORAUTH_YUBIKEY_SECTION_DESC"
default="3"
filter="integer"
class="btn-group"
>
<option value="1">PLG_TWOFACTORAUTH_YUBIKEY_SECTION_SITE</option>
Expand Down
2 changes: 2 additions & 0 deletions plugins/user/contactcreator/contactcreator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
label="JCATEGORY"
description="PLG_CONTACTCREATOR_FIELD_CATEGORY_DESC"
extension="com_contact"
filter="integer"
/>

<field
Expand All @@ -42,6 +43,7 @@
description="PLG_CONTACTCREATOR_FIELD_AUTOPUBLISH_DESC"
class="btn-group btn-group-yesno"
default="0"
filter="integer"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand Down