PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.2
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / integrations / external_short_links_systems.php
latepoint / lib / views / integrations Last commit date
external_calendars.php 1 year ago external_marketing_systems.php 1 year ago external_meeting_systems.php 1 year ago external_short_links_systems.php 9 months ago
external_short_links_systems.php
54 lines
1 <?php
2
3 /**
4 * @var $available_short_links_systems array
5 */
6
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly
10 }
11
12
13 ?>
14 <div class="latepoint-settings-w os-form-w">
15 <form action="" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('settings', 'update')); ?>">
16 <?php wp_nonce_field('update_settings'); ?>
17 <div class="os-section-header"><h3><?php esc_html_e('Available URL Shortener', 'latepoint'); ?></h3></div>
18 <?php
19 if($available_short_links_systems){
20 echo '<div class="os-togglable-items-w">';
21 foreach($available_short_links_systems as $short_links){ ?>
22 <div class="os-togglable-item-w">
23 <div class="os-togglable-item-head">
24 <div class="os-toggler-w">
25 <?php echo OsFormHelper::toggler_field('settings[enable_'.$short_links['code'].']', false, OsShortLinksSystemsHelper::is_external_short_links_system_enabled($short_links['code']), 'toggleShortLinksSystemSettings_'.$short_links['code'], 'large'); ?>
26 </div>
27 <?php if(!empty($short_links['image_url'])) echo '<img class="os-togglable-item-logo-img" src="'.esc_url($short_links['image_url']).'"/>'; ?>
28 <div class="os-togglable-item-name"><?php echo esc_html($short_links['name']); ?></div>
29 </div>
30 <div class="os-togglable-item-body" style="<?php echo OsShortLinksSystemsHelper::is_external_short_links_system_enabled($short_links['code']) ? '' : 'display: none'; ?>" id="toggleShortLinksSystemSettings_<?php echo esc_attr($short_links['code']); ?>">
31 <?php
32 /**
33 * Hook your short links system settings here
34 *
35 * @since 5.1.94
36 * @hook latepoint_external_short_links_system_settings
37 *
38 * @param {string} Code of the short links system
39 */
40 do_action('latepoint_external_short_links_system_settings', $short_links['code']);
41 ?>
42 </div>
43 </div>
44 <?php
45 }
46 echo '</div>';
47 echo '<div class="os-form-buttons">';
48 echo OsFormHelper::button('submit', __('Save Settings', 'latepoint'), 'submit', ['class' => 'latepoint-btn']);
49 echo '</div>';
50 }else{
51 echo OsUtilHelper::generate_missing_addon_link(__('Requires upgrade to a premium version', 'latepoint'));
52 } ?>
53 </form>
54 </div>