whoami7 - Manager
:
/
home
/
topsuzmw
/
public_html
/
wp-content
/
plugins
/
pixwell-core
/
includes
/
Upload File:
files >> //home/topsuzmw/public_html/wp-content/plugins/pixwell-core/includes/bookmark.php
<?php /** Don't load directly */ defined( 'ABSPATH' ) || exit; add_action( 'pixwell_single_bottom', 'pixwell_remove_bookmark' ); add_action( 'wp_ajax_nopriv_rb_bookmark', 'pixwell_bookmark_list' ); add_action( 'wp_ajax_rb_bookmark', 'pixwell_bookmark_list' ); if ( ! function_exists( 'pixwell_bookmark' ) ) : function pixwell_bookmark() { if ( pixwell_is_amp() ) { return false; } ?><span class="read-it-later bookmark-item" <?php if ( is_rtl() ) { echo 'dir="rtl"'; } ; ?> data-title="<?php echo pixwell_translate( 'read_later' ); ?>" data-bookmarkid="<?php echo get_the_ID(); ?>"> <i class="rbi rbi-bookmark" aria-hidden="true"></i></span> <?php } endif; if ( ! function_exists( 'pixwell_remove_bookmark' ) ): function pixwell_remove_bookmark() { if ( is_single() ) { echo '<aside class="is-hidden rb-remove-bookmark" data-bookmarkid="' . get_the_ID() . '"></aside>'; } } endif; if ( ! function_exists( 'pixwell_bookmark_list' ) ) { function pixwell_bookmark_list() { if ( empty( $_POST['ids'] ) || ! is_array( $_POST['ids'] ) ) { pixwell_bookmark_list_empty(); } else { $response = ''; $included_ids = $_POST['ids']; $included_ids = array_map( 'absint', $included_ids ); if ( function_exists( 'pixwell_render_bookmark_list' ) ) { ob_start(); pixwell_render_bookmark_list( $included_ids ); $response = ob_get_clean(); } wp_send_json( $response, null ); die(); } } } if ( ! function_exists( 'pixwell_bookmark_list_empty' ) ) { function pixwell_bookmark_list_empty() { $response = ''; $response .= '<div class="bookmark-empty">'; $response .= '<div class="bookmark-empty-icon"><i class="rbi rbi-warning" aria-hidden="true"></i></div>'; $response .= '<h6 class="h3">' . pixwell_translate( 'nothing_found' ) . '</h6>'; $response .= '<p>' . pixwell_translate( 'bookmark_empty' ) . '</p>'; $response .= '</div>'; wp_send_json( $response, null ); } }
Copyright ©2021 || Defacer Indonesia