Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Old Zoom Meta Style */
- 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}\">
- <button class=\"zoom-out\"><i class=\"fa fa-search-minus\" ></i></button>
- <button class=\"zoom-reset\"><i class=\"fa fa-refresh\" ></i></button>
- <button class=\"zoom-in\"><i class=\"fa fa-search-plus\" ></i></button>
- </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');
Add Comment
Please, Sign In to add comment