Skip to content

Commit

Permalink
#4443 Added in 1.0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed May 15, 2020
1 parent 11f6619 commit cb2187b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components/search/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function ampforwp_framework_get_search_form() {
$action_url = ( get_bloginfo('url') );
$action_url = preg_replace('#^http?:#', '', $action_url);
$placeholder = ampforwp_translation($redux_builder_amp['ampforwp-search-placeholder'], 'Type Here' );
$rand = rand(10,100);
if ( isset($redux_builder_amp['ampforwp-amp-takeover']) && !$redux_builder_amp['ampforwp-amp-takeover'] ) {
$amp_query_variable = 'amp';
$amp_query_variable_val = '1';
Expand All @@ -20,7 +21,8 @@ function ampforwp_framework_get_search_form() {
<div class="amp-search-wrapper">
<label aria-label="Type your query" class="screen-reader-text" for="s">' . esc_html__($label,'accelerated-mobile-pages') . '</label>
<input type="text" placeholder="AMP" value="'.esc_attr($amp_query_variable_val).'" name="'.esc_attr($amp_query_variable).'" class="hidden"/>
<input type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s" class="s" />
<label for="search-text-'.esc_attr($rand).'"></label>
<input id="search-text-'.esc_attr($rand).'" type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s" class="s" />
<label aria-label="Submit amp search" for="amp-search-submit" >
<input type="submit" class="icon-search" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
</label>
Expand Down
4 changes: 2 additions & 2 deletions templates/design-manager/swift/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
?>
<li>
<a title="twitter share" class="s_tw" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://twitter.com/intent/tweet?url=<?php echo esc_url($twitter_amp_permalink); ?>&text=<?php echo esc_attr(ampforwp_sanitize_twitter_title(get_the_title())); ?><?php echo esc_attr($data_param); ?>"><?php echo $twitter_icon; ?>
</a>
t</a>
</li>
<?php } ?>
<?php if(ampforwp_get_setting('enable-single-email-share')){
Expand Down Expand Up @@ -200,7 +200,7 @@
<a title="line share" class="s_li" <?php ampforwp_nofollow_social_links(); ?> href="<?php echo esc_url($line_amp_permalink); ?>">
<amp-img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni41MjggMjk2LjUyOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2LjUyOCAyOTYuNTI4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnPgoJPHBhdGggZD0iTTI5NS44MzgsMTE1LjM0N2wwLjAwMy0wLjAwMWwtMC4wOTItMC43NmMtMC4wMDEtMC4wMTMtMC4wMDItMC4wMjMtMC4wMDQtMC4wMzZjLTAuMDAxLTAuMDExLTAuMDAyLTAuMDIxLTAuMDA0LTAuMDMyICAgbC0wLjM0NC0yLjg1OGMtMC4wNjktMC41NzQtMC4xN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MTIuODQ3aDI3LjY0NWMzLjg2NiwwLDcsMy4xMzQsNyw3UzIzNy4xNzcsMTU5LjI2OSwyMzMuMzExLDE1OS4yNjl6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" width="15" height="15" />

</a>
L</a>
</li>
<?php } ?>
<?php if(ampforwp_get_setting('enable-single-vk-share')){
Expand Down
5 changes: 4 additions & 1 deletion templates/design-manager/swift/style.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@
.fsp{margin: 15px;flex-basis: calc(33.33% - 30px);}
.fsp-img {margin-bottom:10px;}
.fsp h2, .fsp h3{margin:0px 0px 5px 0px;font-size:20px;line-height:25px;font-weight:500;}
.fsp-cnt .loop-category{margin-bottom:8px;}
.fsp-cnt .loop-category{margin-bottom:20px;}
.fsp-cnt .loop-category li {font-weight: 500;}
.pt-dt{font-size:11px;color:#808080;margin: 8px 0px 0px 0px;display: inline-flex;}
blockquote{margin-bottom:20px;}
Expand Down Expand Up @@ -1686,6 +1686,8 @@
<?php } ?>
list-style-type:none;display:inline-block;}
.ss-ic li a{color: #fff;padding: 5px;border-radius: 3px;margin: 0px 10px 10px 0px;display: inline-block;}
.ss-ic li a.s_tw {color: #1da1f2;}
.ss-ic li a.s_li {color: #00cc00;}
<?php if($redux_builder_amp['enable-single-facebook-share'] || $redux_builder_amp['enbl-fb'] ){?>
.ss-ic ul li .s_fb{ color:#fff;background:#3b5998;}
.s_fb:after{
Expand Down Expand Up @@ -1725,6 +1727,7 @@
.s_tw:after{
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
content: "\e942";
color:#fff;
<?php }
if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
content:"\f099";
Expand Down

0 comments on commit cb2187b

Please sign in to comment.