wp_create_nonce( 'activello_notice_dismiss' ), ); wp_localize_script( 'activello-admin-nux', 'activelloNUX', $activello_nux ); } /** * Output admin notices. * * @since 2.2.0 */ public function admin_notices() { global $pagenow; if ( true === (bool) get_option( 'activello_nux_dismissed' ) ) { return; } ?>

🤘

Activello Options -> Layout Options -> Blog Posts Layout Options in order to have full width images.', 'activello' ) ?>

install_plugin_button( 'force-regenerate-thumbnails', 'force-regenerate-thumbnails.php', 'Force Regenerate Thumbnails', array( 'sf-nux-button' ), __( 'Regenerate Thumbnails Now', 'activello' ), __( 'Activate Force Regenerate Thumbnails', 'activello' ), __( 'Install Force Regenerate Thumbnails', 'activello' ) ); ?>

_is_plugin_installed( $plugin_slug ); if ( is_plugin_active( $plugin_slug . '/' . $plugin_file ) ) { // The plugin is already active $button = array( 'message' => esc_attr__( 'Settings', 'activello' ), 'url' => admin_url( 'tools.php?page=force-regenerate-thumbnails' ), 'classes' => array( 'activello-button', 'disabled' ), ); if ( '' !== $activated ) { $button['message'] = esc_attr( $activated ); } } elseif ( $url ) { // The plugin exists but isn't activated yet. $button = array( 'message' => esc_attr__( 'Activate', 'activello' ), 'url' => $url, 'classes' => array( 'activello-button', 'activate-now' ), ); if ( '' !== $activate ) { $button['message'] = esc_attr( $activate ); } } else { // The plugin doesn't exist. $url = wp_nonce_url( add_query_arg( array( 'action' => 'install-plugin', 'plugin' => $plugin_slug, ), self_admin_url( 'update.php' ) ), 'install-plugin_' . $plugin_slug ); $button = array( 'message' => esc_attr__( 'Install now', 'activello' ), 'url' => $url, 'classes' => array( 'activello-button', 'sf-install-now', 'install-now', 'install-' . $plugin_slug ), ); if ( '' !== $install ) { $button['message'] = esc_attr( $install ); } }// End if(). if ( ! empty( $classes ) ) { $button['classes'] = array_merge( $button['classes'], $classes ); } $button['classes'] = implode( ' ', $button['classes'] ); ?> 'activate', 'plugin' => $plugin_file, ), admin_url( 'plugins.php' ) ), 'activate-plugin_' . $plugin_file ); return $url; } } return false; } } endif; return new Activello_NUX_Admin();