From 96df77fe82753cda0a8fc9419acdcfc7a3af1ace Mon Sep 17 00:00:00 2001 From: Wasim Akhtar <53761154+WasimM3@users.noreply.github.com> Date: Tue, 28 Apr 2020 17:03:06 +0530 Subject: [PATCH] #4326 - UX improvement --- includes/admin-script.js | 4 ++++ includes/admin-style.css | 6 ++++++ templates/features.php | 44 ++++++++++++++++++++++++++-------------- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/includes/admin-script.js b/includes/admin-script.js index 157d1a583..3af9e2e1a 100644 --- a/includes/admin-script.js +++ b/includes/admin-script.js @@ -121,6 +121,10 @@ jQuery(function($) { $("#amp-show-hide-tax").css({'display':'none'}); } }); + $(".hide-show-amp-tax").on('click', function(){ + var checkBoxes = $(this).children('input:radio') + checkBoxes.prop("checked", !checkBoxes.prop("checked")); + }); $('.redux-container').each(function() { if (!$(this).hasClass('redux-no-sections')) { $(this).find('.display_header').append(''); diff --git a/includes/admin-style.css b/includes/admin-style.css index 27d4c8398..1836af76e 100644 --- a/includes/admin-style.css +++ b/includes/admin-style.css @@ -2081,4 +2081,10 @@ i.dashicons.dashicons-before.dashicons-update { text-align: center; color: white; border-radius: 5px; +} +.mrtop-10{ + margin-top: 10px; +} +#amp-show-hide-tax .hide-show-amp-tax{ + cursor: pointer; } \ No newline at end of file diff --git a/templates/features.php b/templates/features.php index 52e8212e9..e52f2432f 100644 --- a/templates/features.php +++ b/templates/features.php @@ -783,16 +783,16 @@ function ampforwp_update_taxonomy_meta($term_id, $term_id1){ add_action ( $taxonomy.'_add_form_fields', 'ampforwp_extra_category_fields'); } function ampforwp_extra_category_fields( $tag ) { - $label = 'category'; + $label = 'Category'; if(is_object($tag)){ if($tag->taxonomy=="post_tag"){ - $label = 'tag'; + $label = 'Tag'; }else if($tag->taxonomy!='category'){ $label = $tag->taxonomy; } }else{ if($tag=='post_tag'){ - $label = 'tag'; + $label = 'Tag'; } } ?> @@ -801,17 +801,24 @@ function ampforwp_extra_category_fields( $tag ) {
- + -

Show/Hide in AMP.

+

You can enable or disable AMP on this category. Learn More.

-