PluginProbe
PowerPress Podcasting plugin by Blubrry / 11.17.4
PowerPress Podcasting plugin by Blubrry v11.17.4
11.17.9 11.17.8 11.17.7 11.17.6 11.17.4 11.17.3 11.17.2 11.17.1 11.17 11.16.11 11.16.10 11.16.9 11.16.8 11.16.7 11.16.6 11.16.5 11.16.4 11.16.3 11.16.2 11.16.1 11.9.13 11.9.14 11.9.15 11.9.16 11.9.17 All 383 releases
powerpress / admin / networks.php

networks.php in PowerPress Podcasting plugin by Blubrry 11.17.4, at admin/networks.php

97 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // ======
3 // INIT
4 // ======
5
6 $backPage = urlencode(powerpress_admin_get_page());
7 ?>
8
9 <!-- =============
10 PAGE HEADER
11 ============= -->
12
13 <div class="ppn-page-header">
14 <div>
15 <h1 class="ppn-page-title"><?php esc_html_e('Your Networks', 'powerpress');?></h1>
16 <h4 class="ppn-page-subtitle"><?php esc_html_e('Choose a network you want to edit.', 'powerpress');?></h4>
17 </div>
18 </div>
19
20 <!-- ===================
21 NETWORK SELECTION
22 =================== -->
23
24 <div class="tabs-container pl-3 pr-3">
25 <?php if (!empty($props)) { ?>
26 <div class="ppn-list">
27 <div class="ppn-list__header row">
28 <div class="col-12"><?php esc_html_e('Network Title', 'powerpress');?></div>
29 </div>
30 <?php for ($i = 0; $i < count($props); ++$i) { ?>
31 <div class="ppn-list__row row">
32 <div class="col-12">
33 <form action="<?php echo admin_url("admin.php?page={$backPage}"); ?>" method="post">
34 <input type="hidden" name="networkId" value="<?php echo esc_attr($props[$i]['network_id']); ?>" />
35 <input type="hidden" name="ppn-action" value="set-network-id" />
36 <?php wp_nonce_field('powerpress', '_ppn_nonce'); ?>
37 <label><input type="radio" name="networkChoice" onclick="this.form.submit();"> <?php echo esc_html($props[$i]['network_title']); ?></label>
38 </form>
39 </div>
40 </div>
41 <?php } ?>
42 </div>
43 <?php } else { ?>
44 <div class="settingBox w-100">
45 <form method="POST" action="<?php echo esc_url(admin_url("admin.php?page=" . urlencode(powerpress_admin_get_page()))); ?>">
46
47 <input type="hidden" name="ppn-action" value="create-network"/>
48 <?php wp_nonce_field('powerpress', '_ppn_nonce'); ?>
49
50 <div class="row">
51 <div class="col-12 col-lg-6">
52 <h2 style="margin-top: 0;"><?php esc_html_e('Building a Podcast Network', 'powerpress');?></h2>
53
54 <p>
55 A podcast network is a collection of shows managed under one umbrella, with shared branding, purpose, and often a unified strategy.
56 While many organizations are starting to dip their toes into podcasting with a single show, networks offer flexibility, growth, and audience segmentation.
57 </p>
58
59 <p>With PowerPress you can host multiple shows under one account. Centralized control makes it simple to oversee multiple podcasts from one dashboard.</p>
60 </div>
61
62 <div class="col-12 col-lg-6">
63 <div class="row mr-4">
64 <label class="mt-4" for="network-title-input"><?php esc_html_e('Title of the Network', 'powerpress'); ?></label>
65 <input class="mb-4" required type="text" name="network_title" id="network-title-input">
66 </div>
67
68 <div class="row mr-4">
69 <label for="network-description-input"><?php esc_html_e('Description', 'powerpress'); ?></label>
70 <textarea required name="network_description" id="network-description-input" rows="5"></textarea>
71 </div>
72
73 <div class="row mt-3">
74 <button type="submit" class="button"><?php esc_html_e('Create Podcast Network', 'powerpress');?></button>
75 </div>
76 </div>
77 </div>
78 </form>
79 </div>
80 <?php } ?>
81
82 <!-- ============
83 ACTION BAR
84 ============ -->
85 <?php if(!empty($props)){ ?>
86 <div class="flex-row d-flex justify-content-end gap-md p-3 align-items-center">
87 <button type="submit" form="unlinkForm" class="button ppn-button-danger" onclick="return confirm('<?php echo esc_js(__('Are you sure you want to unlink this account?', 'powerpress')); ?>')"><?php esc_html_e('Unlink Account', 'powerpress');?></button>
88 </div>
89 <?php } ?>
90
91 <!-- hidden forms -->
92 <form method="POST" action="<?php echo esc_url("?page={$backPage}&status=Signin"); ?>" id="unlinkForm">
93 <input type="hidden" name="unlinkAccount" value="1" />
94 <?php wp_nonce_field('powerpress', '_ppn_nonce'); ?>
95 </form>
96 </div>
97