PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.6.0
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.6.0
4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / EmbedPress / Ends / Back / Settings / templates / general.php
embedpress / EmbedPress / Ends / Back / Settings / templates Last commit date
partials 1 month ago ads.php 1 month ago bnr-img.png 11 months ago calendly.php 1 month ago custom-logo.php 1 month ago dailymotion.php 2 years ago elements.php 4 days ago general.php 6 months ago go-premium.php 7 months ago google-calendar.php 1 month ago hub.php 4 days ago instagram.php 1 month ago license.php 5 years ago main-template.php 1 month ago opensea.php 2 years ago player-engagement.php 2 months ago premium.php 2 years ago settings.php 1 month ago shortcode.php 1 month ago soundcloud.php 2 years ago sources.php 9 months ago spotify.php 2 years ago twitch.php 2 years ago vimeo.php 2 years ago wistia.php 1 month ago youtube.php 1 year ago
general.php
161 lines
1 <?php
2 /*
3 * General Settings page
4 * All undefined vars comes from 'render_settings_page' method
5 */
6
7 $g_settings = get_option(EMBEDPRESS_PLG_NAME);
8
9 $lazy_load = isset($g_settings['g_lazyload']) ? intval($g_settings['g_lazyload']) : 0;
10 $pdf_custom_color_settings = isset($g_settings['pdf_custom_color_settings']) ? intval($g_settings['pdf_custom_color_settings']) : 0;
11 $turn_off_rating_help = isset($g_settings['turn_off_rating_help']) ? intval($g_settings['turn_off_rating_help']) : 0;
12 $turn_off_milestone = isset($g_settings['turn_off_milestone']) ? intval($g_settings['turn_off_milestone']) : 0;
13
14 $custom_color = isset($g_settings['custom_color']) ? sanitize_text_field($g_settings['custom_color']) : '#333333';
15
16 $enableEmbedResizeHeight = isset($g_settings['enableEmbedResizeHeight']) ? intval($g_settings['enableEmbedResizeHeight']) : 600;
17 $enableEmbedResizeWidth = isset($g_settings['enableEmbedResizeWidth']) ? intval($g_settings['enableEmbedResizeWidth']) : 600;
18
19 ?>
20
21 <div class="embedpress__settings background__white radius-16 p-24">
22 <h3>Global Embed iFrame</h3>
23 <div class="shortcode-settings-wrapper">
24 <div class="embedpress__settings embedpress_general_settings__form">
25 <div class="embedpress__settings__form">
26 <form action="" method="post" class="embedpress-settings-form">
27 <?php
28 do_action('embedpress_before_general_settings_fields');
29 echo $nonce_field;
30 ?>
31 <div class="mb-20">
32 <div class="form__group">
33 <p class="form__label"><?php esc_html_e('Embed iFrame Width', 'embedpress'); ?></p>
34 <div class="form__control__wrap">
35 <div class="input__flex">
36 <input type="number" name="enableEmbedResizeWidth" class="form__control"
37 data-default="<?php echo esc_attr($enableEmbedResizeWidth); ?>"
38 value="<?php echo esc_attr($enableEmbedResizeWidth); ?>">
39 <span class="frame__unit">px</span>
40 </div>
41 </div>
42 </div>
43 <div class="form__group">
44 <p class="form__label"><?php esc_html_e('Embed iFrame Height', 'embedpress'); ?></p>
45 <div class="form__control__wrap">
46 <div class="input__flex">
47 <input type="number" name="enableEmbedResizeHeight" class="form__control"
48 data-default="<?php echo esc_attr($enableEmbedResizeHeight); ?>"
49 value="<?php echo esc_attr($enableEmbedResizeHeight); ?>">
50 <span class="frame__unit">px</span>
51 </div>
52 </div>
53 </div>
54 <div class="form__group">
55 <p class="form__label"><?php esc_html_e('Lazy Load', 'embedpress');
56 echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?> </p>
57 <div class="form__control__wrap">
58 <label class="input__switch switch__text <?php echo $pro_active ? '' : 'isPro'; ?>">
59 <input type="checkbox" name="g_lazyload"
60 data-default="<?php echo esc_attr($lazy_load); ?>"
61 data-value="<?php echo esc_attr($lazy_load); ?>" value="1" <?php echo $pro_active ? '' : 'disabled ';
62 checked('1', $lazy_load) ?>>
63 <span></span>
64 </label>
65 <?php if (!$pro_active) {
66 include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php';
67 } ?>
68 </div>
69 </div>
70 <div class="form__group<?php echo !is_embedpress_pro_active() ? ' pdf_custom_color_settings' : ''; ?>">
71 <p class="form__label"><?php echo esc_html__('PDF Custom Color', 'embedpress'); ?></p>
72 <div class="form__control__wrap">
73 <label class="input__switch switch__text">
74 <input type="checkbox" name="pdf_custom_color_settings"
75 data-default="<?php echo esc_attr($pdf_custom_color_settings); ?>"
76 data-value="<?php echo esc_attr($pdf_custom_color_settings); ?>" value="1"
77 <?php checked('1', $pdf_custom_color_settings) ?>>
78 <span></span>
79 <a href="#"
80 class="logo__adjust__toggler"><?php esc_html_e("Settings", "embedpress"); ?><i
81 class="ep-icon ep-caret-down"></i></a>
82 </label>
83
84 <div class="logo__adjust__wrap">
85 <div class="form__control__wrap">
86 <div class="input__flex">
87 <input type="color" id="embedpress_pdf_global_custom_color"
88 name="custom_color"
89 data-default="<?php echo esc_attr($custom_color); ?>"
90 data-value="<?php echo esc_attr($custom_color); ?>"
91 value="<?php echo esc_attr($custom_color); ?>">
92 </div>
93 </div>
94 </div>
95
96 </div>
97 </div>
98 <!-- <div class="form__group turn_off_rating_help">
99 <p class="form__label"><?php echo esc_html__('Rating & Help', 'embedpress'); ?></p>
100 <div class="form__control__wrap">
101 <label class="input__switch switch__text">
102 <input type="checkbox" name="turn_off_rating_help"
103 data-default="<?php echo esc_attr($turn_off_rating_help); ?>"
104 data-value="<?php echo esc_attr($turn_off_rating_help); ?>" value="1"
105 <?php checked('1', $turn_off_rating_help) ?>>
106 <span></span>
107 </label>
108
109 </div>
110 </div> -->
111 <div class="form__group mb0">
112 <p class="form__label"><?php
113 /*translators: % means coming soon text markup*/
114 printf(esc_html__('Loading Animation %s', 'embedpress'), $coming_soon);
115
116 echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?>
117 </p>
118 <div class="form__control__wrap">
119 <label class="input__switch switch__text isPro">
120 <input type="checkbox" name="g_loading_animation" data-default="1" value="1"
121 disabled>
122 <span></span>
123 </label>
124 <?php include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-coming-soon.php'; ?>
125 </div>
126 </div>
127 </div>
128 <?php do_action('embedpress_after_general_settings_fields'); ?>
129 <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit"
130 value="settings"><?php esc_html_e('Save Changes', 'embedpress'); ?></button>
131 </form>
132 </div>
133 </div>
134 <?php if (empty($pro_active) || !$pro_active) : ?>
135 <div class="embedpress-upgrade-pro-sidebar">
136 <div class="gradient-color">
137 <img class="embedpress-banner" src="<?php echo esc_url('https://embedpress.com/wp-content/uploads/2023/10/Mega-Page.gif'); ?>"
138 alt="">
139 <h3 class="cart-title">Upgrade To <span>Pro</span></h3>
140 <ul class="feature-list">
141 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Social Share', 'embedpress'); ?></li>
142 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Lazy Loading', 'embedpress'); ?></li>
143 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('SEO Optimized', 'embedpress'); ?></li>
144 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Custom Branding', 'embedpress'); ?></li>
145 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Content Protection', 'embedpress'); ?></li>
146 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Custom Audio & Video Player', 'embedpress'); ?></li>
147 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('PDF & Documents Embedding', 'embedpress'); ?></li>
148 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Embed From 250+ Sources', 'embedpress'); ?></li>
149 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('Wrapper Support', 'embedpress'); ?></li>
150 <li><img src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/check2.svg'); ?>" alt=""><?php echo esc_html__('& Many more...', 'embedpress'); ?></li>
151 </ul>
152
153 <a class="pro-upgrade-button" target="_blank"
154 href="<?php echo esc_url('https://wpdeveloper.com/in/upgrade-embedpress'); ?>"><?php echo esc_html__('Upgrade to Pro', 'embedpress'); ?><img
155 src="<?php echo esc_url(EMBEDPRESS_URL_ASSETS . 'images/external-white.svg'); ?>" alt=""></a>
156 </div>
157
158 </div>
159 <?php endif; ?>
160 </div>
161 </div>