This commit is contained in:
Alexander Agnarson 2020-03-22 19:22:22 +01:00
parent 3d432df434
commit 6468995211
6 changed files with 24 additions and 21 deletions

View file

@ -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.0
Version: 1.1.1
Author: Alexander Agnarson
Author URI: http://alx.media
Text Domain: alx

View file

@ -26,7 +26,7 @@ function alx_ext_sharrre_footer_template() {
share: {
twitter: true
},
template: '<a class="box group" href="#"><div class="share"><i class="fa fa-twitter"></i><?php esc_html_e('Share', 'alx'); ?> <span><?php esc_html_e('on Twitter', 'alx'); ?></span><div class="count" href="#"><i class="fa fa-plus"></i></div></div></a>',
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') ); ?>'}},
@ -39,7 +39,7 @@ function alx_ext_sharrre_footer_template() {
share: {
facebook: true
},
template: '<a class="box group" href="#"><div class="share"><i class="fa 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="fa fa-plus"></i></div></div></a>',
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'},

View file

@ -29,7 +29,7 @@ function alx_ext_sharrre_template() {
share: {
twitter: true
},
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-twitter"></i></div></a>',
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') ); ?>'}},
@ -42,7 +42,7 @@ function alx_ext_sharrre_template() {
share: {
facebook: true
},
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-facebook-square"></i></div></a>',
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'},
@ -55,7 +55,7 @@ function alx_ext_sharrre_template() {
share: {
pinterest: true
},
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-pinterest"></i></div></a>',
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: {
@ -72,7 +72,7 @@ function alx_ext_sharrre_template() {
share: {
linkedin: true
},
template: '<a class="box group" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-linkedin-square"></i></div></a>',
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: {

View file

@ -78,9 +78,9 @@ class AlxPosts extends WP_Widget {
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
</a>
</div>
<?php } ?>

View file

@ -60,10 +60,10 @@ class AlxTabs extends WP_Widget {
'tags' => esc_html__('Tags','alx')
);
$icons = array(
'recent' => 'fa fa-clock-o',
'popular' => 'fa fa-star',
'comments' => 'fa fa-comments-o',
'tags' => 'fa fa-tags'
'recent' => 'fas fa-clock',
'popular' => 'fas fa-star',
'comments' => 'fas fa-comments',
'tags' => 'fas fa-tags'
);
$output = sprintf('<ul class="alx-tabs-nav group tab-count-%s">', $count);
foreach ( $tabs as $tab ) {
@ -128,9 +128,9 @@ class AlxTabs extends WP_Widget {
<?php else: ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
</a>
</div>
<?php } ?>
@ -179,9 +179,9 @@ class AlxTabs extends WP_Widget {
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
</a>
</div>
<?php } ?>

View file

@ -4,7 +4,7 @@ Contributors: alxmedia
Tags:
Requires at least: 4.9
Tested up to: 5.3.2
Stable tag: 1.1.0
Stable tag: 1.1.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -16,6 +16,9 @@ Extends AlxMedia themes with additional features such as social share links, cus
== Changelog ==
= 1.1.1 - 2020-03-22 =
* Update to Font Awesome 5 icon names
= 1.1.0 - 2020-03-21 =
* Update author link
* Update tested up to version