mirror of
https://ghproxy.net/https://github.com/AlxMedia/alx-extensions.git
synced 2025-08-26 15:53:37 +08:00
Fix options
This commit is contained in:
parent
467dd4f01f
commit
3d82657a59
2 changed files with 12 additions and 2 deletions
|
@ -62,4 +62,8 @@ function alx_ext_thumbnail_upscale( $default, $orig_w, $orig_h, $new_w, $new_h,
|
|||
return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
|
||||
}
|
||||
|
||||
add_filter( 'image_resize_dimensions', 'alx_ext_thumbnail_upscale', 10, 6 );
|
||||
$enable_image_upscale = get_theme_mod( 'enable_image_upscale', true );
|
||||
if ( true === $enable_image_upscale ) {
|
||||
add_filter( 'image_resize_dimensions', 'alx_ext_thumbnail_upscale', 10, 6 );
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,13 @@ function alx_ext_sharrre_actions() {
|
|||
add_action( 'plugins_loaded', 'alx_ext_sharrre_actions' );
|
||||
|
||||
/* template */
|
||||
function alx_ext_sharrre_template() { ?>
|
||||
function alx_ext_sharrre_template() {
|
||||
|
||||
$enable_social_share = get_theme_mod( 'enable_social_share', true );
|
||||
if ( true !== $enable_social_share ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="sharrre-container group">
|
||||
<span><?php esc_html_e('Share','alx-extensions'); ?></span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue