Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Custom Zoom Meta */
- function jnews_button_zoom_meta() {
- if ( JNews\Single\SinglePost::getInstance()->show_zoom_button_meta() && is_single() ) {
- $output = '';
- if ( vp_metabox( 'jnews_single_post.override_template' ) ) {
- $zoom_out_step = vp_metabox( 'jnews_single_post.override.0.zoom_button_out_step', 2 );
- $zoom_in_step = vp_metabox( 'jnews_single_post.override.0.zoom_button_in_step', 3 );
- } else {
- $zoom_out_step = get_theme_mod( 'jnews_single_zoom_button_out_step', 2 );
- $zoom_in_step = get_theme_mod( 'jnews_single_zoom_button_in_step', 3 );
- }
- $output = '<div class="jeg_meta_zoom" data-in-step="'. $zoom_in_step .'" data-out-step="'. $zoom_out_step .'">
- <div class="zoom-dropdown">
- <div class="zoom-icon">
- <i class="fa fa-search-minus"></i>
- <i class="fa fa-search-plus"></i>
- </div>
- <div class="zoom-item-wrapper">
- <div class="zoom-item">
- <button class="zoom-out"><i class="fa fa-search-minus"></i></button>
- <button class="zoom-in"><i class="fa fa-search-plus"></i></button>
- <div class="zoom-bar-container">
- <div class="zoom-bar"></div>
- </div>
- <button class="zoom-reset"><span>'. jnews_return_translation( 'Reset', 'jnews', 'zoom_reset' ) .'</span></button>
- </div>
- </div>
- </div>
- </div>';
- echo jnews_sanitize_by_pass( $output );
- }
- }
- remove_action( 'jnews_render_before_meta_right', array( JNews\Single\SinglePost::getInstance(), 'zoom_button_meta' ) );
- add_action( 'jnews_render_before_meta_right', 'jnews_button_zoom_meta');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement