partials
3 years ago
custom-logo.php
3 years ago
dailymotion.php
4 years ago
elements.php
3 years ago
general.php
3 years ago
go-premium.php
4 years ago
google-calendar.php
3 years ago
license.php
5 years ago
main-template.php
5 years ago
opensea.php
3 years ago
shortcode.php
5 years ago
soundcloud.php
4 years ago
spotify.php
4 years ago
twitch.php
4 years ago
vimeo.php
3 years ago
wistia.php
4 years ago
youtube.php
3 years ago
elements.php
257 lines
| 1 | <?php |
| 2 | /* |
| 3 | * YouTube Settings page */ |
| 4 | //rest option name: embedpress_elements_updated |
| 5 | $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []); |
| 6 | $g_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : []; |
| 7 | $e_blocks = isset( $elements['elementor']) ? (array) $elements['elementor'] : []; |
| 8 | $settings = get_option( EMBEDPRESS_PLG_NAME, []); |
| 9 | $enablePluginInAdmin = isset( $settings['enablePluginInAdmin'] ) ? $settings['enablePluginInAdmin'] : 1; |
| 10 | $enablePluginInFront = isset( $settings['enablePluginInFront'] ) ? $settings['enablePluginInFront'] : 1; |
| 11 | ?> |
| 12 | |
| 13 | <div class="background__white p40 radius-25 mb30"> |
| 14 | <div class="embedpress--elements__wrap"> |
| 15 | <h3>Gutenberg</h3> |
| 16 | <div class="embedpress__row grid__3"> |
| 17 | <div class="element__item"> |
| 18 | <h5>EmbedPress</h5> |
| 19 | <a href="https://embedpress.com/documentation/" class="has__question" target="_blank"> |
| 20 | <i class="ep-icon ep-question"></i> |
| 21 | <span class="element__tooltip"><?php esc_html_e( "It supports 150+ providers. Click to read the docs", "embedpress" ); ?></span> |
| 22 | </a> |
| 23 | <label class="input__switch element_switch"> |
| 24 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress']) ? 'checked': ''; ?> > |
| 25 | <span></span> |
| 26 | </label> |
| 27 | </div> |
| 28 | <div class="element__item"> |
| 29 | <h5>Document</h5> |
| 30 | <a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank"> |
| 31 | <i class="ep-icon ep-question"></i> |
| 32 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 33 | </a> |
| 34 | <label class="input__switch element_switch"> |
| 35 | <input class="element-check" type="checkbox" value="yes" data-name="document" data-type="gutenberg" <?php echo isset( $g_blocks['document']) ? 'checked': ''; ?> > |
| 36 | <span></span> |
| 37 | </label> |
| 38 | </div> |
| 39 | <div class="element__item"> |
| 40 | <h5>EmbedPress PDF</h5> |
| 41 | <a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank"> |
| 42 | <i class="ep-icon ep-question"></i> |
| 43 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 44 | </a> |
| 45 | <label class="input__switch element_switch"> |
| 46 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress-pdf" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress-pdf']) ? 'checked': ''; ?> > |
| 47 | <span></span> |
| 48 | </label> |
| 49 | </div> |
| 50 | <div class="element__item"> |
| 51 | <h5>EmbedPress Calendar</h5> |
| 52 | <a href="https://embedpress.com/docs/embed-google-calendar-in-wordpress" class="has__question" target="_blank"> |
| 53 | <i class="ep-icon ep-question"></i> |
| 54 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 55 | </a> |
| 56 | <label class="input__switch element_switch"> |
| 57 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress-calendar" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress-calendar']) ? 'checked': ''; ?> > |
| 58 | <span></span> |
| 59 | </label> |
| 60 | </div> |
| 61 | <div class="element__item"> |
| 62 | <h5>YouTube</h5> |
| 63 | <a href="https://embedpress.com/docs/embed-youtube-videos-in-gutenberg/" class="has__question" target="_blank"> |
| 64 | <i class="ep-icon ep-question"></i> |
| 65 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 66 | </a> |
| 67 | <label class="input__switch element_switch"> |
| 68 | <input class="element-check" type="checkbox" value="yes" data-name="youtube-block" data-type="gutenberg" <?php echo isset( $g_blocks['youtube-block']) ? 'checked': ''; ?> > |
| 69 | <span></span> |
| 70 | </label> |
| 71 | </div> |
| 72 | <div class="element__item"> |
| 73 | <h5>Google Docs</h5> |
| 74 | <a href="https://embedpress.com/docs/embed-google-docs-wordpress/" class="has__question" target="_blank"> |
| 75 | <i class="ep-icon ep-question"></i> |
| 76 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 77 | </a> |
| 78 | <label class="input__switch element_switch"> |
| 79 | <input class="element-check" type="checkbox" value="yes" data-name="google-docs-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-docs-block']) ? 'checked': ''; ?> > |
| 80 | <span></span> |
| 81 | </label> |
| 82 | </div> |
| 83 | <div class="element__item"> |
| 84 | <h5>Google Slides</h5> |
| 85 | <a href="https://embedpress.com/docs/embed-google-slides-wordpress/" class="has__question" target="_blank"> |
| 86 | <i class="ep-icon ep-question"></i> |
| 87 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 88 | </a> |
| 89 | <label class="input__switch element_switch"> |
| 90 | <input class="element-check" type="checkbox" value="yes" data-name="google-slides-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-slides-block']) ? 'checked': ''; ?> > |
| 91 | <span></span> |
| 92 | </label> |
| 93 | </div> |
| 94 | <div class="element__item"> |
| 95 | <h5>Google Sheets</h5> |
| 96 | <a href="https://embedpress.com/docs/embed-google-sheets-wordpress/" class="has__question" target="_blank"> |
| 97 | <i class="ep-icon ep-question"></i> |
| 98 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 99 | </a> |
| 100 | <label class="input__switch element_switch"> |
| 101 | <input class="element-check" type="checkbox" value="yes" data-name="google-sheets-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-sheets-block']) ? 'checked': ''; ?> > |
| 102 | <span></span> |
| 103 | </label> |
| 104 | </div> |
| 105 | <div class="element__item"> |
| 106 | <h5>Google Forms</h5> |
| 107 | <a href="https://embedpress.com/docs/embed-google-forms-wordpress/" class="has__question" target="_blank"> |
| 108 | <i class="ep-icon ep-question"></i> |
| 109 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 110 | </a> |
| 111 | <label class="input__switch element_switch"> |
| 112 | <input class="element-check" type="checkbox" value="yes" data-name="google-forms-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-forms-block']) ? 'checked': ''; ?> > |
| 113 | <span></span> |
| 114 | </label> |
| 115 | </div> |
| 116 | <div class="element__item"> |
| 117 | <h5>Google Drawings</h5> |
| 118 | <a href="https://embedpress.com/docs/embed-google-drawings-wordpress/" class="has__question" target="_blank"> |
| 119 | <i class="ep-icon ep-question"></i> |
| 120 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 121 | </a> |
| 122 | <label class="input__switch element_switch"> |
| 123 | <input class="element-check" type="checkbox" value="yes" data-name="google-drawings-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-drawings-block']) ? 'checked': ''; ?> > |
| 124 | <span></span> |
| 125 | </label> |
| 126 | </div> |
| 127 | <div class="element__item"> |
| 128 | <h5>Google Maps</h5> |
| 129 | <a href="https://embedpress.com/docs/embed-google-maps-wordpress/" class="has__question" target="_blank"> |
| 130 | <i class="ep-icon ep-question"></i> |
| 131 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 132 | </a> |
| 133 | <label class="input__switch element_switch"> |
| 134 | <input class="element-check" type="checkbox" value="yes" data-name="google-maps-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-maps-block']) ? 'checked': ''; ?> > |
| 135 | <span></span> |
| 136 | </label> |
| 137 | </div> |
| 138 | <div class="element__item"> |
| 139 | <h5>Twitch</h5> |
| 140 | <a href="https://embedpress.com/docs/embed-twitch-live-chat/" class="has__question" target="_blank"> |
| 141 | <i class="ep-icon ep-question"></i> |
| 142 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 143 | </a> |
| 144 | <label class="input__switch element_switch"> |
| 145 | <input class="element-check" type="checkbox" value="yes" data-name="twitch-block" data-type="gutenberg" <?php echo isset( $g_blocks['twitch-block']) ? 'checked': ''; ?> > |
| 146 | <span></span> |
| 147 | </label> |
| 148 | </div> |
| 149 | <div class="element__item"> |
| 150 | <h5>Wistia</h5> |
| 151 | <a href="https://embedpress.com/docs/embed-wistia-videos-wordpress/" class="has__question" target="_blank"> |
| 152 | <i class="ep-icon ep-question"></i> |
| 153 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 154 | </a> |
| 155 | <label class="input__switch element_switch"> |
| 156 | <input class="element-check" type="checkbox" value="yes" data-name="wistia-block" data-type="gutenberg" <?php echo isset( $g_blocks['wistia-block']) ? 'checked': ''; ?> > |
| 157 | <span></span> |
| 158 | </label> |
| 159 | </div> |
| 160 | <div class="element__item"> |
| 161 | <h5>Vimeo</h5> |
| 162 | <a href="https://embedpress.com/docs/embed-vimeo-videos-wordpress/" class="has__question" target="_blank"> |
| 163 | <i class="ep-icon ep-question"></i> |
| 164 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 165 | </a> |
| 166 | <label class="input__switch element_switch"> |
| 167 | <input class="element-check" type="checkbox" value="yes" data-name="vimeo-block" data-type="gutenberg" <?php echo isset( $g_blocks['vimeo-block']) ? 'checked': ''; ?> > |
| 168 | <span></span> |
| 169 | </label> |
| 170 | </div> |
| 171 | </div> |
| 172 | </div> |
| 173 | </div> |
| 174 | <!--ELEMENTOR WIDGETS STARTS --> |
| 175 | <div class="background__white p40 radius-25 mb30"> |
| 176 | <div class="embedpress--elements__wrap"> |
| 177 | <h3>Elementor</h3> |
| 178 | <div class="embedpress__row grid__3"> |
| 179 | <div class="element__item"> |
| 180 | <h5>EmbedPress</h5> |
| 181 | <a href="https://embedpress.com/docs/embedpress-with-elementor/" class="has__question" target="_blank"> |
| 182 | <i class="ep-icon ep-question"></i> |
| 183 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 184 | </a> |
| 185 | <label class="input__switch element_switch"> |
| 186 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress" data-type="elementor" <?php echo isset( $e_blocks['embedpress']) ? 'checked': ''; ?> > |
| 187 | <span></span> |
| 188 | </label> |
| 189 | |
| 190 | </div> |
| 191 | <div class="element__item"> |
| 192 | <h5>EmbedPress Document</h5> |
| 193 | <a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank"> |
| 194 | <i class="ep-icon ep-question"></i> |
| 195 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 196 | </a> |
| 197 | <label class="input__switch element_switch"> |
| 198 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress-document" data-type="elementor" <?php echo isset( $e_blocks['embedpress-document']) ? 'checked': ''; ?> > |
| 199 | <span></span> |
| 200 | </label> |
| 201 | |
| 202 | </div> |
| 203 | |
| 204 | <div class="element__item"> |
| 205 | <h5>EmbedPress PDF</h5> |
| 206 | <a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank"> |
| 207 | <i class="ep-icon ep-question"></i> |
| 208 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 209 | </a> |
| 210 | <label class="input__switch element_switch"> |
| 211 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress-pdf" data-type="elementor" <?php echo isset( $e_blocks['embedpress-pdf']) ? 'checked': ''; ?> > |
| 212 | <span></span> |
| 213 | </label> |
| 214 | |
| 215 | </div> |
| 216 | |
| 217 | <div class="element__item"> |
| 218 | <h5>EmbedPress Calendar</h5> |
| 219 | <a href="https://embedpress.com/docs/embed-google-calendar-in-wordpress" class="has__question" target="_blank"> |
| 220 | <i class="ep-icon ep-question"></i> |
| 221 | <span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span> |
| 222 | </a> |
| 223 | <label class="input__switch element_switch"> |
| 224 | <input class="element-check" type="checkbox" value="yes" data-name="embedpress-calendar" data-type="elementor" <?php echo isset( $e_blocks['embedpress-calendar']) ? 'checked': ''; ?> > |
| 225 | <span></span> |
| 226 | </label> |
| 227 | |
| 228 | </div> |
| 229 | </div> |
| 230 | </div> |
| 231 | </div> |
| 232 | <!--CLASSIC EDITOR SETTINGS STARTS--> |
| 233 | <div class="background__white radius-25 p40"> |
| 234 | <div class="embedpress--elements__wrap"> |
| 235 | <h3>Classic Editor</h3> |
| 236 | <div class="embedpress__row grid__3"> |
| 237 | <div class="element__item"> |
| 238 | <h5><?php esc_html_e( "Preview In Frontend", "embedpress" ); ?></h5> |
| 239 | <label class="input__switch element_switch"> |
| 240 | <input class="element-check" type="checkbox" value="1" data-name="enablePluginInFront" data-type="classic" <?php echo $enablePluginInFront ? 'checked': ''; ?> > |
| 241 | <span></span> |
| 242 | </label> |
| 243 | |
| 244 | </div> |
| 245 | <div class="element__item"> |
| 246 | <h5><?php esc_html_e( "Preview In Editor", "embedpress" ); ?></h5> |
| 247 | <label class="input__switch element_switch"> |
| 248 | <input class="element-check" type="checkbox" value="1" data-name="enablePluginInAdmin" data-type="classic" <?php echo $enablePluginInAdmin ? 'checked': ''; ?> > |
| 249 | <span></span> |
| 250 | </label> |
| 251 | |
| 252 | </div> |
| 253 | </div> |
| 254 | </div> |
| 255 | </div> |
| 256 | |
| 257 |