mirror of
https://ghproxy.net/https://github.com/AlxMedia/alx-extensions.git
synced 2025-08-26 07:02:42 +08:00
1.1.4
This commit is contained in:
parent
d7c6e86de4
commit
eebe535cd1
5 changed files with 55 additions and 124 deletions
|
@ -3,7 +3,7 @@
|
|||
Plugin Name: Alx Extensions
|
||||
Plugin URI: http://wordpress.org/plugins/alx-extensions/
|
||||
Description: Extends AlxMedia themes with additional features such as social share links, custom sidebars, thumbnail image upscale and post format meta boxes. Also includes 2 flexible custom widgets, Alx Tabs and Alx Posts.
|
||||
Version: 1.1.3
|
||||
Version: 1.1.4
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alx.media
|
||||
Text Domain: alx
|
||||
|
@ -36,7 +36,7 @@ add_action( 'init', 'alx_ext_load_textdomain' );
|
|||
/* ------------------------------------ */
|
||||
function alx_ext_enqueue_scripts() {
|
||||
if ( is_singular() ) {
|
||||
wp_enqueue_script( 'alx-ext-sharrre', ALX_EXTENSIONS_URL . '/js/jquery.sharrre.min.js', array( 'jquery' ), '1.0.1' );
|
||||
// wp_enqueue_script( 'alx-ext-sharrre', ALX_EXTENSIONS_URL . '/js/jquery.sharrre.min.js', array( 'jquery' ), '1.0.1' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,42 +13,19 @@ function alx_ext_sharrre_footer_template() {
|
|||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="sharrre-footer group">
|
||||
<div id="facebook-footer" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php esc_attr_e('Share', 'alx'); ?>"></div>
|
||||
<div id="twitter-footer" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php esc_attr_e('Share', 'alx'); ?>"></div>
|
||||
<div id="facebook-footer" class="sharrre">
|
||||
<a class="box group" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>">
|
||||
<div class="share"><i class="fab fa-facebook-square"></i><?php esc_html_e('Share', 'alx'); ?> <span><?php esc_html_e('on Facebook', 'alx'); ?></span><div class="count" href="#"><i class="fas fa-plus"></i></div></div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="twitter-footer" class="sharrre">
|
||||
<a class="box group" href="https://twitter.com/intent/tweet?url=<?php the_permalink(); ?>&text=<?php the_title_attribute(); ?>">
|
||||
<div class="share"><i class="fab fa-x-twitter"></i><?php esc_html_e('Share', 'alx'); ?> <span><?php esc_html_e('on X', 'alx'); ?></span><div class="count" href="#"><i class="fas fa-plus"></i></div></div>
|
||||
</a>
|
||||
</div>
|
||||
</div><!--/.sharrre-footer-->
|
||||
|
||||
<script type="text/javascript">
|
||||
// Sharrre
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('#twitter-footer').sharrre({
|
||||
share: {
|
||||
twitter: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="share"><i class="fab fa-twitter"></i><?php esc_html_e('Share', 'alx'); ?> <span><?php esc_html_e('on Twitter', 'alx'); ?></span><div class="count" href="#"><i class="fas fa-plus"></i></div></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons: { twitter: {via: '<?php echo esc_attr( get_theme_mod('twitter-username') ); ?>'}},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('twitter');
|
||||
}
|
||||
});
|
||||
jQuery('#facebook-footer').sharrre({
|
||||
share: {
|
||||
facebook: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="share"><i class="fab fa-facebook-square"></i><?php esc_html_e('Share', 'alx'); ?> <span><?php esc_html_e('on Facebook', 'alx'); ?></span><div class="count" href="#"><i class="fas fa-plus"></i></div></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons:{layout: 'box_count'},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('facebook');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -16,77 +16,27 @@ function alx_ext_sharrre_template() {
|
|||
|
||||
<div class="sharrre-container sharrre-header group">
|
||||
<span><?php esc_html_e('Share','alx'); ?></span>
|
||||
<div id="twitter" data-url="<?php the_permalink(); ?>" data-text="<?php echo the_title_attribute(); ?>" data-title="<?php esc_attr_e('Tweet', 'alx'); ?>"></div>
|
||||
<div id="facebook" data-url="<?php the_permalink(); ?>" data-text="<?php echo the_title_attribute(); ?>" data-title="<?php esc_attr_e('Like', 'alx'); ?>"></div>
|
||||
<div id="pinterest" data-url="<?php the_permalink(); ?>" data-text="<?php echo the_title_attribute(); ?>" data-title="<?php esc_attr_e('Pin It', 'alx'); ?>"></div>
|
||||
<div id="linkedin" data-url="<?php the_permalink(); ?>" data-text="<?php echo the_title_attribute(); ?>" data-title="<?php esc_attr_e('Share on LinkedIn', 'alx'); ?>"></div>
|
||||
<div id="twitter" class="sharrre">
|
||||
<a class="box group" href="https://twitter.com/intent/tweet?url=<?php the_permalink(); ?>&text=<?php the_title_attribute(); ?>" title="<?php esc_attr_e('Share on X', 'alx'); ?>">
|
||||
<div class="count"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-x-twitter"></i></div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="facebook" class="sharrre">
|
||||
<a class="box group" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" title="<?php esc_attr_e('Share on Facebook', 'alx'); ?>">
|
||||
<div class="count"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-facebook-square"></i></div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="pinterest" class="sharrre">
|
||||
<a class="box group" href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=&description=<?php the_title_attribute(); ?>" title="<?php esc_attr_e('Share on Pinterest', 'alx'); ?>">
|
||||
<div class="count"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-pinterest"></i></div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="linkedin" class="sharrre">
|
||||
<a class="box group" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>" title="<?php esc_attr_e('Share on LinkedIn', 'alx'); ?>">
|
||||
<div class="count"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-linkedin"></i></div>
|
||||
</a>
|
||||
</div>
|
||||
</div><!--/.sharrre-container-->
|
||||
|
||||
<script type="text/javascript">
|
||||
// Sharrre
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('#twitter').sharrre({
|
||||
share: {
|
||||
twitter: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-twitter"></i></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons: { twitter: {via: '<?php echo esc_attr( get_theme_mod('twitter-username') ); ?>'}},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('twitter');
|
||||
}
|
||||
});
|
||||
jQuery('#facebook').sharrre({
|
||||
share: {
|
||||
facebook: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-facebook-square"></i></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons:{layout: 'box_count'},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('facebook');
|
||||
}
|
||||
});
|
||||
jQuery('#pinterest').sharrre({
|
||||
share: {
|
||||
pinterest: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-pinterest"></i></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons: {
|
||||
pinterest: {
|
||||
description: '<?php echo the_title(); ?>'<?php if( has_post_thumbnail() ){ ?>,media: '<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>'<?php } ?>
|
||||
}
|
||||
},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('pinterest');
|
||||
}
|
||||
});
|
||||
jQuery('#linkedin').sharrre({
|
||||
share: {
|
||||
linkedin: true
|
||||
},
|
||||
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fas fa-plus"></i></div><div class="share"><i class="fab fa-linkedin"></i></div></a>',
|
||||
enableHover: false,
|
||||
enableTracking: true,
|
||||
buttons: {
|
||||
linkedin: {
|
||||
description: '<?php echo the_title(); ?>'<?php if( has_post_thumbnail() ){ ?>,media: '<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>'<?php } ?>
|
||||
}
|
||||
},
|
||||
click: function(api, options){
|
||||
api.simulateClick();
|
||||
api.openPopup('linkedin');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Alx Extensions\n"
|
||||
"POT-Creation-Date: 2019-01-19 16:28+0100\n"
|
||||
"POT-Creation-Date: 2023-08-06 12:20+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -10,7 +10,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
"X-Generator: Poedit 3.0\n"
|
||||
"X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx;_n_noop;_nx_noop;"
|
||||
"translate_nooped_plural;number_format_i18n;date_i18n;esc_html__;esc_html_e;"
|
||||
"esc_html_x;esc_attr__;esc_attr_e;esc_attr_x\n"
|
||||
|
@ -128,32 +128,31 @@ msgstr ""
|
|||
msgid "Video URL"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share-footer.php:18 inc/share-footer.php:19 inc/share-footer.php:29
|
||||
#: inc/share-footer.php:42 inc/share.php:18
|
||||
#: inc/share-footer.php:20 inc/share-footer.php:25 inc/share.php:18
|
||||
msgid "Share"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share-footer.php:29
|
||||
msgid "on Twitter"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share-footer.php:42
|
||||
#: inc/share-footer.php:20
|
||||
msgid "on Facebook"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share.php:19
|
||||
msgid "Tweet"
|
||||
#: inc/share-footer.php:25
|
||||
msgid "on X"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share.php:20
|
||||
msgid "Like"
|
||||
msgid "Share on X"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share.php:21
|
||||
msgid "Pin It"
|
||||
#: inc/share.php:25
|
||||
msgid "Share on Facebook"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share.php:22
|
||||
#: inc/share.php:30
|
||||
msgid "Share on Pinterest"
|
||||
msgstr ""
|
||||
|
||||
#: inc/share.php:35
|
||||
msgid "Share on LinkedIn"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
Contributors: alxmedia
|
||||
Tags:
|
||||
Requires at least: 4.9
|
||||
Tested up to: 6.0
|
||||
Stable tag: 1.1.3
|
||||
Tested up to: 6.2.2
|
||||
Stable tag: 1.1.4
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
|
@ -16,6 +16,11 @@ Extends AlxMedia themes with additional features such as social share links, cus
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.1.4 - 2023-08-06 =
|
||||
* Remove sharrre javascript
|
||||
* Add normal sharing links instead of sharrre
|
||||
* Add the Twitter X icon
|
||||
|
||||
= 1.1.3 - 2022-06-12 =
|
||||
* Update tested up to version
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue