true ) ); $options = get_option( 'addtoany_options', array() ); $title = apply_filters( 'A2A_SHARE_SAVE_meta_box_title', __( 'AddToAny', 'add-to-any' ) ); foreach( $post_types as $post_type ) { if ( // If automatic placement is enabled // for either floating bar isset( $options['floating_vertical'] ) && 'none' != $options['floating_vertical'] || isset( $options['floating_horizontal'] ) && 'none' != $options['floating_horizontal'] || // for standard buttons in posts 'post' == $post_type && ( ! isset( $options['display_in_posts'] ) || $options['display_in_posts'] != '-1' ) || // for standard buttons in pages 'page' == $post_type && ( ! isset( $options['display_in_pages'] ) || $options['display_in_pages'] != '-1' ) || // for standard buttons in a custom post type ! isset( $options['display_in_cpt_' . $post_type] ) || $options['display_in_cpt_' . $post_type] != '-1' ) { // Add meta box add_meta_box( 'A2A_SHARE_SAVE_meta', $title, 'A2A_SHARE_SAVE_meta_box_content', $post_type, 'side', 'default' ); } } } function A2A_SHARE_SAVE_meta_box_content( $post ) { do_action( 'start_A2A_SHARE_SAVE_meta_box_content', $post ); $disabled = get_post_meta( $post->ID, 'sharing_disabled', true ); ?>

AddToAny Sharing Settings'; $pointer_content_settings .= '

To customize your AddToAny share buttons, click "AddToAny" in the Settings menu.

'; // Get array list of dismissed pointers for current user and convert it to array $dismissed_pointers = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ); ?> array( 'selected' => ( 'bottom' == $options['position'] ) ? ' selected="selected"' : '', 'string' => __( 'bottom', 'add-to-any' ) ), 'top' => array( 'selected' => ( 'top' == $options['position'] ) ? ' selected="selected"' : '', 'string' => __( 'top', 'add-to-any' ) ), 'both' => array( 'selected' => ( 'both' == $options['position'] ) ? ' selected="selected"' : '', 'string' => __( 'top & bottom', 'add-to-any' ) ) ); if ( $option_box ) { $html = ''; $html .= '