We were using a custom icon because in the past social-share-button didn't have support for whatsapp. But now that it does, we can remove our custom icon. Note we're using the `_app` suffix because that's the name of the icon meant for mobile devices.
17 lines
874 B
Plaintext
17 lines
874 B
Plaintext
<% description = local_assigns.fetch(:description, "") %>
|
|
<% description = truncate(ActionView::Base.full_sanitizer.sanitize(description), length: 140) %>
|
|
|
|
<% if local_assigns[:share_title].present? %>
|
|
<div id="social-share" class="sidebar-divider"></div>
|
|
<p class="sidebar-title"><%= share_title %></p>
|
|
<% end %>
|
|
<div class="social-share-full">
|
|
<%= social_share_button_tag("#{title} #{setting["twitter_hashtag"]} #{setting["twitter_handle"]}",
|
|
url: local_assigns[:url],
|
|
image: local_assigns.fetch(:image_url, ""),
|
|
desc: description,
|
|
"data-twitter-title": local_assigns[:mobile],
|
|
"data-telegram-title": local_assigns[:mobile],
|
|
"data-whatsapp_app-title": local_assigns[:mobile]) %>
|
|
</div>
|