__( 'All Snippets', 'code-snippets' ) ], Plugin::get_types() ); $current_type = $this->get_current_type(); if ( false !== strpos( code_snippets()->version, 'beta' ) ) { echo '

'; echo wp_kses( __( 'Thank you for testing this beta version of Code Snippets. We would love to hear your feedback.', 'code-snippets' ), [ 'span' => [ 'class' => [ 'highlight-yellow' ] ] ] ); $feedback_url = __( 'mailto:team@codesnippets.pro?subject=Code Snippet Beta Test Feedback', 'code-snippets' ); printf( ' %s', esc_url( $feedback_url ), esc_html__( 'Click here to submit your feedback', 'code-snippets' ) ); echo '

'; } ?>

render_page_title_actions( code_snippets()->is_compact_menu() ? [ 'add', 'import', 'settings' ] : [ 'add', 'import' ] ); $this->list_table->search_notice(); ?>

print_messages(); ?> [ __( 'Function snippets are run on your site as if there were in a plugin or theme functions.php file.', 'code-snippets' ), __( 'Learn more about function snippets →', 'code-snippets' ), 'https://codesnippets.pro/learn-php/', ], 'html' => [ __( 'Content snippets are bits of reusable PHP and HTML content that can be inserted into posts and pages.', 'code-snippets' ), __( 'Learn more about content snippets →', 'code-snippets' ), 'https://codesnippets.pro/learn-html/', ], 'css' => [ __( 'Style snippets are written in CSS and loaded in the admin area or on the site front-end, just like the theme style.css.', 'code-snippets' ), esc_html__( 'Learn more about style snippets →', 'code-snippets' ), 'https://codesnippets.pro/learn-css/', ], 'js' => [ __( 'Script snippets are loaded on the site front-end in a JavaScript file, either in the head or body sections.', 'code-snippets' ), __( 'Learn more about javascript snippets →', 'code-snippets' ), 'https://codesnippets.pro/learn-js/', ], 'cloud' => [ __( 'See all your public and private snippets that are stored in your Code Snippet Cloud codevault.', 'code-snippets' ), __( 'Learn more about Code Snippets Cloud →', 'code-snippets' ), 'https://codesnippets.cloud/getstarted/', ], ]; if ( isset( $type_info[ $current_type ] ) ) { $info = $type_info[ $current_type ]; printf( '

%s %s

', esc_html( $info[0] ), esc_url( $info[2] ), esc_html( $info[1] ) ); } do_action( 'code_snippets/admin/manage/before_list_table' ); $this->list_table->views(); switch ( $current_type ) { case 'cloud_search': include_once 'partials/cloud-search.php'; break; default: include_once 'partials/list-table.php'; break; } do_action( 'code_snippets/admin/manage', $current_type ); ?>