'; $context .= ' '; $context .= esc_html__('Add Accordion', 'accordion-for-wp'); $context .= ''; } return $context; } /** * Add Submenu page */ public function afwp_admin_menu(){ add_submenu_page( 'edit.php?post_type=accordion-for-wp', esc_html__('Accordion WordPress Shortcode Generator', 'accordion-for-wp'), esc_html__('Shortcode Generator', 'accordion-for-wp'), 'manage_options', 'afwp-shortcode-generator', array( $this, 'afwp_add_submenu_page' ) ); } /** * Options page callback */ public function afwp_add_submenu_page(){ // Set class property ?>

[afwp_accordion post_type="post" posts_per_page="5" order="date" perm="readable" offset="0" afwp_active_item="1" afwp_template="default" afwp_style="vertical" afwp_dropdown_icon="fa-desktop" afwp_active_dp_icon="fa-desktop"]
true ) ); $afwp_tab_or_accordion = array( 'afwp_tab'=>esc_html__('Tabs', 'accordion-for-wp'), 'afwp_accordion'=>esc_html__('Accordion', 'accordion-for-wp'), ); $afwp_order = array( 'DESC' => esc_html__('Descending', 'accordion-for-wp'), 'ASC' => esc_html__('Ascending', 'accordion-for-wp'), ); $afwp_order_by = array( 'date' => esc_html__('Date', 'accordion-for-wp'), 'title' => esc_html__('Title', 'accordion-for-wp'), 'ID' => esc_html__('ID', 'accordion-for-wp'), 'author' => esc_html__('Author', 'accordion-for-wp'), 'modified' => esc_html__('Modified', 'accordion-for-wp'), 'rand' => esc_html__('Random', 'accordion-for-wp'), 'comment_count' => esc_html__('Comment Count', 'accordion-for-wp'), ); $afwp_permission = array( 'readable' => esc_html__('Readable', 'accordion-for-wp'), 'editable' => esc_html__('Editable', 'accordion-for-wp'), ); $afwp_content_type = array( 'excerpt' => esc_html__('Short Description', 'accordion-for-wp'), 'content' => esc_html__('Full Content', 'accordion-for-wp'), ); $afwp_template = afwp_accordion_templates(); $afwp_style = afwp_accordion_styles(); $list_all_tabs = array( 'general' => array( 'id' => 'afwp_settings_general', 'label' => esc_html__('General', 'accordion-for-wp'), 'fields'=> array( array( 'type' => 'select', 'default' => 'afwp_accordion', 'label' => esc_html__('Type', 'accordion-for-wp'), 'id' => 'afwp_tab_or_accordion', 'default' => 'afwp_accordion', 'choices' => $afwp_tab_or_accordion, ), array( 'type' => 'select', 'default' => 'post', 'label' => esc_html__('Post Type', 'accordion-for-wp'), 'id' => 'post_type', 'choices' => $post_types, ), array( 'type' => 'number', 'default' => '5', 'label' => esc_html__('Posts per page', 'accordion-for-wp'), 'id' => 'posts_per_page', ), array( 'type' => 'select', 'default' => 'DESC', 'label' => esc_html__('Order', 'accordion-for-wp'), 'id' => 'order', 'choices' => $afwp_order, ), array( 'type' => 'select', 'default' => 'date', 'label' => esc_html__('Order By', 'accordion-for-wp'), 'id' => 'order', 'choices' => $afwp_order_by, ), array( 'type' => 'select', 'default' => 'readable', 'label' => esc_html__('Permission', 'accordion-for-wp'), 'id' => 'perm', 'choices' => $afwp_permission, ), array( 'type' => 'number', 'default' => '0', 'label' => esc_html__('Offset', 'accordion-for-wp'), 'id' => 'offset', ), array( 'type' => 'select', 'default' => '0', 'label' => esc_html__('Content Type:', 'accordion-for-wp'), 'id' => 'afwp_content_type', 'choices' => $afwp_content_type, ), ), ), 'layout' => array( 'id' => 'afwp_settings_layout', 'label' => esc_html__('Layout', 'accordion-for-wp'), 'fields'=> array( array( 'type' => 'number', 'label' => esc_html__('Active Item', 'accordion-for-wp'), 'id' => 'afwp_active_item', 'default' => '1', ), array( 'type' => 'select', 'label' => esc_html__('Template', 'accordion-for-wp'), 'id' => 'afwp_template', 'default' => '', 'choices' => $afwp_template, ), array( 'type' => 'select', 'label' => esc_html__('Style', 'accordion-for-wp'), 'id' => 'afwp_style', 'default' => '', 'choices' => $afwp_style, ), ), ), 'design' => array( 'id' => 'afwp_settings_design', 'label' => esc_html__('Design', 'accordion-for-wp'), 'fields'=> array( array( 'type' => 'icon', 'label' => esc_html__('Title Icon', 'accordion-for-wp'), 'id' => 'afwp_dropdown_icon', 'default' => 'fa-desktop', ), array( 'type' => 'icon', 'label' => esc_html__('Active Title Icon', 'accordion-for-wp'), 'id' => 'afwp_active_dp_icon', 'default' => 'fa-desktop', ), array( 'type' => 'color', 'label' => esc_html__('Title Color', 'accordion-for-wp'), 'id' => 'afwp_title_color', 'default' => '', ), array( 'type' => 'color', 'label' => esc_html__('Title Background', 'accordion-for-wp'), 'id' => 'afwp_title_background', 'default' => '', ), array( 'type' => 'color', 'label' => esc_html__('Title Content Color', 'accordion-for-wp'), 'id' => 'afwp_content_color', 'default' => '', ), array( 'type' => 'color', 'label' => esc_html__('Content Background', 'accordion-for-wp'), 'id' => 'afwp_content_background', 'default' => '', ), ), ), ); ?>
$tab_details){ ?>



[afwp_accordion post_type="post" posts_per_page="5" order="date" perm="readable" offset="0" afwp_active_item="1" afwp_template="default" afwp_style="vertical" afwp_dropdown_icon="fa-desktop" afwp_active_dp_icon="fa-desktop"]

esc_html__('EggNews - Magazine Theme', 'accordion-for-wp'), 'theme_url'=> 'https://themeegg.com/downloads/eggnews/', 'demo_url'=> 'https://demo.themeegg.com/themes/eggnews/', 'docs_url'=> 'https://docs.themeegg.com/docs/eggnews/', 'forum_url'=> 'https://themeegg.com/support-forum/forum/eggnews-wordpress-theme/', 'thumbnail_url'=>'https://demo.themeegg.com/themes/eggnews/wp-content/themes/eggnews/screenshot.png', 'rate_url'=> 'https://wordpress.org/support/theme/eggnews/reviews/?filter=5', 'download_url'=> 'https://wordpress.org/themes/eggnews/', ), array( 'name'=> esc_html__('Miteri - Blog Theme', 'accordion-for-wp'), 'theme_url'=> 'https://themeegg.com/downloads/miteri/', 'demo_url'=> 'https://demo.themeegg.com/themes/miteri/', 'docs_url'=> 'https://docs.themeegg.com/docs/miteri/', 'forum_url'=> 'https://themeegg.com/support-forum/forum/miteri-wordpress-theme/', 'thumbnail_url'=>'https://demo.themeegg.com/themes/miteri/wp-content/themes/miteri/screenshot.png', 'rate_url'=> 'https://wordpress.org/support/theme/miteri/reviews/?filter=5', 'download_url'=> 'https://wordpress.org/themes/miteri/', ), array( 'name'=> esc_html__('Education Master - Educational Theme', 'accordion-for-wp'), 'theme_url'=> 'https://themeegg.com/downloads/education-master/', 'demo_url'=> 'https://demo.themeegg.com/themes/education-master/', 'docs_url'=> 'https://docs.themeegg.com/docs/education-master/', 'forum_url'=> 'https://themeegg.com/support-forum/forum/education-master-wordpress-theme/', 'thumbnail_url'=>'https://demo.themeegg.com/themes/education-master/wp-content/themes/education-master/screenshot.png', 'rate_url'=> 'https://wordpress.org/support/theme/education-master/reviews/?filter=5', 'download_url'=> 'https://wordpress.org/themes/education-master/', ), ); foreach ($themeegg_themes as $single_theme) { ?>