From 2cba42be6879d36c7c3d9ab21a952b75e9c3ec21 Mon Sep 17 00:00:00 2001 From: ciar4n Date: Thu, 13 Jul 2017 12:07:44 +0100 Subject: [PATCH 1/4] Remove from views --- .../com_content/tmpl/article/default.php | 7 -- .../tmpl/article/default_links.php | 79 ------------------- components/com_content/tmpl/form/edit.php | 21 ----- 3 files changed, 107 deletions(-) delete mode 100644 components/com_content/tmpl/article/default_links.php diff --git a/components/com_content/tmpl/article/default.php b/components/com_content/tmpl/article/default.php index ad02519dc3a86..6643191f2503e 100644 --- a/components/com_content/tmpl/article/default.php +++ b/components/com_content/tmpl/article/default.php @@ -94,10 +94,6 @@ item->event->beforeDisplayContent; ?> - urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) - || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> - loadTemplate('links'); ?> - get('access-view')) : ?> item); ?> item->pagination; ?> - urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))) : ?> - loadTemplate('links'); ?> - get('show_noauth') == true && $user->get('guest')) : ?> item); ?> diff --git a/components/com_content/tmpl/article/default_links.php b/components/com_content/tmpl/article/default_links.php deleted file mode 100644 index 7fd5fe433de4c..0000000000000 --- a/components/com_content/tmpl/article/default_links.php +++ /dev/null @@ -1,79 +0,0 @@ -item->urls); - -// Create shortcuts to some parameters. -$params = $this->item->params; -if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) : -?> - - diff --git a/components/com_content/tmpl/form/edit.php b/components/com_content/tmpl/form/edit.php index c3a7fc2b55492..11ae9e8686fc8 100644 --- a/components/com_content/tmpl/form/edit.php +++ b/components/com_content/tmpl/form/edit.php @@ -75,27 +75,6 @@ form->renderField('image_fulltext_alt', 'images'); ?> form->renderField('image_fulltext_caption', 'images'); ?> form->renderField('float_fulltext', 'images'); ?> - form->renderField('urla', 'urls'); ?> - form->renderField('urlatext', 'urls'); ?> -
-
- form->getInput('targeta', 'urls'); ?> -
-
- form->renderField('urlb', 'urls'); ?> - form->renderField('urlbtext', 'urls'); ?> -
-
- form->getInput('targetb', 'urls'); ?> -
-
- form->renderField('urlc', 'urls'); ?> - form->renderField('urlctext', 'urls'); ?> -
-
- form->getInput('targetc', 'urls'); ?> -
-
From 217f1b438c8e3763867c09681972927d92b38040 Mon Sep 17 00:00:00 2001 From: ciar4n Date: Thu, 13 Jul 2017 13:48:03 +0100 Subject: [PATCH 2/4] Remove from xml --- .../components/com_content/config.xml | 10 -- .../components/com_content/forms/article.xml | 124 ------------------ .../com_content/tmpl/article/default.xml | 10 -- 3 files changed, 144 deletions(-) diff --git a/administrator/components/com_content/config.xml b/administrator/components/com_content/config.xml index afd7619ae0e57..fc5a106730704 100644 --- a/administrator/components/com_content/config.xml +++ b/administrator/components/com_content/config.xml @@ -362,16 +362,6 @@ - - - -
JYES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
JYES - - - -
From ca7f481e20bdfe5c77c9ac74a4ab7acfec32ce0d Mon Sep 17 00:00:00 2001 From: ciar4n Date: Thu, 13 Jul 2017 13:48:30 +0100 Subject: [PATCH 3/4] Remove from edit.php --- administrator/components/com_content/tmpl/article/edit.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/administrator/components/com_content/tmpl/article/edit.php b/administrator/components/com_content/tmpl/article/edit.php index eae4cf2fad716..35f2c97b31b18 100644 --- a/administrator/components/com_content/tmpl/article/edit.php +++ b/administrator/components/com_content/tmpl/article/edit.php @@ -64,17 +64,12 @@ get('show_urls_images_backend') == 1) : ?>
-
+
form->renderField('images'); ?> form->getGroup('images') as $field) : ?> renderField(); ?>
-
- form->getGroup('urls') as $field) : ?> - renderField(); ?> - -
From 6474da1a71a35b444a250a9043769a9ff0b474d3 Mon Sep 17 00:00:00 2001 From: ciar4n Date: Thu, 13 Jul 2017 14:01:47 +0100 Subject: [PATCH 4/4] Languages strings and some missed bits --- .../components/com_content/config.xml | 8 +-- .../components/com_content/forms/article.xml | 8 +-- .../language/en-GB/en-GB.com_content.ini | 21 ++---- components/com_content/forms/article.xml | 72 ------------------- 4 files changed, 13 insertions(+), 96 deletions(-) diff --git a/administrator/components/com_content/config.xml b/administrator/components/com_content/config.xml index fc5a106730704..42cf80d01d820 100644 --- a/administrator/components/com_content/config.xml +++ b/administrator/components/com_content/config.xml @@ -432,8 +432,8 @@ @@ -444,8 +444,8 @@ diff --git a/administrator/components/com_content/forms/article.xml b/administrator/components/com_content/forms/article.xml index 9d742aede8b1b..d0c070937dba5 100644 --- a/administrator/components/com_content/forms/article.xml +++ b/administrator/components/com_content/forms/article.xml @@ -589,8 +589,8 @@ @@ -601,8 +601,8 @@ diff --git a/administrator/language/en-GB/en-GB.com_content.ini b/administrator/language/en-GB/en-GB.com_content.ini index 30631ec46c4df..8c59db4f0e91c 100644 --- a/administrator/language/en-GB/en-GB.com_content.ini +++ b/administrator/language/en-GB/en-GB.com_content.ini @@ -85,17 +85,6 @@ COM_CONTENT_FIELD_SHOW_CAT_TAGS_DESC="Show the tags for the category." COM_CONTENT_FIELD_SHOW_CAT_TAGS_LABEL="Show Tags" COM_CONTENT_FIELD_SHOW_TAGS_DESC="Show the tags for each article." COM_CONTENT_FIELD_SHOW_TAGS_LABEL="Show Tags" -COM_CONTENT_FIELD_URL_DESC="The actual link to which users will be redirected." -COM_CONTENT_FIELD_URL_LINK_TEXT_DESC="Text to display for the link." -COM_CONTENT_FIELD_URLA_LABEL="Link A" -COM_CONTENT_FIELD_URLA_LINK_TEXT_LABEL="Link A Text" -COM_CONTENT_FIELD_URLB_LABEL="Link B" -COM_CONTENT_FIELD_URLB_LINK_TEXT_LABEL="Link B Text" -COM_CONTENT_FIELD_URLC_LABEL="Link C" -COM_CONTENT_FIELD_URLC_LINK_TEXT_LABEL="Link C Text" -COM_CONTENT_FIELD_URLS_OPTIONS="URL Options" -COM_CONTENT_FIELD_URLSPOSITION_LABEL="Positioning of the Links" -COM_CONTENT_FIELD_URLSPOSITION_DESC="Display the links above or below the content." COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS="Use Article Settings" COM_CONTENT_FIELD_VERSION_DESC="A count of the number of times this article has been revised." COM_CONTENT_FIELD_VERSION_LABEL="Revision" @@ -107,7 +96,7 @@ COM_CONTENT_FIELDS_ARTICLE_FIELD_EDIT_TITLE="Articles: Edit Field" COM_CONTENT_FIELDS_TYPE_MODAL_ARTICLE="Article" COM_CONTENT_FIELDSET_PUBLISHING="Publishing" COM_CONTENT_FIELDSET_RULES="Permissions" -COM_CONTENT_FIELDSET_URLS_AND_IMAGES="Images and Links" +COM_CONTENT_FIELDSET_URLS_AND_IMAGES="Images" COM_CONTENT_FILTER_SEARCH_DESC="Search in title and alias. Prefix with ID: or AUTHOR: to search for an article ID or article author." COM_CONTENT_FILTER_SEARCH_LABEL="Search Articles" COM_CONTENT_FLOAT_DESC="Controls placement of the image." @@ -168,10 +157,10 @@ COM_CONTENT_SHARED_LABEL="Shared" COM_CONTENT_SHOW_ARTICLE_OPTIONS_DESC="Show or hide article options slider in the Backend article edit view. These options allow overriding of the global options." COM_CONTENT_SHOW_ARTICLE_OPTIONS_LABEL="Show Article Options" COM_CONTENT_SHOW_EMPTY_CATEGORIES_DESC="If Show, empty categories will display. A category is only empty if it has no articles or subcategories." -COM_CONTENT_SHOW_IMAGES_URLS_BACK_DESC="Show or hide fields to insert images and links in the Administrator." -COM_CONTENT_SHOW_IMAGES_URLS_BACK_LABEL="Administrator Images and Links" -COM_CONTENT_SHOW_IMAGES_URLS_FRONT_DESC="Show or hide fields to insert images and links when Frontend editing." -COM_CONTENT_SHOW_IMAGES_URLS_FRONT_LABEL="Frontend Images and Links" +COM_CONTENT_SHOW_IMAGES_BACK_DESC="Show or hide fields to insert images in the Administrator." +COM_CONTENT_SHOW_IMAGES_BACK_LABEL="Administrator Images" +COM_CONTENT_SHOW_IMAGES_FRONT_DESC="Show or hide fields to insert images when Frontend editing." +COM_CONTENT_SHOW_IMAGES_FRONT_LABEL="Frontend Images" COM_CONTENT_SHOW_PUBLISHING_OPTIONS_DESC="Show or hide the publishing options slider in the article edit view. These options allow changes in dates and author identities." COM_CONTENT_SHOW_PUBLISHING_OPTIONS_LABEL="Show Publishing Options" COM_CONTENT_SLIDER_EDITOR_CONFIG="Configure Edit Screen" diff --git a/components/com_content/forms/article.xml b/components/com_content/forms/article.xml index a65f6117a7b49..023e3fbe595d5 100644 --- a/components/com_content/forms/article.xml +++ b/components/com_content/forms/article.xml @@ -300,79 +300,7 @@
- - - - - - - - - - - - - - - - - -