| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * Podcast player documentation page |
|---|
| 4 | * |
|---|
| 5 | * @package Podcast Player |
|---|
| 6 | * @since 3.3.0 |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
|---|
| 10 | exit; // Exit if accessed directly. |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | $doc_sections = array( |
|---|
| 14 | array( |
|---|
| 15 | 'title' => esc_html__( 'Getting Started', 'podcast-player' ), |
|---|
| 16 | 'items' => array( |
|---|
| 17 | array( |
|---|
| 18 | 'label' => esc_html__( 'Introduction to Podcast Player', 'podcast-player' ), |
|---|
| 19 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17187', |
|---|
| 20 | ), |
|---|
| 21 | array( |
|---|
| 22 | 'label' => esc_html__( 'How to install Podcast Player', 'podcast-player' ), |
|---|
| 23 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17188', |
|---|
| 24 | ), |
|---|
| 25 | array( |
|---|
| 26 | 'label' => esc_html__( 'How to get your podcast feed URL', 'podcast-player' ), |
|---|
| 27 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17225', |
|---|
| 28 | ), |
|---|
| 29 | ), |
|---|
| 30 | ), |
|---|
| 31 | array( |
|---|
| 32 | 'title' => esc_html__( 'Display Podcast on Your Site', 'podcast-player' ), |
|---|
| 33 | 'items' => array( |
|---|
| 34 | array( |
|---|
| 35 | 'label' => esc_html__( 'Podcast Player Shortcode', 'podcast-player' ), |
|---|
| 36 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17191', |
|---|
| 37 | ), |
|---|
| 38 | array( |
|---|
| 39 | 'label' => esc_html__( 'Podcast Player Editor Block', 'podcast-player' ), |
|---|
| 40 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17189', |
|---|
| 41 | ), |
|---|
| 42 | array( |
|---|
| 43 | 'label' => esc_html__( 'Elementor Page Builder', 'podcast-player' ), |
|---|
| 44 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17190', |
|---|
| 45 | ), |
|---|
| 46 | array( |
|---|
| 47 | 'label' => esc_html__( 'Podcast Player Widget', 'podcast-player' ), |
|---|
| 48 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17192', |
|---|
| 49 | ), |
|---|
| 50 | array( |
|---|
| 51 | 'label' => esc_html__( 'Display Single Episode with Free Version', 'podcast-player' ), |
|---|
| 52 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17193', |
|---|
| 53 | ), |
|---|
| 54 | ), |
|---|
| 55 | ), |
|---|
| 56 | array( |
|---|
| 57 | 'title' => esc_html__( 'Settings & Configuration', 'podcast-player' ), |
|---|
| 58 | 'items' => array( |
|---|
| 59 | array( |
|---|
| 60 | 'label' => esc_html__( 'Podcast Player Admin Settings', 'podcast-player' ), |
|---|
| 61 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17194', |
|---|
| 62 | ), |
|---|
| 63 | array( |
|---|
| 64 | 'label' => esc_html__( 'Update Podcast Feed Data', 'podcast-player' ), |
|---|
| 65 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17195', |
|---|
| 66 | ), |
|---|
| 67 | ), |
|---|
| 68 | ), |
|---|
| 69 | array( |
|---|
| 70 | 'title' => esc_html__( 'Podcast Player Pro', 'podcast-player' ), |
|---|
| 71 | 'items' => array( |
|---|
| 72 | array( |
|---|
| 73 | 'label' => esc_html__( 'Why upgrade to the Pro plugin?', 'podcast-player' ), |
|---|
| 74 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17196', |
|---|
| 75 | ), |
|---|
| 76 | array( |
|---|
| 77 | 'label' => esc_html__( 'Installing the Pro plugin', 'podcast-player' ), |
|---|
| 78 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17197', |
|---|
| 79 | ), |
|---|
| 80 | array( |
|---|
| 81 | 'label' => esc_html__( 'What is new after installing Pro', 'podcast-player' ), |
|---|
| 82 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17198', |
|---|
| 83 | ), |
|---|
| 84 | array( |
|---|
| 85 | 'label' => esc_html__( 'Podcast Player Statistics', 'podcast-player' ), |
|---|
| 86 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17200', |
|---|
| 87 | ), |
|---|
| 88 | array( |
|---|
| 89 | 'label' => esc_html__( 'Display Player from WP Posts', 'podcast-player' ), |
|---|
| 90 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17201', |
|---|
| 91 | ), |
|---|
| 92 | array( |
|---|
| 93 | 'label' => esc_html__( 'Display Player from Audio URL', 'podcast-player' ), |
|---|
| 94 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17202', |
|---|
| 95 | ), |
|---|
| 96 | array( |
|---|
| 97 | 'label' => esc_html__( 'Shortcode from Feed URL', 'podcast-player' ), |
|---|
| 98 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17203', |
|---|
| 99 | ), |
|---|
| 100 | array( |
|---|
| 101 | 'label' => esc_html__( 'Shortcode from Posts', 'podcast-player' ), |
|---|
| 102 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17204', |
|---|
| 103 | ), |
|---|
| 104 | array( |
|---|
| 105 | 'label' => esc_html__( 'Shortcode from Audio', 'podcast-player' ), |
|---|
| 106 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17205', |
|---|
| 107 | ), |
|---|
| 108 | ), |
|---|
| 109 | ), |
|---|
| 110 | array( |
|---|
| 111 | 'title' => esc_html__( 'Troubleshooting & FAQ', 'podcast-player' ), |
|---|
| 112 | 'items' => array( |
|---|
| 113 | array( |
|---|
| 114 | 'label' => esc_html__( 'Podcast player not getting updated', 'podcast-player' ), |
|---|
| 115 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17206', |
|---|
| 116 | ), |
|---|
| 117 | array( |
|---|
| 118 | 'label' => esc_html__( 'Podcast player is not showing on front-end', 'podcast-player' ), |
|---|
| 119 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17207', |
|---|
| 120 | ), |
|---|
| 121 | array( |
|---|
| 122 | 'label' => esc_html__( 'Play button is not playing the episode', 'podcast-player' ), |
|---|
| 123 | 'url' => 'https://easypodcastpro.com/docs7/?easyDocId=17208', |
|---|
| 124 | ), |
|---|
| 125 | ), |
|---|
| 126 | ), |
|---|
| 127 | ); |
|---|
| 128 | ?> |
|---|
| 129 | <div class="space-y-6"> |
|---|
| 130 | <section class="rounded-xl border border-slate-200 bg-slate-50 p-6 sm:p-7"> |
|---|
| 131 | <p class="mb-2 text-xs font-semibold uppercase tracking-[0.2em] text-slate-500"><?php esc_html_e( 'Documentation', 'podcast-player' ); ?></p> |
|---|
| 132 | <h2 class="m-0 text-2xl font-semibold text-slate-900 sm:text-[30px]"><?php esc_html_e( 'Help & Support', 'podcast-player' ); ?></h2> |
|---|
| 133 | <p class="mb-0 mt-3 max-w-3xl text-base text-slate-700"><?php esc_html_e( 'Everything you need to launch, configure, and troubleshoot Podcast Player. Start with setup basics, then move to display methods and advanced tools.', 'podcast-player' ); ?></p> |
|---|
| 134 | <div class="mt-5 flex flex-wrap gap-2"> |
|---|
| 135 | <a class="inline-flex items-center rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-semibold text-slate-700 no-underline hover:border-slate-400 hover:text-slate-900" href="https://easypodcastpro.com/docs7/" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Open Full Docs', 'podcast-player' ); ?></a> |
|---|
| 136 | <a class="inline-flex items-center rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-semibold text-slate-700 no-underline hover:border-slate-400 hover:text-slate-900" href="https://wordpress.org/support/plugin/podcast-player/" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Support Forum', 'podcast-player' ); ?></a> |
|---|
| 137 | <a class="inline-flex items-center rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-semibold text-slate-700 no-underline hover:border-slate-400 hover:text-slate-900" href="https://easypodcastpro.com/contact-us-2/" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Contact Team', 'podcast-player' ); ?></a> |
|---|
| 138 | </div> |
|---|
| 139 | </section> |
|---|
| 140 | |
|---|
| 141 | <div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3"> |
|---|
| 142 | <?php foreach ( $doc_sections as $section ) : ?> |
|---|
| 143 | <section class="rounded-lg border border-solid border-slate-300 bg-white p-5 sm:p-6"> |
|---|
| 144 | <div class="mb-4 border-b border-slate-200 pb-3"> |
|---|
| 145 | <h3 class="m-0 text-lg font-semibold text-slate-900"><?php echo esc_html( $section['title'] ); ?></h3> |
|---|
| 146 | </div> |
|---|
| 147 | <ul class="space-y-2"> |
|---|
| 148 | <?php foreach ( $section['items'] as $item ) : ?> |
|---|
| 149 | <li class="mb-0"> |
|---|
| 150 | <a class="inline-flex text-sm font-medium text-sky-700 no-underline hover:text-sky-900 hover:underline" href="<?php echo esc_url( $item['url'] ); ?>" target="_blank" rel="noopener noreferrer"> |
|---|
| 151 | <?php echo esc_html( $item['label'] ); ?> |
|---|
| 152 | </a> |
|---|
| 153 | </li> |
|---|
| 154 | <?php endforeach; ?> |
|---|
| 155 | </ul> |
|---|
| 156 | </section> |
|---|
| 157 | <?php endforeach; ?> |
|---|
| 158 | </div> |
|---|
| 159 | </div> |
|---|