partials
8 months ago
ads.php
7 months ago
bnr-img.png
11 months ago
calendly.php
9 months ago
custom-logo.php
9 months ago
dailymotion.php
2 years ago
elements.php
7 months ago
general.php
6 months ago
go-premium.php
7 months ago
google-calendar.php
2 years ago
hub.php
7 months ago
instagram.php
6 months ago
license.php
5 years ago
main-template.php
8 months ago
opensea.php
2 years ago
premium.php
2 years ago
settings.php
6 months ago
shortcode.php
7 months 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
2 years 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> |