Version Description
- Fixed: wrong class name issue
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Simple Author Box |
Version | 2.3.12 |
Comparing to | |
See all releases |
Code changes from version 2.3.11 to 2.3.12
- inc/class-simple-author-box-helper.php +6 -0
- readme.txt +3 -0
- simple-author-box.php +2 -2
- template/template-sab.php +2 -2
inc/class-simple-author-box-helper.php
CHANGED
@@ -121,6 +121,12 @@ class Simple_Author_Box_Helper {
|
|
121 |
);
|
122 |
}
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
public static function get_google_fonts() {
|
125 |
$fonts = array(
|
126 |
'None',
|
121 |
);
|
122 |
}
|
123 |
|
124 |
+
public static function strip_prot($url) {
|
125 |
+
$url = str_ireplace("http://", "", $url);
|
126 |
+
$url = str_ireplace("https://", "", $url);
|
127 |
+
return $url;
|
128 |
+
}
|
129 |
+
|
130 |
public static function get_google_fonts() {
|
131 |
$fonts = array(
|
132 |
'None',
|
readme.txt
CHANGED
@@ -52,6 +52,9 @@ We are a young team of WordPress aficionados who love building WordPress plugins
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
55 |
= 2.3.11 =
|
56 |
* New feature: function wpsabox_author_box now accepts param $user_id
|
57 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 2.3.12 =
|
56 |
+
* Fixed: wrong class name issue
|
57 |
+
|
58 |
= 2.3.11 =
|
59 |
* New feature: function wpsabox_author_box now accepts param $user_id
|
60 |
|
simple-author-box.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Simple Author Box
|
5 |
* Description: Adds a responsive author box with social icons on your posts.
|
6 |
-
* Version: 2.3.
|
7 |
* Author: GreenTreeLabs
|
8 |
* Requires: 4.6 or higher
|
9 |
* License: GPLv3 or later
|
@@ -88,7 +88,7 @@ if ( function_exists( 'sab_fs' ) ) {
|
|
88 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
89 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
90 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
91 |
-
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.3.
|
92 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
93 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
94 |
Simple_Author_Box::get_instance();
|
3 |
/**
|
4 |
* Plugin Name: Simple Author Box
|
5 |
* Description: Adds a responsive author box with social icons on your posts.
|
6 |
+
* Version: 2.3.12
|
7 |
* Author: GreenTreeLabs
|
8 |
* Requires: 4.6 or higher
|
9 |
* License: GPLv3 or later
|
88 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
89 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
90 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
91 |
+
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.3.12' );
|
92 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
93 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
94 |
Simple_Author_Box::get_instance();
|
template/template-sab.php
CHANGED
@@ -72,7 +72,7 @@ if ( '' != $author_description || isset($sabox_options['sab_no_description'] ) &
|
|
72 |
if ( is_single() || is_page() ) {
|
73 |
if ( get_the_author_meta( 'user_url' ) != '' && '1' == $sabox_options['sab_web'] ) { // author website on single
|
74 |
echo '<div class="saboxplugin-web ' . esc_attr( $sab_web_align ) . '">';
|
75 |
-
echo '<a href="' . esc_url( get_the_author_meta( 'user_url', $sabox_author_id ) ) . '" target="' . esc_attr( $sab_web_target ) . '" ' . $sab_web_rel . '>' . esc_html(
|
76 |
echo '</div>';
|
77 |
}
|
78 |
}
|
@@ -81,7 +81,7 @@ if ( '' != $author_description || isset($sabox_options['sab_no_description'] ) &
|
|
81 |
if ( is_author() || is_archive() ) {
|
82 |
if ( get_the_author_meta( 'user_url' ) != '' ) { // force show author website on author.php or archive.php
|
83 |
echo '<div class="saboxplugin-web ' . esc_attr( $sab_web_align ) . '">';
|
84 |
-
echo '<a href="' . esc_url( get_the_author_meta( 'user_url', $sabox_author_id ) ) . '" target="' . esc_attr( $sab_web_target ) . '" ' . $sab_web_rel . '>' . esc_html(
|
85 |
echo '</div>';
|
86 |
}
|
87 |
}
|
72 |
if ( is_single() || is_page() ) {
|
73 |
if ( get_the_author_meta( 'user_url' ) != '' && '1' == $sabox_options['sab_web'] ) { // author website on single
|
74 |
echo '<div class="saboxplugin-web ' . esc_attr( $sab_web_align ) . '">';
|
75 |
+
echo '<a href="' . esc_url( get_the_author_meta( 'user_url', $sabox_author_id ) ) . '" target="' . esc_attr( $sab_web_target ) . '" ' . $sab_web_rel . '>' . esc_html( Simple_Author_Box_Helper::strip_prot(get_the_author_meta( 'user_url', $sabox_author_id )) ) . '</a>';
|
76 |
echo '</div>';
|
77 |
}
|
78 |
}
|
81 |
if ( is_author() || is_archive() ) {
|
82 |
if ( get_the_author_meta( 'user_url' ) != '' ) { // force show author website on author.php or archive.php
|
83 |
echo '<div class="saboxplugin-web ' . esc_attr( $sab_web_align ) . '">';
|
84 |
+
echo '<a href="' . esc_url( get_the_author_meta( 'user_url', $sabox_author_id ) ) . '" target="' . esc_attr( $sab_web_target ) . '" ' . $sab_web_rel . '>' . esc_html( Simple_Author_Box_Helper::strip_prot(get_the_author_meta( 'user_url', $sabox_author_id )) ) . '</a>';
|
85 |
echo '</div>';
|
86 |
}
|
87 |
}
|