Changeset 3342477
- Timestamp:
- 08/10/2025 05:53:31 PM (5 months ago)
- Location:
- custom-iframe
- Files:
-
- 20 edited
- 1 copied
-
tags/1.0.13 (copied) (copied from custom-iframe/trunk)
-
tags/1.0.13/assets/css/admin/admin.css (modified) (2 diffs)
-
tags/1.0.13/assets/js/widget.js (modified) (1 diff)
-
tags/1.0.13/custom-iframe-widget.php (modified) (3 diffs)
-
tags/1.0.13/includes/class-custif-admin.php (modified) (2 diffs)
-
tags/1.0.13/includes/class-deactivate-feedback.php (modified) (1 diff)
-
tags/1.0.13/includes/class-notice-manager.php (modified) (2 diffs)
-
tags/1.0.13/languages/custom-iframe.pot (modified) (5 diffs)
-
tags/1.0.13/readme.txt (modified) (5 diffs)
-
tags/1.0.13/widget/class-custom-iframe-widget.php (modified) (17 diffs)
-
tags/1.0.13/widget/class-need-help-controller.php (modified) (4 diffs)
-
trunk/assets/css/admin/admin.css (modified) (2 diffs)
-
trunk/assets/js/widget.js (modified) (1 diff)
-
trunk/custom-iframe-widget.php (modified) (3 diffs)
-
trunk/includes/class-custif-admin.php (modified) (2 diffs)
-
trunk/includes/class-deactivate-feedback.php (modified) (1 diff)
-
trunk/includes/class-notice-manager.php (modified) (2 diffs)
-
trunk/languages/custom-iframe.pot (modified) (5 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/widget/class-custom-iframe-widget.php (modified) (17 diffs)
-
trunk/widget/class-need-help-controller.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-iframe/tags/1.0.13/assets/css/admin/admin.css
r3314097 r3342477 240 240 241 241 .step-title { 242 color: var(--primary);242 color: #100D3F; 243 243 font-weight: 500; 244 244 margin-bottom: 10px; … … 482 482 .pro-features-list .coming-soon { 483 483 font-size: 12px; 484 color: # 4f46e5;484 color: #100D3F; 485 485 margin-left: 5px; 486 486 font-style: italic; 487 487 white-space: nowrap; 488 font-weight: 500; 488 489 } 489 490 -
custom-iframe/tags/1.0.13/assets/js/widget.js
r3277337 r3342477 13 13 // Auto height only works when cross origin properly set 14 14 if (autoHeight === 'yes') { 15 document.addEventListener('lazyshow', function (e) { 16 if (e.target === iframe) { 17 try { 18 var height = iframe.contentDocument.querySelector('html').scrollHeight; 19 iframe.style.height = height + 'px'; 20 } catch (e) { 21 console.log('Cross origin iframe detected'); 22 } 23 } 24 }); 15 try { 16 var height = iframe.contentDocument.querySelector('html').scrollHeight; 17 iframe.style.height = height + 'px'; 18 } catch (e) { 19 console.log('Cross origin iframe detected'); 20 } 25 21 } 26 22 -
custom-iframe/tags/1.0.13/custom-iframe-widget.php
r3325265 r3342477 4 4 * Plugin URI: https://coderzstudio.com/plugins/custom-iframe 5 5 * Description: An advanced Elementor widget to embed iFrames with customizable options. 6 * Version: 1.0.1 26 * Version: 1.0.13 7 7 * Author: Coderz Studio 8 8 * Author URI: https://coderzstudio.com/ … … 19 19 * Requires at least: 5.8 20 20 * Requires PHP: 7.4 21 * Elementor tested up to: 3.3 022 * Elementor Pro tested up to: 3.3 021 * Elementor tested up to: 3.31 22 * Elementor Pro tested up to: 3.31 23 23 */ 24 24 … … 51 51 52 52 // Define constants. 53 define( 'CUSTIF_VERSION', '1.0.1 2' );53 define( 'CUSTIF_VERSION', '1.0.13' ); 54 54 define( 'CUSTIF_URL', plugin_dir_url( __FILE__ ) ); 55 55 define( 'CUSTIF_PATH', plugin_dir_path( __FILE__ ) ); -
custom-iframe/tags/1.0.13/includes/class-custif-admin.php
r3314097 r3342477 232 232 <li>🐦 <?php esc_html_e( 'Enhanced X (Twitter) Options', 'custom-iframe' ); ?></li> 233 233 <li>🎨 <?php esc_html_e( 'Custom Watermarks', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 234 <li>📚 <?php esc_html_e( '3D Flipbook PDF Viewer', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li>234 <li>📚 <?php esc_html_e( '3D Flipbook PDF', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 235 235 <li>📱 <?php esc_html_e( 'Device Frame Display', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 236 236 </ul> … … 291 291 <div class="resource-card"> 292 292 <div class="resource-title"><?php esc_html_e( 'Documentation', 'custom-iframe' ); ?></div> 293 <button class="resource-action"><a href="https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=wordpress&utm_medium=dashboard&utm_campaign=custom_iframe&utm_id=wp_04" target="_blank"><?php esc_html_e( 'Read Now', 'custom-iframe' ); ?></a></button>293 <button class="resource-action"><a href="https://customiframe.com/docs/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=read_docs" target="_blank"><?php esc_html_e( 'Read Now', 'custom-iframe' ); ?></a></button> 294 294 </div> 295 295 -
custom-iframe/tags/1.0.13/includes/class-deactivate-feedback.php
r3311922 r3342477 198 198 199 199 $reason_key = ! empty( $_POST['reason_key'] ) ? sanitize_text_field( wp_unslash( $_POST['reason_key'] ) ) : ''; 200 $reason_text = ! empty( $_POST[ 'reason_' . $reason_key ] ) ? sanitize_text_field( wp_unslash( $_POST[ 'reason_' . $reason_key] ) ) : '';200 $reason_text = ! empty( $_POST['reason_text'] ) ? sanitize_text_field( wp_unslash( $_POST['reason_text'] ) ) : ''; 201 201 202 202 $api_params = array( 203 203 'count' => 1, 204 'reason' => $reason_ text ? $reason_text : $reason_key,204 'reason' => $reason_key . ( ! empty( $reason_text ) ? ': ' . $reason_text : '' ), 205 205 ); 206 206 -
custom-iframe/tags/1.0.13/includes/class-notice-manager.php
r3311922 r3342477 126 126 <p> 127 127 <a href="https://youtu.be/EB6MgWB6zLA?si=IqG88NkkM_DC84Ds" target="_blank">🎥 Video Tutorial</a> | 128 <a href="https://c oderzstudio.com/plugins/custom-iframe/demo/?utm_source=wordpress&utm_medium=dashboard&utm_campaign=custom_iframe&utm_id=wp_03" target="_blank">🔗 Live Demo</a>128 <a href="https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo" target="_blank">🔗 Live Demo</a> 129 129 </p> 130 130 </div>'; … … 213 213 <?php 214 214 } 215 216 /** 217 * Get pro plugin notice HTML. 218 * 219 * @return string Pro plugin notice HTML. 220 * @since 1.0.13 221 */ 222 public function pro_plugin_notice() { 223 return sprintf( 224 '<div class="custif-pro-notice"> 225 <div class="notice-content"> 226 <span class="notice-text">%s</span> 227 </div> 228 <div class="notice-actions"> 229 <a href="%s" target="_blank" class="upgrade-link">%s</a> 230 </div> 231 </div> 232 <style> 233 .custif-pro-notice { 234 background: #f8fafc; 235 border: 1px solid #e2e8f0; 236 border-radius: 6px; 237 padding: 10px 14px; 238 margin: 8px 0; 239 display: flex; 240 align-items: center; 241 justify-content: space-between; 242 font-size: 12px; 243 line-height: 1.3; 244 } 245 .custif-pro-notice .notice-content { 246 display: flex; 247 align-items: center; 248 gap: 6px; 249 font-size: 12px; 250 } 251 .custif-pro-notice .pro-badge { 252 background: #6366f1; 253 color: white; 254 padding: 1px 4px; 255 border-radius: 2px; 256 font-size: 9px; 257 font-weight: 600; 258 text-transform: uppercase; 259 letter-spacing: 0.3px; 260 } 261 .custif-pro-notice .notice-text { 262 color: #64748b; 263 font-weight: 400; 264 } 265 .custif-pro-notice .notice-actions { 266 display: flex; 267 align-items: center; 268 gap: 8px; 269 flex-shrink: 0; 270 } 271 .custif-pro-notice .demo-link, 272 .custif-pro-notice .upgrade-link { 273 text-decoration: none; 274 font-weight: 500; 275 font-size: 12px; 276 padding: 3px 10px; 277 border-radius: 5px; 278 transition: all 0.2s; 279 } 280 .custif-pro-notice .demo-link { 281 color: #64748b; 282 border: 1px solid #cbd5e1; 283 } 284 .custif-pro-notice .demo-link:hover { 285 background: #f1f5f9; 286 color: #475569; 287 } 288 .custif-pro-notice .upgrade-link { 289 color: #6366f1; 290 background: #f0f4ff; 291 } 292 .custif-pro-notice .upgrade-link:hover { 293 background: #e0e7ff; 294 color: #4f46e5; 295 } 296 </style>', 297 esc_html( sprintf( __( 'Upgrade to unlock this option', 'custom-iframe-widget-for-elementor' ) ) ), 298 esc_url( 'https://customiframe.com/early-bird/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=upgrade_cta' ), 299 esc_html__( 'Get Pro', 'custom-iframe-widget-for-elementor' ) 300 ); 301 } 215 302 } 216 303 -
custom-iframe/tags/1.0.13/languages/custom-iframe.pot
r3325265 r3342477 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Custom iFrame 1.0.1 2\n"5 "Project-Id-Version: Custom iFrame 1.0.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-iframe\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 7-09T20:36:45+00:00\n"12 "POT-Creation-Date: 2025-08-10T16:06:36+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 19 19 #: includes/class-custif-admin.php:31 20 20 #: includes/class-custif-admin.php:32 21 #: widget/class-custom-iframe-widget.php: 7721 #: widget/class-custom-iframe-widget.php:96 22 22 msgid "Custom iFrame" 23 23 msgstr "" … … 134 134 135 135 #: includes/class-custif-admin.php:234 136 msgid "3D Flipbook PDF Viewer"136 msgid "3D Flipbook PDF" 137 137 msgstr "" 138 138 … … 299 299 msgstr "" 300 300 301 #: widget/class-custom-iframe-widget.php:1 32301 #: widget/class-custom-iframe-widget.php:151 302 302 msgid "Content" 303 303 msgstr "" 304 304 305 #: widget/class-custom-iframe-widget.php:1 40305 #: widget/class-custom-iframe-widget.php:159 306 306 msgid "Source Type" 307 307 msgstr "" 308 308 309 #: widget/class-custom-iframe-widget.php:1 44309 #: widget/class-custom-iframe-widget.php:163 310 310 msgid "Default" 311 311 msgstr "" 312 312 313 #: widget/class-custom-iframe-widget.php:1 45313 #: widget/class-custom-iframe-widget.php:164 314 314 msgid "Pdf" 315 315 msgstr "" 316 316 317 #: widget/class-custom-iframe-widget.php:154 317 #: widget/class-custom-iframe-widget.php:165 318 msgid "X ( Pro )" 319 msgstr "" 320 321 #: widget/class-custom-iframe-widget.php:166 322 msgid "YouTube ( Pro )" 323 msgstr "" 324 325 #: widget/class-custom-iframe-widget.php:167 326 msgid "Vimeo ( Pro )" 327 msgstr "" 328 329 #: widget/class-custom-iframe-widget.php:175 318 330 msgid "Source URL" 319 331 msgstr "" 320 332 321 #: widget/class-custom-iframe-widget.php:1 59333 #: widget/class-custom-iframe-widget.php:180 322 334 msgid "https://example.com" 323 335 msgstr "" 324 336 325 #: widget/class-custom-iframe-widget.php:1 72337 #: widget/class-custom-iframe-widget.php:193 326 338 msgid "PDF Source" 327 339 msgstr "" 328 340 329 #: widget/class-custom-iframe-widget.php:1 76341 #: widget/class-custom-iframe-widget.php:197 330 342 msgid "File" 331 343 msgstr "" 332 344 333 #: widget/class-custom-iframe-widget.php:1 77334 #: widget/class-custom-iframe-widget.php:2 10345 #: widget/class-custom-iframe-widget.php:198 346 #: widget/class-custom-iframe-widget.php:231 335 347 msgid "URL" 336 348 msgstr "" 337 349 338 #: widget/class-custom-iframe-widget.php: 188350 #: widget/class-custom-iframe-widget.php:209 339 351 msgid "Upload File" 340 352 msgstr "" 341 353 342 #: widget/class-custom-iframe-widget.php: 196354 #: widget/class-custom-iframe-widget.php:217 343 355 msgid "Upload a file or pick one from your media library for embed. Supported File Type: PDF" 344 356 msgstr "" 345 357 346 #: widget/class-custom-iframe-widget.php:2 12358 #: widget/class-custom-iframe-widget.php:233 347 359 msgid "https://your-link.com/file.pdf" 348 360 msgstr "" 349 361 350 #: widget/class-custom-iframe-widget.php:2 35362 #: widget/class-custom-iframe-widget.php:256 351 363 msgid "URL PDFs can't customize toolbar options due to external source limits" 352 364 msgstr "" 353 365 354 #: widget/class-custom-iframe-widget.php:2 49366 #: widget/class-custom-iframe-widget.php:270 355 367 msgid "Height" 356 368 msgstr "" 357 369 358 #: widget/class-custom-iframe-widget.php:283 370 #: widget/class-custom-iframe-widget.php:291 371 msgid "height is not supported when using the X Embed Post." 372 msgstr "" 373 374 #: widget/class-custom-iframe-widget.php:305 359 375 msgid "Auto Height" 360 376 msgstr "" 361 377 362 #: widget/class-custom-iframe-widget.php: 285363 #: widget/class-custom-iframe-widget.php:3 34364 #: widget/class-custom-iframe-widget.php:3 50378 #: widget/class-custom-iframe-widget.php:307 379 #: widget/class-custom-iframe-widget.php:359 380 #: widget/class-custom-iframe-widget.php:387 365 381 msgid "Yes" 366 382 msgstr "" 367 383 368 #: widget/class-custom-iframe-widget.php: 286369 #: widget/class-custom-iframe-widget.php:3 35370 #: widget/class-custom-iframe-widget.php:3 51384 #: widget/class-custom-iframe-widget.php:308 385 #: widget/class-custom-iframe-widget.php:360 386 #: widget/class-custom-iframe-widget.php:388 371 387 msgid "No" 372 388 msgstr "" 373 389 374 #: widget/class-custom-iframe-widget.php:295 390 #: widget/class-custom-iframe-widget.php:312 391 msgid "Auto height only works when cross domain with \"allow origin all in header\"." 392 msgstr "" 393 394 #: widget/class-custom-iframe-widget.php:319 375 395 msgid "Show Scrollbars" 376 396 msgstr "" 377 397 378 #: widget/class-custom-iframe-widget.php:3 07398 #: widget/class-custom-iframe-widget.php:332 379 399 msgid "Refresh Interval (seconds)" 380 400 msgstr "" 381 401 382 #: widget/class-custom-iframe-widget.php:3 12402 #: widget/class-custom-iframe-widget.php:337 383 403 msgid "Set 0 to disable auto-refresh" 384 404 msgstr "" 385 405 386 #: widget/class-custom-iframe-widget.php:3 24406 #: widget/class-custom-iframe-widget.php:349 387 407 msgid "Smart Load" 388 408 msgstr "" 389 409 390 #: widget/class-custom-iframe-widget.php:3 32391 #: widget/class-custom-iframe-widget.php:3 48410 #: widget/class-custom-iframe-widget.php:357 411 #: widget/class-custom-iframe-widget.php:385 392 412 msgid "Lazy Load" 393 413 msgstr "" 394 414 395 #: widget/class-custom-iframe-widget.php: 364415 #: widget/class-custom-iframe-widget.php:401 396 416 msgid "Placeholder Image" 397 417 msgstr "" 398 418 399 #: widget/class-custom-iframe-widget.php:378 419 #: widget/class-custom-iframe-widget.php:415 420 #: widget/class-custom-iframe-widget.php:442 421 msgid "X Basic Options" 422 msgstr "" 423 424 #: widget/class-custom-iframe-widget.php:469 425 msgid "Basic Options" 426 msgstr "" 427 428 #: widget/class-custom-iframe-widget.php:496 429 msgid "YouTube Playback" 430 msgstr "" 431 432 #: widget/class-custom-iframe-widget.php:523 433 msgid "YouTube Appearance" 434 msgstr "" 435 436 #: widget/class-custom-iframe-widget.php:550 437 msgid "YouTube Advanced" 438 msgstr "" 439 440 #: widget/class-custom-iframe-widget.php:577 441 msgid "YouTube Captions" 442 msgstr "" 443 444 #: widget/class-custom-iframe-widget.php:604 445 msgid "Vimeo Basic Options" 446 msgstr "" 447 448 #: widget/class-custom-iframe-widget.php:631 449 msgid "Vimeo Playback" 450 msgstr "" 451 452 #: widget/class-custom-iframe-widget.php:658 453 msgid "Vimeo Appearance" 454 msgstr "" 455 456 #: widget/class-custom-iframe-widget.php:685 400 457 msgid "Display Options" 401 458 msgstr "" 402 459 403 #: widget/class-custom-iframe-widget.php: 390460 #: widget/class-custom-iframe-widget.php:697 404 461 msgid "Theme" 405 462 msgstr "" 406 463 407 #: widget/class-custom-iframe-widget.php: 394464 #: widget/class-custom-iframe-widget.php:701 408 465 msgid "System Default" 409 466 msgstr "" 410 467 411 #: widget/class-custom-iframe-widget.php: 395468 #: widget/class-custom-iframe-widget.php:702 412 469 msgid "Dark" 413 470 msgstr "" 414 471 415 #: widget/class-custom-iframe-widget.php: 396472 #: widget/class-custom-iframe-widget.php:703 416 473 msgid "Light" 417 474 msgstr "" 418 475 419 #: widget/class-custom-iframe-widget.php: 397420 #: widget/class-custom-iframe-widget.php: 431476 #: widget/class-custom-iframe-widget.php:704 477 #: widget/class-custom-iframe-widget.php:738 421 478 msgid "Custom" 422 479 msgstr "" 423 480 424 #: widget/class-custom-iframe-widget.php: 409481 #: widget/class-custom-iframe-widget.php:716 425 482 msgid "Custom Color" 426 483 msgstr "" 427 484 428 #: widget/class-custom-iframe-widget.php: 423485 #: widget/class-custom-iframe-widget.php:730 429 486 msgid "Zoom" 430 487 msgstr "" 431 488 432 #: widget/class-custom-iframe-widget.php: 427489 #: widget/class-custom-iframe-widget.php:734 433 490 msgid "Automatic Zoom" 434 491 msgstr "" 435 492 436 #: widget/class-custom-iframe-widget.php: 428493 #: widget/class-custom-iframe-widget.php:735 437 494 msgid "Actual Size" 438 495 msgstr "" 439 496 440 #: widget/class-custom-iframe-widget.php: 429497 #: widget/class-custom-iframe-widget.php:736 441 498 msgid "Page Fit" 442 499 msgstr "" 443 500 444 #: widget/class-custom-iframe-widget.php: 430501 #: widget/class-custom-iframe-widget.php:737 445 502 msgid "Page Width" 446 503 msgstr "" 447 504 448 #: widget/class-custom-iframe-widget.php: 432505 #: widget/class-custom-iframe-widget.php:739 449 506 msgid "50%" 450 507 msgstr "" 451 508 452 #: widget/class-custom-iframe-widget.php: 433509 #: widget/class-custom-iframe-widget.php:740 453 510 msgid "75%" 454 511 msgstr "" 455 512 456 #: widget/class-custom-iframe-widget.php: 434513 #: widget/class-custom-iframe-widget.php:741 457 514 msgid "100%" 458 515 msgstr "" 459 516 460 #: widget/class-custom-iframe-widget.php: 435517 #: widget/class-custom-iframe-widget.php:742 461 518 msgid "125%" 462 519 msgstr "" 463 520 464 #: widget/class-custom-iframe-widget.php: 436521 #: widget/class-custom-iframe-widget.php:743 465 522 msgid "150%" 466 523 msgstr "" 467 524 468 #: widget/class-custom-iframe-widget.php: 437525 #: widget/class-custom-iframe-widget.php:744 469 526 msgid "200%" 470 527 msgstr "" 471 528 472 #: widget/class-custom-iframe-widget.php: 438529 #: widget/class-custom-iframe-widget.php:745 473 530 msgid "300%" 474 531 msgstr "" 475 532 476 #: widget/class-custom-iframe-widget.php: 439533 #: widget/class-custom-iframe-widget.php:746 477 534 msgid "400%" 478 535 msgstr "" 479 536 480 #: widget/class-custom-iframe-widget.php: 441537 #: widget/class-custom-iframe-widget.php:748 481 538 msgid "Note: Initial zoom value when the file is loaded." 482 539 msgstr "" 483 540 484 #: widget/class-custom-iframe-widget.php: 452541 #: widget/class-custom-iframe-widget.php:759 485 542 msgid "Custom Zoom" 486 543 msgstr "" 487 544 488 #: widget/class-custom-iframe-widget.php: 465545 #: widget/class-custom-iframe-widget.php:772 489 546 msgid "Default Selection Tool" 490 547 msgstr "" 491 548 492 #: widget/class-custom-iframe-widget.php: 468549 #: widget/class-custom-iframe-widget.php:775 493 550 msgid "Text Tool" 494 551 msgstr "" 495 552 496 #: widget/class-custom-iframe-widget.php: 469553 #: widget/class-custom-iframe-widget.php:776 497 554 msgid "Hand Tool" 498 555 msgstr "" 499 556 500 #: widget/class-custom-iframe-widget.php: 482557 #: widget/class-custom-iframe-widget.php:789 501 558 msgid "Default Scrolling" 502 559 msgstr "" 503 560 504 #: widget/class-custom-iframe-widget.php: 485561 #: widget/class-custom-iframe-widget.php:792 505 562 msgid "Page Scrolling" 506 563 msgstr "" 507 564 508 #: widget/class-custom-iframe-widget.php: 486565 #: widget/class-custom-iframe-widget.php:793 509 566 msgid "Vertical Scrolling" 510 567 msgstr "" 511 568 512 #: widget/class-custom-iframe-widget.php: 487569 #: widget/class-custom-iframe-widget.php:794 513 570 msgid "Horizontal Scrolling" 514 571 msgstr "" 515 572 516 #: widget/class-custom-iframe-widget.php: 488573 #: widget/class-custom-iframe-widget.php:795 517 574 msgid "Wrapped Scrolling" 518 575 msgstr "" 519 576 520 #: widget/class-custom-iframe-widget.php: 501577 #: widget/class-custom-iframe-widget.php:808 521 578 msgid "Default Spreads" 522 579 msgstr "" 523 580 524 #: widget/class-custom-iframe-widget.php: 504581 #: widget/class-custom-iframe-widget.php:811 525 582 msgid "No Spreads" 526 583 msgstr "" 527 584 528 #: widget/class-custom-iframe-widget.php: 505585 #: widget/class-custom-iframe-widget.php:812 529 586 msgid "Odd Spreads" 530 587 msgstr "" 531 588 532 #: widget/class-custom-iframe-widget.php: 506589 #: widget/class-custom-iframe-widget.php:813 533 590 msgid "Even Spreads" 534 591 msgstr "" 535 592 536 #: widget/class-custom-iframe-widget.php: 522593 #: widget/class-custom-iframe-widget.php:829 537 594 msgid "Toolbar Settings" 538 595 msgstr "" 539 596 540 #: widget/class-custom-iframe-widget.php: 534597 #: widget/class-custom-iframe-widget.php:841 541 598 msgid "Toolbar" 542 599 msgstr "" 543 600 544 #: widget/class-custom-iframe-widget.php: 536545 #: widget/class-custom-iframe-widget.php: 577546 #: widget/class-custom-iframe-widget.php: 594547 #: widget/class-custom-iframe-widget.php: 611548 #: widget/class-custom-iframe-widget.php: 628549 #: widget/class-custom-iframe-widget.php: 645550 #: widget/class-custom-iframe-widget.php: 662551 #: widget/class-custom-iframe-widget.php: 679552 #: widget/class-custom-iframe-widget.php: 696601 #: widget/class-custom-iframe-widget.php:843 602 #: widget/class-custom-iframe-widget.php:884 603 #: widget/class-custom-iframe-widget.php:901 604 #: widget/class-custom-iframe-widget.php:918 605 #: widget/class-custom-iframe-widget.php:935 606 #: widget/class-custom-iframe-widget.php:952 607 #: widget/class-custom-iframe-widget.php:969 608 #: widget/class-custom-iframe-widget.php:986 609 #: widget/class-custom-iframe-widget.php:1003 553 610 msgid "Show" 554 611 msgstr "" 555 612 556 #: widget/class-custom-iframe-widget.php: 537557 #: widget/class-custom-iframe-widget.php: 578558 #: widget/class-custom-iframe-widget.php: 595559 #: widget/class-custom-iframe-widget.php: 612560 #: widget/class-custom-iframe-widget.php: 629561 #: widget/class-custom-iframe-widget.php: 646562 #: widget/class-custom-iframe-widget.php: 663563 #: widget/class-custom-iframe-widget.php: 680564 #: widget/class-custom-iframe-widget.php: 697613 #: widget/class-custom-iframe-widget.php:844 614 #: widget/class-custom-iframe-widget.php:885 615 #: widget/class-custom-iframe-widget.php:902 616 #: widget/class-custom-iframe-widget.php:919 617 #: widget/class-custom-iframe-widget.php:936 618 #: widget/class-custom-iframe-widget.php:953 619 #: widget/class-custom-iframe-widget.php:970 620 #: widget/class-custom-iframe-widget.php:987 621 #: widget/class-custom-iframe-widget.php:1004 565 622 msgid "Hide" 566 623 msgstr "" 567 624 568 #: widget/class-custom-iframe-widget.php: 550625 #: widget/class-custom-iframe-widget.php:857 569 626 msgid "Toolbar Position" 570 627 msgstr "" 571 628 572 #: widget/class-custom-iframe-widget.php: 554629 #: widget/class-custom-iframe-widget.php:861 573 630 msgid "Top" 574 631 msgstr "" 575 632 576 #: widget/class-custom-iframe-widget.php: 558633 #: widget/class-custom-iframe-widget.php:865 577 634 msgid "Bottom" 578 635 msgstr "" 579 636 580 #: widget/class-custom-iframe-widget.php: 575637 #: widget/class-custom-iframe-widget.php:882 581 638 msgid "Print/Download" 582 639 msgstr "" 583 640 584 #: widget/class-custom-iframe-widget.php: 592641 #: widget/class-custom-iframe-widget.php:899 585 642 msgid "Presentation Mode" 586 643 msgstr "" 587 644 588 #: widget/class-custom-iframe-widget.php: 609645 #: widget/class-custom-iframe-widget.php:916 589 646 msgid "Copy Text" 590 647 msgstr "" 591 648 592 #: widget/class-custom-iframe-widget.php: 626649 #: widget/class-custom-iframe-widget.php:933 593 650 msgid "Add Text" 594 651 msgstr "" 595 652 596 #: widget/class-custom-iframe-widget.php: 643653 #: widget/class-custom-iframe-widget.php:950 597 654 msgid "Draw" 598 655 msgstr "" 599 656 600 #: widget/class-custom-iframe-widget.php: 660657 #: widget/class-custom-iframe-widget.php:967 601 658 msgid "Add Image" 602 659 msgstr "" 603 660 604 #: widget/class-custom-iframe-widget.php: 677661 #: widget/class-custom-iframe-widget.php:984 605 662 msgid "Rotation" 606 663 msgstr "" 607 664 608 #: widget/class-custom-iframe-widget.php: 694665 #: widget/class-custom-iframe-widget.php:1001 609 666 msgid "Properties" 610 667 msgstr "" 611 668 612 #: widget/class-custom-iframe-widget.php: 713669 #: widget/class-custom-iframe-widget.php:1020 613 670 msgid "Advance" 614 671 msgstr "" 615 672 616 #: widget/class-custom-iframe-widget.php: 721673 #: widget/class-custom-iframe-widget.php:1028 617 674 msgid "Custom ID" 618 675 msgstr "" 619 676 620 #: widget/class-custom-iframe-widget.php: 723677 #: widget/class-custom-iframe-widget.php:1030 621 678 msgid "my-custom-iframe" 622 679 msgstr "" 623 680 624 #: widget/class-custom-iframe-widget.php: 724681 #: widget/class-custom-iframe-widget.php:1031 625 682 msgid "Enter an ID for custom CSS or JavaScript. Leave empty for an auto-generated ID." 626 683 msgstr "" 627 684 628 #: widget/class-custom-iframe-widget.php:738 685 #: widget/class-custom-iframe-widget.php:1043 686 msgid "Enable Sandbox" 687 msgstr "" 688 689 #: widget/class-custom-iframe-widget.php:1066 690 msgid "Attributes" 691 msgstr "" 692 693 #: widget/class-custom-iframe-widget.php:1091 629 694 msgid "Style" 630 695 msgstr "" 631 696 632 #: widget/class-custom-iframe-widget.php: 746697 #: widget/class-custom-iframe-widget.php:1099 633 698 msgid "Padding" 634 699 msgstr "" 635 700 636 #: widget/class-custom-iframe-widget.php:759 701 #: widget/class-custom-iframe-widget.php:1112 702 msgid "Container Width" 703 msgstr "" 704 705 #: widget/class-custom-iframe-widget.php:1143 637 706 msgid "Alignment" 638 707 msgstr "" 639 708 640 #: widget/class-custom-iframe-widget.php: 763709 #: widget/class-custom-iframe-widget.php:1147 641 710 msgid "Left" 642 711 msgstr "" 643 712 644 #: widget/class-custom-iframe-widget.php: 767713 #: widget/class-custom-iframe-widget.php:1151 645 714 msgid "Center" 646 715 msgstr "" 647 716 648 #: widget/class-custom-iframe-widget.php: 771717 #: widget/class-custom-iframe-widget.php:1155 649 718 msgid "Right" 650 719 msgstr "" 651 720 652 #: widget/class-custom-iframe-widget.php:783 653 msgid "Container Width" 654 msgstr "" 655 656 #: widget/class-custom-iframe-widget.php:816 657 #: widget/class-custom-iframe-widget.php:824 721 #: widget/class-custom-iframe-widget.php:1169 722 #: widget/class-custom-iframe-widget.php:1177 658 723 msgid "Background Style" 659 724 msgstr "" 660 725 661 #: widget/class-custom-iframe-widget.php: 835726 #: widget/class-custom-iframe-widget.php:1188 662 727 msgid "Border Style" 663 728 msgstr "" 664 729 665 #: widget/class-custom-iframe-widget.php: 850730 #: widget/class-custom-iframe-widget.php:1203 666 731 msgid "Border Radius" 667 732 msgstr "" 668 733 669 #: widget/class-custom-iframe-widget.php: 863734 #: widget/class-custom-iframe-widget.php:1216 670 735 msgid "Box Shadow Style" 671 736 msgstr "" 672 737 673 #: widget/class-custom-iframe-widget.php: 949738 #: widget/class-custom-iframe-widget.php:1302 674 739 msgid "Please enter a valid URL" 675 740 msgstr "" -
custom-iframe/tags/1.0.13/readme.txt
r3325274 r3342477 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8 6 Stable tag: 1.0.1 26 Stable tag: 1.0.13 7 7 Requires PHP: 7.4 8 8 License: GPL-2.0+ … … 50 50 - 📱 **Device Frame Display** – Show content in device frames (coming soon) 51 51 52 👉 **[Live Demo](https://c oderzstudio.com/plugins/custom-iframe/demo/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)**53 👉 **[Get Premium Version](https://c oderzstudio.com/plugins/custom-iframe/pricing/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)**52 👉 **[Live Demo](https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo)** 53 👉 **[Get Premium Version](https://customiframe.com/early-bird/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=upgrade_cta)** 54 54 55 55 **🔴 Watch the Video Tutorial ( <a href="https://www.youtube.com/watch?v=EB6MgWB6zLA" target="_blank">Link</a> )** … … 78 78 == Screenshots == 79 79 80 1. EmbedAny Type Of content without Limit.80 1. **Embed** Any Type Of content without Limit. 81 81 2. **Embed Videos** – Video Player ( Youtube, Vimeo, etc.). 82 82 3. **Embed Social Media Posts** – X, Linkdin, Instagram, etc. … … 118 118 == Changelog == 119 119 120 = 1.0.12 (July 10, 2025) = 120 = 1.0.13 (August 3, 2025) = 121 * Improvements : Improved Feedback form. 122 * Improvements : Improved Dashboard design. 123 * Improvements : Controller UI Improved. 124 * Fixed : Auto height not working. 125 * Fixed : Border radius not working with box shadows. 126 * Compatibility: Elementor Version Free & Pro 3.31. 127 128 = 1.0.12 (June 10, 2025) = 121 129 * Compatibility: Added support for **YouTube Shorts** embed. 122 130 * Compatibility: Added support for **Wistia Videos** embed. … … 184 192 Need help? We're here for you! 185 193 186 💬 **Website:** [CoderzStudio.com](https://c oderzstudio.com/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)187 📖 **Docs:** [View Documentation](https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)194 💬 **Website:** [CoderzStudio.com](https://customiframe.com/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01) 195 📖 **Docs:** [View Documentation](https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo) 188 196 🛠️ **Support:** [Submit a Request](https://wordpress.org/plugins/custom-iframe/#reviews) 189 197 -
custom-iframe/tags/1.0.13/widget/class-custom-iframe-widget.php
r3311922 r3342477 5 5 use custif\includes\embed_handlers\Embed_Converter; 6 6 use custif\includes\embed_handlers\PDF_Handler; 7 use custif\includes\Notice_Manager; 7 8 use Elementor\Controls_Manager; 8 9 use Elementor\Group_Control_Background; … … 27 28 28 29 /** 30 * Notices manager instance. 31 * 32 * @var Notice_Manager 33 */ 34 private $notices_manager; 35 36 /** 29 37 * Embed converter instance. 30 38 * … … 53 61 parent::__construct( $data, $args ); 54 62 55 // Initialize the embed converter and PDF handler.63 // Initialize the embed converter , PDF handler and Notice class. 56 64 $this->embed_converter = new Embed_Converter(); 57 65 $this->pdf_handler = new PDF_Handler(); 66 $this->notices_manager = new Notice_Manager(); 67 } 68 69 /** 70 * Get pro plugin notice HTML. 71 * 72 * @return string Pro plugin notice HTML. 73 * @since 1.0.13 74 */ 75 protected function pro_plugin_notice() { 76 return $this->notices_manager->pro_plugin_notice(); 58 77 } 59 78 … … 144 163 'default' => __( 'Default', 'custom-iframe' ), 145 164 'Pdf' => __( 'Pdf', 'custom-iframe' ), 146 ), 147 165 'X' => __( 'X ( Pro )', 'custom-iframe' ), 166 'Youtube' => __( 'YouTube ( Pro )', 'custom-iframe' ), 167 'Vimeo' => __( 'Vimeo ( Pro )', 'custom-iframe' ), 168 ), 148 169 ) 149 170 ); … … 161 182 'show_external' => false, 162 183 'condition' => array( 163 'source ' => 'default',184 'source!' => 'Pdf', 164 185 ), 165 186 ) … … 268 289 'size' => 500, 269 290 ), 291 'description' => __( 'height is not supported when using the X Embed Post.', 'custom-iframe' ), 270 292 'selectors' => array( 271 293 '{{WRAPPER}} iframe' => 'height: {{SIZE}}{{UNIT}};', … … 287 309 'return_value' => 'yes', 288 310 'default' => 'no', 311 'separator' => 'before', 312 'description' => __( 'Auto height only works when cross domain with "allow origin all in header".', 'custom-iframe' ), 289 313 ) 290 314 ); … … 297 321 'default' => 'yes', 298 322 'condition' => array( 299 'source' => 'default', 300 ), 323 'source!' => 'Pdf', 324 ), 325 'separator' => 'before', 301 326 ) 302 327 ); … … 312 337 'description' => __( 'Set 0 to disable auto-refresh', 'custom-iframe' ), 313 338 'condition' => array( 314 'source ' => 'default',339 'source!' => 'Pdf', 315 340 ), 316 341 ) … … 337 362 'default' => 'no', 338 363 'separator' => 'before', 339 'condition' => array( 340 'source' => 'default', 364 'conditions' => array( 365 'relation' => 'or', 366 'terms' => array( 367 array( 368 'name' => 'pdf_type', 369 'operator' => '!==', 370 'value' => 'file', 371 ), 372 array( 373 'name' => 'source', 374 'operator' => '!==', 375 'value' => 'Pdf', 376 ), 377 ), 341 378 ), 342 379 ) … … 368 405 ), 369 406 'separator' => 'before', 407 ) 408 ); 409 410 $this->end_controls_section(); 411 412 $this->start_controls_section( 413 'x_basic_options', 414 array( 415 'label' => __( 'X Basic Options', 'custom-iframe' ), 416 'tab' => Controls_Manager::TAB_CONTENT, 417 'condition' => array( 418 'source' => 'X', 419 ), 420 ) 421 ); 422 423 $this->add_control( 424 'x_basic_options_pro', 425 array( 426 'label' => '', 427 'type' => Controls_Manager::RAW_HTML, 428 'default' => '', 429 'description' => '', 430 'raw' => $this->pro_plugin_notice(), 431 'condition' => array( 432 'source' => 'X', 433 ), 434 ) 435 ); 436 437 $this->end_controls_section(); 438 439 $this->start_controls_section( 440 'x_advanced_options', 441 array( 442 'label' => __( 'X Basic Options', 'custom-iframe' ), 443 'tab' => Controls_Manager::TAB_CONTENT, 444 'condition' => array( 445 'source' => 'X', 446 ), 447 ) 448 ); 449 450 $this->add_control( 451 'x_advance_options_pro', 452 array( 453 'label' => '', 454 'type' => Controls_Manager::RAW_HTML, 455 'default' => '', 456 'description' => '', 457 'raw' => $this->pro_plugin_notice(), 458 'condition' => array( 459 'source' => 'X', 460 ), 461 ) 462 ); 463 464 $this->end_controls_section(); 465 466 $this->start_controls_section( 467 'basic_options', 468 array( 469 'label' => __( 'Basic Options', 'custom-iframe' ), 470 'tab' => Controls_Manager::TAB_CONTENT, 471 'condition' => array( 472 'source' => 'Youtube', 473 ), 474 ) 475 ); 476 477 $this->add_control( 478 'youtube_basic_options_pro', 479 array( 480 'label' => '', 481 'type' => Controls_Manager::RAW_HTML, 482 'default' => '', 483 'description' => '', 484 'raw' => $this->pro_plugin_notice(), 485 'condition' => array( 486 'source' => 'Youtube', 487 ), 488 ) 489 ); 490 491 $this->end_controls_section(); 492 493 $this->start_controls_section( 494 'youtube_playback_section', 495 array( 496 'label' => __( 'YouTube Playback', 'custom-iframe' ), 497 'tab' => Controls_Manager::TAB_CONTENT, 498 'condition' => array( 499 'source' => 'Youtube', 500 ), 501 ) 502 ); 503 504 $this->add_control( 505 'youtube_playback_section_pro', 506 array( 507 'label' => '', 508 'type' => Controls_Manager::RAW_HTML, 509 'default' => '', 510 'description' => '', 511 'raw' => $this->pro_plugin_notice(), 512 'condition' => array( 513 'source' => 'Youtube', 514 ), 515 ) 516 ); 517 518 $this->end_controls_section(); 519 520 $this->start_controls_section( 521 'youtube_appearance_section', 522 array( 523 'label' => __( 'YouTube Appearance', 'custom-iframe' ), 524 'tab' => Controls_Manager::TAB_CONTENT, 525 'condition' => array( 526 'source' => 'Youtube', 527 ), 528 ) 529 ); 530 531 $this->add_control( 532 'youtube_appearance_section_pro', 533 array( 534 'label' => '', 535 'type' => Controls_Manager::RAW_HTML, 536 'default' => '', 537 'description' => '', 538 'raw' => $this->pro_plugin_notice(), 539 'condition' => array( 540 'source' => 'Youtube', 541 ), 542 ) 543 ); 544 545 $this->end_controls_section(); 546 547 $this->start_controls_section( 548 'youtube_advanced_section', 549 array( 550 'label' => __( 'YouTube Advanced', 'custom-iframe' ), 551 'tab' => Controls_Manager::TAB_CONTENT, 552 'condition' => array( 553 'source' => 'Youtube', 554 ), 555 ) 556 ); 557 558 $this->add_control( 559 'youtube_advanced_section_pro', 560 array( 561 'label' => '', 562 'type' => Controls_Manager::RAW_HTML, 563 'default' => '', 564 'description' => '', 565 'raw' => $this->pro_plugin_notice(), 566 'condition' => array( 567 'source' => 'Youtube', 568 ), 569 ) 570 ); 571 572 $this->end_controls_section(); 573 574 $this->start_controls_section( 575 'youtube_captions_section', 576 array( 577 'label' => __( 'YouTube Captions', 'custom-iframe' ), 578 'tab' => Controls_Manager::TAB_CONTENT, 579 'condition' => array( 580 'source' => 'Youtube', 581 ), 582 ) 583 ); 584 585 $this->add_control( 586 'youtube_captions_section_pro', 587 array( 588 'label' => '', 589 'type' => Controls_Manager::RAW_HTML, 590 'default' => '', 591 'description' => '', 592 'raw' => $this->pro_plugin_notice(), 593 'condition' => array( 594 'source' => 'Youtube', 595 ), 596 ) 597 ); 598 599 $this->end_controls_section(); 600 601 $this->start_controls_section( 602 'vimeo_basic_options', 603 array( 604 'label' => __( 'Vimeo Basic Options', 'custom-iframe' ), 605 'tab' => Controls_Manager::TAB_CONTENT, 606 'condition' => array( 607 'source' => 'Vimeo', 608 ), 609 ) 610 ); 611 612 $this->add_control( 613 'vimeo_basic_options_pro', 614 array( 615 'label' => '', 616 'type' => Controls_Manager::RAW_HTML, 617 'default' => '', 618 'description' => '', 619 'raw' => $this->pro_plugin_notice(), 620 'condition' => array( 621 'source' => 'Vimeo', 622 ), 623 ) 624 ); 625 626 $this->end_controls_section(); 627 628 $this->start_controls_section( 629 'vimeo_playback_options', 630 array( 631 'label' => __( 'Vimeo Playback', 'custom-iframe' ), 632 'tab' => Controls_Manager::TAB_CONTENT, 633 'condition' => array( 634 'source' => 'Vimeo', 635 ), 636 ) 637 ); 638 639 $this->add_control( 640 'vimeo_playback_options_pro', 641 array( 642 'label' => '', 643 'type' => Controls_Manager::RAW_HTML, 644 'default' => '', 645 'description' => '', 646 'raw' => $this->pro_plugin_notice(), 647 'condition' => array( 648 'source' => 'Vimeo', 649 ), 650 ) 651 ); 652 653 $this->end_controls_section(); 654 655 $this->start_controls_section( 656 'vimeo_appearance_options', 657 array( 658 'label' => __( 'Vimeo Appearance', 'custom-iframe' ), 659 'tab' => Controls_Manager::TAB_CONTENT, 660 'condition' => array( 661 'source' => 'Vimeo', 662 ), 663 ) 664 ); 665 666 $this->add_control( 667 'vimeo_appearance_options_pro', 668 array( 669 'label' => '', 670 'type' => Controls_Manager::RAW_HTML, 671 'default' => '', 672 'description' => '', 673 'raw' => $this->pro_plugin_notice(), 674 'condition' => array( 675 'source' => 'Vimeo', 676 ), 370 677 ) 371 678 ); … … 726 1033 'custom-iframe' 727 1034 ), 1035 'separator' => 'after', 728 1036 'label_block' => true, 729 'separator' => 'before', 1037 ) 1038 ); 1039 1040 $this->add_control( 1041 'sandbox', 1042 array( 1043 'label' => __( 'Enable Sandbox', 'custom-iframe' ), 1044 'type' => Controls_Manager::SWITCHER, 1045 'default' => 'no', 1046 ) 1047 ); 1048 1049 $this->add_control( 1050 'sandbox_pro', 1051 array( 1052 'label' => '', 1053 'type' => Controls_Manager::RAW_HTML, 1054 'default' => '', 1055 'description' => '', 1056 'raw' => $this->pro_plugin_notice(), 1057 'condition' => array( 1058 'sandbox' => 'yes', 1059 ), 1060 ) 1061 ); 1062 1063 $this->add_control( 1064 'custif_custom_iframe_attributes', 1065 array( 1066 'label' => __( 'Attributes', 'custom-iframe' ), 1067 'type' => Controls_Manager::SWITCHER, 1068 'default' => 'no', 1069 ) 1070 ); 1071 1072 $this->add_control( 1073 'custif_custom_iframe_attributes_pro', 1074 array( 1075 'label' => '', 1076 'type' => Controls_Manager::RAW_HTML, 1077 'default' => '', 1078 'description' => '', 1079 'raw' => $this->pro_plugin_notice(), 1080 'condition' => array( 1081 'custif_custom_iframe_attributes' => 'yes', 1082 ), 730 1083 ) 731 1084 ); … … 751 1104 ), 752 1105 'separator' => 'before', 753 )754 );755 756 $this->add_control(757 'align',758 array(759 'label' => __( 'Alignment', 'custom-iframe' ),760 'type' => Controls_Manager::CHOOSE,761 'options' => array(762 'left' => array(763 'title' => __( 'Left', 'custom-iframe' ),764 'icon' => 'eicon-text-align-left',765 ),766 'center' => array(767 'title' => __( 'Center', 'custom-iframe' ),768 'icon' => 'eicon-text-align-center',769 ),770 'right' => array(771 'title' => __( 'Right', 'custom-iframe' ),772 'icon' => 'eicon-text-align-right',773 ),774 ),775 'prefix_class' => 'custif-iframe-align-',776 'separator' => 'before',777 1106 ) 778 1107 ); … … 809 1138 ); 810 1139 1140 $this->add_control( 1141 'align', 1142 array( 1143 'label' => __( 'Alignment', 'custom-iframe' ), 1144 'type' => Controls_Manager::CHOOSE, 1145 'options' => array( 1146 'left' => array( 1147 'title' => __( 'Left', 'custom-iframe' ), 1148 'icon' => 'eicon-text-align-left', 1149 ), 1150 'center' => array( 1151 'title' => __( 'Center', 'custom-iframe' ), 1152 'icon' => 'eicon-text-align-center', 1153 ), 1154 'right' => array( 1155 'title' => __( 'Right', 'custom-iframe' ), 1156 'icon' => 'eicon-text-align-right', 1157 ), 1158 ), 1159 'prefix_class' => 'custif-iframe-align-', 1160 'separator' => 'before', 1161 ) 1162 ); 1163 811 1164 $this->end_controls_section(); 812 1165 … … 841 1194 array( 842 1195 'name' => 'iframe_border', 843 'selector' => '{{WRAPPER}} iframe ',1196 'selector' => '{{WRAPPER}} iframe,{{WRAPPER}} .custif-iframe-wrapper', 844 1197 ) 845 1198 ); … … 869 1222 array( 870 1223 'name' => 'iframe_box_shadow', 871 'selector' => '{{WRAPPER}} iframe',1224 'selector' => '{{WRAPPER}} .custif-iframe-wrapper', 872 1225 ) 873 1226 ); … … 929 1282 ?> 930 1283 <div class="custif-iframe-wrapper" id="<?php echo esc_attr( $iframe_id ); ?>"> 931 <?php if ( ( ! empty( $source ) && ' default' === $source ) || ( 'url' === $pdf_type && ! empty( $settings['pdf_file_link']['url'] ) ) ) : ?>1284 <?php if ( ( ! empty( $source ) && 'Pdf' !== $source ) || ( 'url' === $pdf_type && ! empty( $settings['pdf_file_link']['url'] ) ) ) : ?> 932 1285 <?php if ( ! empty( $url ) ) : ?> 933 1286 <?php -
custom-iframe/tags/1.0.13/widget/class-need-help-controller.php
r3262072 r3342477 20 20 array( 21 21 'type' => Controls_Manager::RAW_HTML, 22 'raw' => wp_kses_post( "<a class='' href='https://wordpress.org/support/plugin/custom-iframe/ ?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Raise a Ticket </a>" ),22 'raw' => wp_kses_post( "<a class='' href='https://wordpress.org/support/plugin/custom-iframe/' target='_blank' rel='noopener noreferrer'> Raise a Ticket </a>" ), 23 23 ) 24 24 ); … … 27 27 array( 28 28 'type' => Controls_Manager::RAW_HTML, 29 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Read Documentation </a>" ),29 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/docs/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=read_docs' target='_blank' rel='noopener noreferrer'> Read Documentation </a>" ), 30 30 ) 31 31 ); … … 34 34 array( 35 35 'type' => Controls_Manager::RAW_HTML, 36 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/contact/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Suggest Feature </a>" ),36 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/contact/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=suggest_feature' target='_blank' rel='noopener noreferrer'> Suggest Feature </a>" ), 37 37 ) 38 38 ); … … 41 41 array( 42 42 'type' => Controls_Manager::RAW_HTML, 43 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/contact/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Didn't work like you wanted? Report Issue </a>" ),43 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/support/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=support_links&utm_content=report_issue' target='_blank' rel='noopener noreferrer'> Didn't work like you wanted? Report Issue </a>" ), 44 44 ) 45 45 ); -
custom-iframe/trunk/assets/css/admin/admin.css
r3314097 r3342477 240 240 241 241 .step-title { 242 color: var(--primary);242 color: #100D3F; 243 243 font-weight: 500; 244 244 margin-bottom: 10px; … … 482 482 .pro-features-list .coming-soon { 483 483 font-size: 12px; 484 color: # 4f46e5;484 color: #100D3F; 485 485 margin-left: 5px; 486 486 font-style: italic; 487 487 white-space: nowrap; 488 font-weight: 500; 488 489 } 489 490 -
custom-iframe/trunk/assets/js/widget.js
r3277337 r3342477 13 13 // Auto height only works when cross origin properly set 14 14 if (autoHeight === 'yes') { 15 document.addEventListener('lazyshow', function (e) { 16 if (e.target === iframe) { 17 try { 18 var height = iframe.contentDocument.querySelector('html').scrollHeight; 19 iframe.style.height = height + 'px'; 20 } catch (e) { 21 console.log('Cross origin iframe detected'); 22 } 23 } 24 }); 15 try { 16 var height = iframe.contentDocument.querySelector('html').scrollHeight; 17 iframe.style.height = height + 'px'; 18 } catch (e) { 19 console.log('Cross origin iframe detected'); 20 } 25 21 } 26 22 -
custom-iframe/trunk/custom-iframe-widget.php
r3325265 r3342477 4 4 * Plugin URI: https://coderzstudio.com/plugins/custom-iframe 5 5 * Description: An advanced Elementor widget to embed iFrames with customizable options. 6 * Version: 1.0.1 26 * Version: 1.0.13 7 7 * Author: Coderz Studio 8 8 * Author URI: https://coderzstudio.com/ … … 19 19 * Requires at least: 5.8 20 20 * Requires PHP: 7.4 21 * Elementor tested up to: 3.3 022 * Elementor Pro tested up to: 3.3 021 * Elementor tested up to: 3.31 22 * Elementor Pro tested up to: 3.31 23 23 */ 24 24 … … 51 51 52 52 // Define constants. 53 define( 'CUSTIF_VERSION', '1.0.1 2' );53 define( 'CUSTIF_VERSION', '1.0.13' ); 54 54 define( 'CUSTIF_URL', plugin_dir_url( __FILE__ ) ); 55 55 define( 'CUSTIF_PATH', plugin_dir_path( __FILE__ ) ); -
custom-iframe/trunk/includes/class-custif-admin.php
r3314097 r3342477 232 232 <li>🐦 <?php esc_html_e( 'Enhanced X (Twitter) Options', 'custom-iframe' ); ?></li> 233 233 <li>🎨 <?php esc_html_e( 'Custom Watermarks', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 234 <li>📚 <?php esc_html_e( '3D Flipbook PDF Viewer', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li>234 <li>📚 <?php esc_html_e( '3D Flipbook PDF', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 235 235 <li>📱 <?php esc_html_e( 'Device Frame Display', 'custom-iframe' ); ?> <span class="coming-soon">(<?php esc_html_e( 'coming soon', 'custom-iframe' ); ?>)</span></li> 236 236 </ul> … … 291 291 <div class="resource-card"> 292 292 <div class="resource-title"><?php esc_html_e( 'Documentation', 'custom-iframe' ); ?></div> 293 <button class="resource-action"><a href="https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=wordpress&utm_medium=dashboard&utm_campaign=custom_iframe&utm_id=wp_04" target="_blank"><?php esc_html_e( 'Read Now', 'custom-iframe' ); ?></a></button>293 <button class="resource-action"><a href="https://customiframe.com/docs/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=read_docs" target="_blank"><?php esc_html_e( 'Read Now', 'custom-iframe' ); ?></a></button> 294 294 </div> 295 295 -
custom-iframe/trunk/includes/class-deactivate-feedback.php
r3311922 r3342477 198 198 199 199 $reason_key = ! empty( $_POST['reason_key'] ) ? sanitize_text_field( wp_unslash( $_POST['reason_key'] ) ) : ''; 200 $reason_text = ! empty( $_POST[ 'reason_' . $reason_key ] ) ? sanitize_text_field( wp_unslash( $_POST[ 'reason_' . $reason_key] ) ) : '';200 $reason_text = ! empty( $_POST['reason_text'] ) ? sanitize_text_field( wp_unslash( $_POST['reason_text'] ) ) : ''; 201 201 202 202 $api_params = array( 203 203 'count' => 1, 204 'reason' => $reason_ text ? $reason_text : $reason_key,204 'reason' => $reason_key . ( ! empty( $reason_text ) ? ': ' . $reason_text : '' ), 205 205 ); 206 206 -
custom-iframe/trunk/includes/class-notice-manager.php
r3311922 r3342477 126 126 <p> 127 127 <a href="https://youtu.be/EB6MgWB6zLA?si=IqG88NkkM_DC84Ds" target="_blank">🎥 Video Tutorial</a> | 128 <a href="https://c oderzstudio.com/plugins/custom-iframe/demo/?utm_source=wordpress&utm_medium=dashboard&utm_campaign=custom_iframe&utm_id=wp_03" target="_blank">🔗 Live Demo</a>128 <a href="https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo" target="_blank">🔗 Live Demo</a> 129 129 </p> 130 130 </div>'; … … 213 213 <?php 214 214 } 215 216 /** 217 * Get pro plugin notice HTML. 218 * 219 * @return string Pro plugin notice HTML. 220 * @since 1.0.13 221 */ 222 public function pro_plugin_notice() { 223 return sprintf( 224 '<div class="custif-pro-notice"> 225 <div class="notice-content"> 226 <span class="notice-text">%s</span> 227 </div> 228 <div class="notice-actions"> 229 <a href="%s" target="_blank" class="upgrade-link">%s</a> 230 </div> 231 </div> 232 <style> 233 .custif-pro-notice { 234 background: #f8fafc; 235 border: 1px solid #e2e8f0; 236 border-radius: 6px; 237 padding: 10px 14px; 238 margin: 8px 0; 239 display: flex; 240 align-items: center; 241 justify-content: space-between; 242 font-size: 12px; 243 line-height: 1.3; 244 } 245 .custif-pro-notice .notice-content { 246 display: flex; 247 align-items: center; 248 gap: 6px; 249 font-size: 12px; 250 } 251 .custif-pro-notice .pro-badge { 252 background: #6366f1; 253 color: white; 254 padding: 1px 4px; 255 border-radius: 2px; 256 font-size: 9px; 257 font-weight: 600; 258 text-transform: uppercase; 259 letter-spacing: 0.3px; 260 } 261 .custif-pro-notice .notice-text { 262 color: #64748b; 263 font-weight: 400; 264 } 265 .custif-pro-notice .notice-actions { 266 display: flex; 267 align-items: center; 268 gap: 8px; 269 flex-shrink: 0; 270 } 271 .custif-pro-notice .demo-link, 272 .custif-pro-notice .upgrade-link { 273 text-decoration: none; 274 font-weight: 500; 275 font-size: 12px; 276 padding: 3px 10px; 277 border-radius: 5px; 278 transition: all 0.2s; 279 } 280 .custif-pro-notice .demo-link { 281 color: #64748b; 282 border: 1px solid #cbd5e1; 283 } 284 .custif-pro-notice .demo-link:hover { 285 background: #f1f5f9; 286 color: #475569; 287 } 288 .custif-pro-notice .upgrade-link { 289 color: #6366f1; 290 background: #f0f4ff; 291 } 292 .custif-pro-notice .upgrade-link:hover { 293 background: #e0e7ff; 294 color: #4f46e5; 295 } 296 </style>', 297 esc_html( sprintf( __( 'Upgrade to unlock this option', 'custom-iframe-widget-for-elementor' ) ) ), 298 esc_url( 'https://customiframe.com/early-bird/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=upgrade_cta' ), 299 esc_html__( 'Get Pro', 'custom-iframe-widget-for-elementor' ) 300 ); 301 } 215 302 } 216 303 -
custom-iframe/trunk/languages/custom-iframe.pot
r3325265 r3342477 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Custom iFrame 1.0.1 2\n"5 "Project-Id-Version: Custom iFrame 1.0.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-iframe\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 7-09T20:36:45+00:00\n"12 "POT-Creation-Date: 2025-08-10T16:06:36+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 19 19 #: includes/class-custif-admin.php:31 20 20 #: includes/class-custif-admin.php:32 21 #: widget/class-custom-iframe-widget.php: 7721 #: widget/class-custom-iframe-widget.php:96 22 22 msgid "Custom iFrame" 23 23 msgstr "" … … 134 134 135 135 #: includes/class-custif-admin.php:234 136 msgid "3D Flipbook PDF Viewer"136 msgid "3D Flipbook PDF" 137 137 msgstr "" 138 138 … … 299 299 msgstr "" 300 300 301 #: widget/class-custom-iframe-widget.php:1 32301 #: widget/class-custom-iframe-widget.php:151 302 302 msgid "Content" 303 303 msgstr "" 304 304 305 #: widget/class-custom-iframe-widget.php:1 40305 #: widget/class-custom-iframe-widget.php:159 306 306 msgid "Source Type" 307 307 msgstr "" 308 308 309 #: widget/class-custom-iframe-widget.php:1 44309 #: widget/class-custom-iframe-widget.php:163 310 310 msgid "Default" 311 311 msgstr "" 312 312 313 #: widget/class-custom-iframe-widget.php:1 45313 #: widget/class-custom-iframe-widget.php:164 314 314 msgid "Pdf" 315 315 msgstr "" 316 316 317 #: widget/class-custom-iframe-widget.php:154 317 #: widget/class-custom-iframe-widget.php:165 318 msgid "X ( Pro )" 319 msgstr "" 320 321 #: widget/class-custom-iframe-widget.php:166 322 msgid "YouTube ( Pro )" 323 msgstr "" 324 325 #: widget/class-custom-iframe-widget.php:167 326 msgid "Vimeo ( Pro )" 327 msgstr "" 328 329 #: widget/class-custom-iframe-widget.php:175 318 330 msgid "Source URL" 319 331 msgstr "" 320 332 321 #: widget/class-custom-iframe-widget.php:1 59333 #: widget/class-custom-iframe-widget.php:180 322 334 msgid "https://example.com" 323 335 msgstr "" 324 336 325 #: widget/class-custom-iframe-widget.php:1 72337 #: widget/class-custom-iframe-widget.php:193 326 338 msgid "PDF Source" 327 339 msgstr "" 328 340 329 #: widget/class-custom-iframe-widget.php:1 76341 #: widget/class-custom-iframe-widget.php:197 330 342 msgid "File" 331 343 msgstr "" 332 344 333 #: widget/class-custom-iframe-widget.php:1 77334 #: widget/class-custom-iframe-widget.php:2 10345 #: widget/class-custom-iframe-widget.php:198 346 #: widget/class-custom-iframe-widget.php:231 335 347 msgid "URL" 336 348 msgstr "" 337 349 338 #: widget/class-custom-iframe-widget.php: 188350 #: widget/class-custom-iframe-widget.php:209 339 351 msgid "Upload File" 340 352 msgstr "" 341 353 342 #: widget/class-custom-iframe-widget.php: 196354 #: widget/class-custom-iframe-widget.php:217 343 355 msgid "Upload a file or pick one from your media library for embed. Supported File Type: PDF" 344 356 msgstr "" 345 357 346 #: widget/class-custom-iframe-widget.php:2 12358 #: widget/class-custom-iframe-widget.php:233 347 359 msgid "https://your-link.com/file.pdf" 348 360 msgstr "" 349 361 350 #: widget/class-custom-iframe-widget.php:2 35362 #: widget/class-custom-iframe-widget.php:256 351 363 msgid "URL PDFs can't customize toolbar options due to external source limits" 352 364 msgstr "" 353 365 354 #: widget/class-custom-iframe-widget.php:2 49366 #: widget/class-custom-iframe-widget.php:270 355 367 msgid "Height" 356 368 msgstr "" 357 369 358 #: widget/class-custom-iframe-widget.php:283 370 #: widget/class-custom-iframe-widget.php:291 371 msgid "height is not supported when using the X Embed Post." 372 msgstr "" 373 374 #: widget/class-custom-iframe-widget.php:305 359 375 msgid "Auto Height" 360 376 msgstr "" 361 377 362 #: widget/class-custom-iframe-widget.php: 285363 #: widget/class-custom-iframe-widget.php:3 34364 #: widget/class-custom-iframe-widget.php:3 50378 #: widget/class-custom-iframe-widget.php:307 379 #: widget/class-custom-iframe-widget.php:359 380 #: widget/class-custom-iframe-widget.php:387 365 381 msgid "Yes" 366 382 msgstr "" 367 383 368 #: widget/class-custom-iframe-widget.php: 286369 #: widget/class-custom-iframe-widget.php:3 35370 #: widget/class-custom-iframe-widget.php:3 51384 #: widget/class-custom-iframe-widget.php:308 385 #: widget/class-custom-iframe-widget.php:360 386 #: widget/class-custom-iframe-widget.php:388 371 387 msgid "No" 372 388 msgstr "" 373 389 374 #: widget/class-custom-iframe-widget.php:295 390 #: widget/class-custom-iframe-widget.php:312 391 msgid "Auto height only works when cross domain with \"allow origin all in header\"." 392 msgstr "" 393 394 #: widget/class-custom-iframe-widget.php:319 375 395 msgid "Show Scrollbars" 376 396 msgstr "" 377 397 378 #: widget/class-custom-iframe-widget.php:3 07398 #: widget/class-custom-iframe-widget.php:332 379 399 msgid "Refresh Interval (seconds)" 380 400 msgstr "" 381 401 382 #: widget/class-custom-iframe-widget.php:3 12402 #: widget/class-custom-iframe-widget.php:337 383 403 msgid "Set 0 to disable auto-refresh" 384 404 msgstr "" 385 405 386 #: widget/class-custom-iframe-widget.php:3 24406 #: widget/class-custom-iframe-widget.php:349 387 407 msgid "Smart Load" 388 408 msgstr "" 389 409 390 #: widget/class-custom-iframe-widget.php:3 32391 #: widget/class-custom-iframe-widget.php:3 48410 #: widget/class-custom-iframe-widget.php:357 411 #: widget/class-custom-iframe-widget.php:385 392 412 msgid "Lazy Load" 393 413 msgstr "" 394 414 395 #: widget/class-custom-iframe-widget.php: 364415 #: widget/class-custom-iframe-widget.php:401 396 416 msgid "Placeholder Image" 397 417 msgstr "" 398 418 399 #: widget/class-custom-iframe-widget.php:378 419 #: widget/class-custom-iframe-widget.php:415 420 #: widget/class-custom-iframe-widget.php:442 421 msgid "X Basic Options" 422 msgstr "" 423 424 #: widget/class-custom-iframe-widget.php:469 425 msgid "Basic Options" 426 msgstr "" 427 428 #: widget/class-custom-iframe-widget.php:496 429 msgid "YouTube Playback" 430 msgstr "" 431 432 #: widget/class-custom-iframe-widget.php:523 433 msgid "YouTube Appearance" 434 msgstr "" 435 436 #: widget/class-custom-iframe-widget.php:550 437 msgid "YouTube Advanced" 438 msgstr "" 439 440 #: widget/class-custom-iframe-widget.php:577 441 msgid "YouTube Captions" 442 msgstr "" 443 444 #: widget/class-custom-iframe-widget.php:604 445 msgid "Vimeo Basic Options" 446 msgstr "" 447 448 #: widget/class-custom-iframe-widget.php:631 449 msgid "Vimeo Playback" 450 msgstr "" 451 452 #: widget/class-custom-iframe-widget.php:658 453 msgid "Vimeo Appearance" 454 msgstr "" 455 456 #: widget/class-custom-iframe-widget.php:685 400 457 msgid "Display Options" 401 458 msgstr "" 402 459 403 #: widget/class-custom-iframe-widget.php: 390460 #: widget/class-custom-iframe-widget.php:697 404 461 msgid "Theme" 405 462 msgstr "" 406 463 407 #: widget/class-custom-iframe-widget.php: 394464 #: widget/class-custom-iframe-widget.php:701 408 465 msgid "System Default" 409 466 msgstr "" 410 467 411 #: widget/class-custom-iframe-widget.php: 395468 #: widget/class-custom-iframe-widget.php:702 412 469 msgid "Dark" 413 470 msgstr "" 414 471 415 #: widget/class-custom-iframe-widget.php: 396472 #: widget/class-custom-iframe-widget.php:703 416 473 msgid "Light" 417 474 msgstr "" 418 475 419 #: widget/class-custom-iframe-widget.php: 397420 #: widget/class-custom-iframe-widget.php: 431476 #: widget/class-custom-iframe-widget.php:704 477 #: widget/class-custom-iframe-widget.php:738 421 478 msgid "Custom" 422 479 msgstr "" 423 480 424 #: widget/class-custom-iframe-widget.php: 409481 #: widget/class-custom-iframe-widget.php:716 425 482 msgid "Custom Color" 426 483 msgstr "" 427 484 428 #: widget/class-custom-iframe-widget.php: 423485 #: widget/class-custom-iframe-widget.php:730 429 486 msgid "Zoom" 430 487 msgstr "" 431 488 432 #: widget/class-custom-iframe-widget.php: 427489 #: widget/class-custom-iframe-widget.php:734 433 490 msgid "Automatic Zoom" 434 491 msgstr "" 435 492 436 #: widget/class-custom-iframe-widget.php: 428493 #: widget/class-custom-iframe-widget.php:735 437 494 msgid "Actual Size" 438 495 msgstr "" 439 496 440 #: widget/class-custom-iframe-widget.php: 429497 #: widget/class-custom-iframe-widget.php:736 441 498 msgid "Page Fit" 442 499 msgstr "" 443 500 444 #: widget/class-custom-iframe-widget.php: 430501 #: widget/class-custom-iframe-widget.php:737 445 502 msgid "Page Width" 446 503 msgstr "" 447 504 448 #: widget/class-custom-iframe-widget.php: 432505 #: widget/class-custom-iframe-widget.php:739 449 506 msgid "50%" 450 507 msgstr "" 451 508 452 #: widget/class-custom-iframe-widget.php: 433509 #: widget/class-custom-iframe-widget.php:740 453 510 msgid "75%" 454 511 msgstr "" 455 512 456 #: widget/class-custom-iframe-widget.php: 434513 #: widget/class-custom-iframe-widget.php:741 457 514 msgid "100%" 458 515 msgstr "" 459 516 460 #: widget/class-custom-iframe-widget.php: 435517 #: widget/class-custom-iframe-widget.php:742 461 518 msgid "125%" 462 519 msgstr "" 463 520 464 #: widget/class-custom-iframe-widget.php: 436521 #: widget/class-custom-iframe-widget.php:743 465 522 msgid "150%" 466 523 msgstr "" 467 524 468 #: widget/class-custom-iframe-widget.php: 437525 #: widget/class-custom-iframe-widget.php:744 469 526 msgid "200%" 470 527 msgstr "" 471 528 472 #: widget/class-custom-iframe-widget.php: 438529 #: widget/class-custom-iframe-widget.php:745 473 530 msgid "300%" 474 531 msgstr "" 475 532 476 #: widget/class-custom-iframe-widget.php: 439533 #: widget/class-custom-iframe-widget.php:746 477 534 msgid "400%" 478 535 msgstr "" 479 536 480 #: widget/class-custom-iframe-widget.php: 441537 #: widget/class-custom-iframe-widget.php:748 481 538 msgid "Note: Initial zoom value when the file is loaded." 482 539 msgstr "" 483 540 484 #: widget/class-custom-iframe-widget.php: 452541 #: widget/class-custom-iframe-widget.php:759 485 542 msgid "Custom Zoom" 486 543 msgstr "" 487 544 488 #: widget/class-custom-iframe-widget.php: 465545 #: widget/class-custom-iframe-widget.php:772 489 546 msgid "Default Selection Tool" 490 547 msgstr "" 491 548 492 #: widget/class-custom-iframe-widget.php: 468549 #: widget/class-custom-iframe-widget.php:775 493 550 msgid "Text Tool" 494 551 msgstr "" 495 552 496 #: widget/class-custom-iframe-widget.php: 469553 #: widget/class-custom-iframe-widget.php:776 497 554 msgid "Hand Tool" 498 555 msgstr "" 499 556 500 #: widget/class-custom-iframe-widget.php: 482557 #: widget/class-custom-iframe-widget.php:789 501 558 msgid "Default Scrolling" 502 559 msgstr "" 503 560 504 #: widget/class-custom-iframe-widget.php: 485561 #: widget/class-custom-iframe-widget.php:792 505 562 msgid "Page Scrolling" 506 563 msgstr "" 507 564 508 #: widget/class-custom-iframe-widget.php: 486565 #: widget/class-custom-iframe-widget.php:793 509 566 msgid "Vertical Scrolling" 510 567 msgstr "" 511 568 512 #: widget/class-custom-iframe-widget.php: 487569 #: widget/class-custom-iframe-widget.php:794 513 570 msgid "Horizontal Scrolling" 514 571 msgstr "" 515 572 516 #: widget/class-custom-iframe-widget.php: 488573 #: widget/class-custom-iframe-widget.php:795 517 574 msgid "Wrapped Scrolling" 518 575 msgstr "" 519 576 520 #: widget/class-custom-iframe-widget.php: 501577 #: widget/class-custom-iframe-widget.php:808 521 578 msgid "Default Spreads" 522 579 msgstr "" 523 580 524 #: widget/class-custom-iframe-widget.php: 504581 #: widget/class-custom-iframe-widget.php:811 525 582 msgid "No Spreads" 526 583 msgstr "" 527 584 528 #: widget/class-custom-iframe-widget.php: 505585 #: widget/class-custom-iframe-widget.php:812 529 586 msgid "Odd Spreads" 530 587 msgstr "" 531 588 532 #: widget/class-custom-iframe-widget.php: 506589 #: widget/class-custom-iframe-widget.php:813 533 590 msgid "Even Spreads" 534 591 msgstr "" 535 592 536 #: widget/class-custom-iframe-widget.php: 522593 #: widget/class-custom-iframe-widget.php:829 537 594 msgid "Toolbar Settings" 538 595 msgstr "" 539 596 540 #: widget/class-custom-iframe-widget.php: 534597 #: widget/class-custom-iframe-widget.php:841 541 598 msgid "Toolbar" 542 599 msgstr "" 543 600 544 #: widget/class-custom-iframe-widget.php: 536545 #: widget/class-custom-iframe-widget.php: 577546 #: widget/class-custom-iframe-widget.php: 594547 #: widget/class-custom-iframe-widget.php: 611548 #: widget/class-custom-iframe-widget.php: 628549 #: widget/class-custom-iframe-widget.php: 645550 #: widget/class-custom-iframe-widget.php: 662551 #: widget/class-custom-iframe-widget.php: 679552 #: widget/class-custom-iframe-widget.php: 696601 #: widget/class-custom-iframe-widget.php:843 602 #: widget/class-custom-iframe-widget.php:884 603 #: widget/class-custom-iframe-widget.php:901 604 #: widget/class-custom-iframe-widget.php:918 605 #: widget/class-custom-iframe-widget.php:935 606 #: widget/class-custom-iframe-widget.php:952 607 #: widget/class-custom-iframe-widget.php:969 608 #: widget/class-custom-iframe-widget.php:986 609 #: widget/class-custom-iframe-widget.php:1003 553 610 msgid "Show" 554 611 msgstr "" 555 612 556 #: widget/class-custom-iframe-widget.php: 537557 #: widget/class-custom-iframe-widget.php: 578558 #: widget/class-custom-iframe-widget.php: 595559 #: widget/class-custom-iframe-widget.php: 612560 #: widget/class-custom-iframe-widget.php: 629561 #: widget/class-custom-iframe-widget.php: 646562 #: widget/class-custom-iframe-widget.php: 663563 #: widget/class-custom-iframe-widget.php: 680564 #: widget/class-custom-iframe-widget.php: 697613 #: widget/class-custom-iframe-widget.php:844 614 #: widget/class-custom-iframe-widget.php:885 615 #: widget/class-custom-iframe-widget.php:902 616 #: widget/class-custom-iframe-widget.php:919 617 #: widget/class-custom-iframe-widget.php:936 618 #: widget/class-custom-iframe-widget.php:953 619 #: widget/class-custom-iframe-widget.php:970 620 #: widget/class-custom-iframe-widget.php:987 621 #: widget/class-custom-iframe-widget.php:1004 565 622 msgid "Hide" 566 623 msgstr "" 567 624 568 #: widget/class-custom-iframe-widget.php: 550625 #: widget/class-custom-iframe-widget.php:857 569 626 msgid "Toolbar Position" 570 627 msgstr "" 571 628 572 #: widget/class-custom-iframe-widget.php: 554629 #: widget/class-custom-iframe-widget.php:861 573 630 msgid "Top" 574 631 msgstr "" 575 632 576 #: widget/class-custom-iframe-widget.php: 558633 #: widget/class-custom-iframe-widget.php:865 577 634 msgid "Bottom" 578 635 msgstr "" 579 636 580 #: widget/class-custom-iframe-widget.php: 575637 #: widget/class-custom-iframe-widget.php:882 581 638 msgid "Print/Download" 582 639 msgstr "" 583 640 584 #: widget/class-custom-iframe-widget.php: 592641 #: widget/class-custom-iframe-widget.php:899 585 642 msgid "Presentation Mode" 586 643 msgstr "" 587 644 588 #: widget/class-custom-iframe-widget.php: 609645 #: widget/class-custom-iframe-widget.php:916 589 646 msgid "Copy Text" 590 647 msgstr "" 591 648 592 #: widget/class-custom-iframe-widget.php: 626649 #: widget/class-custom-iframe-widget.php:933 593 650 msgid "Add Text" 594 651 msgstr "" 595 652 596 #: widget/class-custom-iframe-widget.php: 643653 #: widget/class-custom-iframe-widget.php:950 597 654 msgid "Draw" 598 655 msgstr "" 599 656 600 #: widget/class-custom-iframe-widget.php: 660657 #: widget/class-custom-iframe-widget.php:967 601 658 msgid "Add Image" 602 659 msgstr "" 603 660 604 #: widget/class-custom-iframe-widget.php: 677661 #: widget/class-custom-iframe-widget.php:984 605 662 msgid "Rotation" 606 663 msgstr "" 607 664 608 #: widget/class-custom-iframe-widget.php: 694665 #: widget/class-custom-iframe-widget.php:1001 609 666 msgid "Properties" 610 667 msgstr "" 611 668 612 #: widget/class-custom-iframe-widget.php: 713669 #: widget/class-custom-iframe-widget.php:1020 613 670 msgid "Advance" 614 671 msgstr "" 615 672 616 #: widget/class-custom-iframe-widget.php: 721673 #: widget/class-custom-iframe-widget.php:1028 617 674 msgid "Custom ID" 618 675 msgstr "" 619 676 620 #: widget/class-custom-iframe-widget.php: 723677 #: widget/class-custom-iframe-widget.php:1030 621 678 msgid "my-custom-iframe" 622 679 msgstr "" 623 680 624 #: widget/class-custom-iframe-widget.php: 724681 #: widget/class-custom-iframe-widget.php:1031 625 682 msgid "Enter an ID for custom CSS or JavaScript. Leave empty for an auto-generated ID." 626 683 msgstr "" 627 684 628 #: widget/class-custom-iframe-widget.php:738 685 #: widget/class-custom-iframe-widget.php:1043 686 msgid "Enable Sandbox" 687 msgstr "" 688 689 #: widget/class-custom-iframe-widget.php:1066 690 msgid "Attributes" 691 msgstr "" 692 693 #: widget/class-custom-iframe-widget.php:1091 629 694 msgid "Style" 630 695 msgstr "" 631 696 632 #: widget/class-custom-iframe-widget.php: 746697 #: widget/class-custom-iframe-widget.php:1099 633 698 msgid "Padding" 634 699 msgstr "" 635 700 636 #: widget/class-custom-iframe-widget.php:759 701 #: widget/class-custom-iframe-widget.php:1112 702 msgid "Container Width" 703 msgstr "" 704 705 #: widget/class-custom-iframe-widget.php:1143 637 706 msgid "Alignment" 638 707 msgstr "" 639 708 640 #: widget/class-custom-iframe-widget.php: 763709 #: widget/class-custom-iframe-widget.php:1147 641 710 msgid "Left" 642 711 msgstr "" 643 712 644 #: widget/class-custom-iframe-widget.php: 767713 #: widget/class-custom-iframe-widget.php:1151 645 714 msgid "Center" 646 715 msgstr "" 647 716 648 #: widget/class-custom-iframe-widget.php: 771717 #: widget/class-custom-iframe-widget.php:1155 649 718 msgid "Right" 650 719 msgstr "" 651 720 652 #: widget/class-custom-iframe-widget.php:783 653 msgid "Container Width" 654 msgstr "" 655 656 #: widget/class-custom-iframe-widget.php:816 657 #: widget/class-custom-iframe-widget.php:824 721 #: widget/class-custom-iframe-widget.php:1169 722 #: widget/class-custom-iframe-widget.php:1177 658 723 msgid "Background Style" 659 724 msgstr "" 660 725 661 #: widget/class-custom-iframe-widget.php: 835726 #: widget/class-custom-iframe-widget.php:1188 662 727 msgid "Border Style" 663 728 msgstr "" 664 729 665 #: widget/class-custom-iframe-widget.php: 850730 #: widget/class-custom-iframe-widget.php:1203 666 731 msgid "Border Radius" 667 732 msgstr "" 668 733 669 #: widget/class-custom-iframe-widget.php: 863734 #: widget/class-custom-iframe-widget.php:1216 670 735 msgid "Box Shadow Style" 671 736 msgstr "" 672 737 673 #: widget/class-custom-iframe-widget.php: 949738 #: widget/class-custom-iframe-widget.php:1302 674 739 msgid "Please enter a valid URL" 675 740 msgstr "" -
custom-iframe/trunk/readme.txt
r3325274 r3342477 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8 6 Stable tag: 1.0.1 26 Stable tag: 1.0.13 7 7 Requires PHP: 7.4 8 8 License: GPL-2.0+ … … 50 50 - 📱 **Device Frame Display** – Show content in device frames (coming soon) 51 51 52 👉 **[Live Demo](https://c oderzstudio.com/plugins/custom-iframe/demo/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)**53 👉 **[Get Premium Version](https://c oderzstudio.com/plugins/custom-iframe/pricing/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)**52 👉 **[Live Demo](https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo)** 53 👉 **[Get Premium Version](https://customiframe.com/early-bird/?utm_source=plugin&utm_medium=wpdashboard&utm_campaign=upgrade_cta)** 54 54 55 55 **🔴 Watch the Video Tutorial ( <a href="https://www.youtube.com/watch?v=EB6MgWB6zLA" target="_blank">Link</a> )** … … 78 78 == Screenshots == 79 79 80 1. EmbedAny Type Of content without Limit.80 1. **Embed** Any Type Of content without Limit. 81 81 2. **Embed Videos** – Video Player ( Youtube, Vimeo, etc.). 82 82 3. **Embed Social Media Posts** – X, Linkdin, Instagram, etc. … … 118 118 == Changelog == 119 119 120 = 1.0.12 (July 10, 2025) = 120 = 1.0.13 (August 3, 2025) = 121 * Improvements : Improved Feedback form. 122 * Improvements : Improved Dashboard design. 123 * Improvements : Controller UI Improved. 124 * Fixed : Auto height not working. 125 * Fixed : Border radius not working with box shadows. 126 * Compatibility: Elementor Version Free & Pro 3.31. 127 128 = 1.0.12 (June 10, 2025) = 121 129 * Compatibility: Added support for **YouTube Shorts** embed. 122 130 * Compatibility: Added support for **Wistia Videos** embed. … … 184 192 Need help? We're here for you! 185 193 186 💬 **Website:** [CoderzStudio.com](https://c oderzstudio.com/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)187 📖 **Docs:** [View Documentation](https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01)194 💬 **Website:** [CoderzStudio.com](https://customiframe.com/?utm_source=wordpress&utm_medium=readme&utm_campaign=custom_iframe&utm_id=wp_01) 195 📖 **Docs:** [View Documentation](https://customiframe.com/demo/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=demo) 188 196 🛠️ **Support:** [Submit a Request](https://wordpress.org/plugins/custom-iframe/#reviews) 189 197 -
custom-iframe/trunk/widget/class-custom-iframe-widget.php
r3311922 r3342477 5 5 use custif\includes\embed_handlers\Embed_Converter; 6 6 use custif\includes\embed_handlers\PDF_Handler; 7 use custif\includes\Notice_Manager; 7 8 use Elementor\Controls_Manager; 8 9 use Elementor\Group_Control_Background; … … 27 28 28 29 /** 30 * Notices manager instance. 31 * 32 * @var Notice_Manager 33 */ 34 private $notices_manager; 35 36 /** 29 37 * Embed converter instance. 30 38 * … … 53 61 parent::__construct( $data, $args ); 54 62 55 // Initialize the embed converter and PDF handler.63 // Initialize the embed converter , PDF handler and Notice class. 56 64 $this->embed_converter = new Embed_Converter(); 57 65 $this->pdf_handler = new PDF_Handler(); 66 $this->notices_manager = new Notice_Manager(); 67 } 68 69 /** 70 * Get pro plugin notice HTML. 71 * 72 * @return string Pro plugin notice HTML. 73 * @since 1.0.13 74 */ 75 protected function pro_plugin_notice() { 76 return $this->notices_manager->pro_plugin_notice(); 58 77 } 59 78 … … 144 163 'default' => __( 'Default', 'custom-iframe' ), 145 164 'Pdf' => __( 'Pdf', 'custom-iframe' ), 146 ), 147 165 'X' => __( 'X ( Pro )', 'custom-iframe' ), 166 'Youtube' => __( 'YouTube ( Pro )', 'custom-iframe' ), 167 'Vimeo' => __( 'Vimeo ( Pro )', 'custom-iframe' ), 168 ), 148 169 ) 149 170 ); … … 161 182 'show_external' => false, 162 183 'condition' => array( 163 'source ' => 'default',184 'source!' => 'Pdf', 164 185 ), 165 186 ) … … 268 289 'size' => 500, 269 290 ), 291 'description' => __( 'height is not supported when using the X Embed Post.', 'custom-iframe' ), 270 292 'selectors' => array( 271 293 '{{WRAPPER}} iframe' => 'height: {{SIZE}}{{UNIT}};', … … 287 309 'return_value' => 'yes', 288 310 'default' => 'no', 311 'separator' => 'before', 312 'description' => __( 'Auto height only works when cross domain with "allow origin all in header".', 'custom-iframe' ), 289 313 ) 290 314 ); … … 297 321 'default' => 'yes', 298 322 'condition' => array( 299 'source' => 'default', 300 ), 323 'source!' => 'Pdf', 324 ), 325 'separator' => 'before', 301 326 ) 302 327 ); … … 312 337 'description' => __( 'Set 0 to disable auto-refresh', 'custom-iframe' ), 313 338 'condition' => array( 314 'source ' => 'default',339 'source!' => 'Pdf', 315 340 ), 316 341 ) … … 337 362 'default' => 'no', 338 363 'separator' => 'before', 339 'condition' => array( 340 'source' => 'default', 364 'conditions' => array( 365 'relation' => 'or', 366 'terms' => array( 367 array( 368 'name' => 'pdf_type', 369 'operator' => '!==', 370 'value' => 'file', 371 ), 372 array( 373 'name' => 'source', 374 'operator' => '!==', 375 'value' => 'Pdf', 376 ), 377 ), 341 378 ), 342 379 ) … … 368 405 ), 369 406 'separator' => 'before', 407 ) 408 ); 409 410 $this->end_controls_section(); 411 412 $this->start_controls_section( 413 'x_basic_options', 414 array( 415 'label' => __( 'X Basic Options', 'custom-iframe' ), 416 'tab' => Controls_Manager::TAB_CONTENT, 417 'condition' => array( 418 'source' => 'X', 419 ), 420 ) 421 ); 422 423 $this->add_control( 424 'x_basic_options_pro', 425 array( 426 'label' => '', 427 'type' => Controls_Manager::RAW_HTML, 428 'default' => '', 429 'description' => '', 430 'raw' => $this->pro_plugin_notice(), 431 'condition' => array( 432 'source' => 'X', 433 ), 434 ) 435 ); 436 437 $this->end_controls_section(); 438 439 $this->start_controls_section( 440 'x_advanced_options', 441 array( 442 'label' => __( 'X Basic Options', 'custom-iframe' ), 443 'tab' => Controls_Manager::TAB_CONTENT, 444 'condition' => array( 445 'source' => 'X', 446 ), 447 ) 448 ); 449 450 $this->add_control( 451 'x_advance_options_pro', 452 array( 453 'label' => '', 454 'type' => Controls_Manager::RAW_HTML, 455 'default' => '', 456 'description' => '', 457 'raw' => $this->pro_plugin_notice(), 458 'condition' => array( 459 'source' => 'X', 460 ), 461 ) 462 ); 463 464 $this->end_controls_section(); 465 466 $this->start_controls_section( 467 'basic_options', 468 array( 469 'label' => __( 'Basic Options', 'custom-iframe' ), 470 'tab' => Controls_Manager::TAB_CONTENT, 471 'condition' => array( 472 'source' => 'Youtube', 473 ), 474 ) 475 ); 476 477 $this->add_control( 478 'youtube_basic_options_pro', 479 array( 480 'label' => '', 481 'type' => Controls_Manager::RAW_HTML, 482 'default' => '', 483 'description' => '', 484 'raw' => $this->pro_plugin_notice(), 485 'condition' => array( 486 'source' => 'Youtube', 487 ), 488 ) 489 ); 490 491 $this->end_controls_section(); 492 493 $this->start_controls_section( 494 'youtube_playback_section', 495 array( 496 'label' => __( 'YouTube Playback', 'custom-iframe' ), 497 'tab' => Controls_Manager::TAB_CONTENT, 498 'condition' => array( 499 'source' => 'Youtube', 500 ), 501 ) 502 ); 503 504 $this->add_control( 505 'youtube_playback_section_pro', 506 array( 507 'label' => '', 508 'type' => Controls_Manager::RAW_HTML, 509 'default' => '', 510 'description' => '', 511 'raw' => $this->pro_plugin_notice(), 512 'condition' => array( 513 'source' => 'Youtube', 514 ), 515 ) 516 ); 517 518 $this->end_controls_section(); 519 520 $this->start_controls_section( 521 'youtube_appearance_section', 522 array( 523 'label' => __( 'YouTube Appearance', 'custom-iframe' ), 524 'tab' => Controls_Manager::TAB_CONTENT, 525 'condition' => array( 526 'source' => 'Youtube', 527 ), 528 ) 529 ); 530 531 $this->add_control( 532 'youtube_appearance_section_pro', 533 array( 534 'label' => '', 535 'type' => Controls_Manager::RAW_HTML, 536 'default' => '', 537 'description' => '', 538 'raw' => $this->pro_plugin_notice(), 539 'condition' => array( 540 'source' => 'Youtube', 541 ), 542 ) 543 ); 544 545 $this->end_controls_section(); 546 547 $this->start_controls_section( 548 'youtube_advanced_section', 549 array( 550 'label' => __( 'YouTube Advanced', 'custom-iframe' ), 551 'tab' => Controls_Manager::TAB_CONTENT, 552 'condition' => array( 553 'source' => 'Youtube', 554 ), 555 ) 556 ); 557 558 $this->add_control( 559 'youtube_advanced_section_pro', 560 array( 561 'label' => '', 562 'type' => Controls_Manager::RAW_HTML, 563 'default' => '', 564 'description' => '', 565 'raw' => $this->pro_plugin_notice(), 566 'condition' => array( 567 'source' => 'Youtube', 568 ), 569 ) 570 ); 571 572 $this->end_controls_section(); 573 574 $this->start_controls_section( 575 'youtube_captions_section', 576 array( 577 'label' => __( 'YouTube Captions', 'custom-iframe' ), 578 'tab' => Controls_Manager::TAB_CONTENT, 579 'condition' => array( 580 'source' => 'Youtube', 581 ), 582 ) 583 ); 584 585 $this->add_control( 586 'youtube_captions_section_pro', 587 array( 588 'label' => '', 589 'type' => Controls_Manager::RAW_HTML, 590 'default' => '', 591 'description' => '', 592 'raw' => $this->pro_plugin_notice(), 593 'condition' => array( 594 'source' => 'Youtube', 595 ), 596 ) 597 ); 598 599 $this->end_controls_section(); 600 601 $this->start_controls_section( 602 'vimeo_basic_options', 603 array( 604 'label' => __( 'Vimeo Basic Options', 'custom-iframe' ), 605 'tab' => Controls_Manager::TAB_CONTENT, 606 'condition' => array( 607 'source' => 'Vimeo', 608 ), 609 ) 610 ); 611 612 $this->add_control( 613 'vimeo_basic_options_pro', 614 array( 615 'label' => '', 616 'type' => Controls_Manager::RAW_HTML, 617 'default' => '', 618 'description' => '', 619 'raw' => $this->pro_plugin_notice(), 620 'condition' => array( 621 'source' => 'Vimeo', 622 ), 623 ) 624 ); 625 626 $this->end_controls_section(); 627 628 $this->start_controls_section( 629 'vimeo_playback_options', 630 array( 631 'label' => __( 'Vimeo Playback', 'custom-iframe' ), 632 'tab' => Controls_Manager::TAB_CONTENT, 633 'condition' => array( 634 'source' => 'Vimeo', 635 ), 636 ) 637 ); 638 639 $this->add_control( 640 'vimeo_playback_options_pro', 641 array( 642 'label' => '', 643 'type' => Controls_Manager::RAW_HTML, 644 'default' => '', 645 'description' => '', 646 'raw' => $this->pro_plugin_notice(), 647 'condition' => array( 648 'source' => 'Vimeo', 649 ), 650 ) 651 ); 652 653 $this->end_controls_section(); 654 655 $this->start_controls_section( 656 'vimeo_appearance_options', 657 array( 658 'label' => __( 'Vimeo Appearance', 'custom-iframe' ), 659 'tab' => Controls_Manager::TAB_CONTENT, 660 'condition' => array( 661 'source' => 'Vimeo', 662 ), 663 ) 664 ); 665 666 $this->add_control( 667 'vimeo_appearance_options_pro', 668 array( 669 'label' => '', 670 'type' => Controls_Manager::RAW_HTML, 671 'default' => '', 672 'description' => '', 673 'raw' => $this->pro_plugin_notice(), 674 'condition' => array( 675 'source' => 'Vimeo', 676 ), 370 677 ) 371 678 ); … … 726 1033 'custom-iframe' 727 1034 ), 1035 'separator' => 'after', 728 1036 'label_block' => true, 729 'separator' => 'before', 1037 ) 1038 ); 1039 1040 $this->add_control( 1041 'sandbox', 1042 array( 1043 'label' => __( 'Enable Sandbox', 'custom-iframe' ), 1044 'type' => Controls_Manager::SWITCHER, 1045 'default' => 'no', 1046 ) 1047 ); 1048 1049 $this->add_control( 1050 'sandbox_pro', 1051 array( 1052 'label' => '', 1053 'type' => Controls_Manager::RAW_HTML, 1054 'default' => '', 1055 'description' => '', 1056 'raw' => $this->pro_plugin_notice(), 1057 'condition' => array( 1058 'sandbox' => 'yes', 1059 ), 1060 ) 1061 ); 1062 1063 $this->add_control( 1064 'custif_custom_iframe_attributes', 1065 array( 1066 'label' => __( 'Attributes', 'custom-iframe' ), 1067 'type' => Controls_Manager::SWITCHER, 1068 'default' => 'no', 1069 ) 1070 ); 1071 1072 $this->add_control( 1073 'custif_custom_iframe_attributes_pro', 1074 array( 1075 'label' => '', 1076 'type' => Controls_Manager::RAW_HTML, 1077 'default' => '', 1078 'description' => '', 1079 'raw' => $this->pro_plugin_notice(), 1080 'condition' => array( 1081 'custif_custom_iframe_attributes' => 'yes', 1082 ), 730 1083 ) 731 1084 ); … … 751 1104 ), 752 1105 'separator' => 'before', 753 )754 );755 756 $this->add_control(757 'align',758 array(759 'label' => __( 'Alignment', 'custom-iframe' ),760 'type' => Controls_Manager::CHOOSE,761 'options' => array(762 'left' => array(763 'title' => __( 'Left', 'custom-iframe' ),764 'icon' => 'eicon-text-align-left',765 ),766 'center' => array(767 'title' => __( 'Center', 'custom-iframe' ),768 'icon' => 'eicon-text-align-center',769 ),770 'right' => array(771 'title' => __( 'Right', 'custom-iframe' ),772 'icon' => 'eicon-text-align-right',773 ),774 ),775 'prefix_class' => 'custif-iframe-align-',776 'separator' => 'before',777 1106 ) 778 1107 ); … … 809 1138 ); 810 1139 1140 $this->add_control( 1141 'align', 1142 array( 1143 'label' => __( 'Alignment', 'custom-iframe' ), 1144 'type' => Controls_Manager::CHOOSE, 1145 'options' => array( 1146 'left' => array( 1147 'title' => __( 'Left', 'custom-iframe' ), 1148 'icon' => 'eicon-text-align-left', 1149 ), 1150 'center' => array( 1151 'title' => __( 'Center', 'custom-iframe' ), 1152 'icon' => 'eicon-text-align-center', 1153 ), 1154 'right' => array( 1155 'title' => __( 'Right', 'custom-iframe' ), 1156 'icon' => 'eicon-text-align-right', 1157 ), 1158 ), 1159 'prefix_class' => 'custif-iframe-align-', 1160 'separator' => 'before', 1161 ) 1162 ); 1163 811 1164 $this->end_controls_section(); 812 1165 … … 841 1194 array( 842 1195 'name' => 'iframe_border', 843 'selector' => '{{WRAPPER}} iframe ',1196 'selector' => '{{WRAPPER}} iframe,{{WRAPPER}} .custif-iframe-wrapper', 844 1197 ) 845 1198 ); … … 869 1222 array( 870 1223 'name' => 'iframe_box_shadow', 871 'selector' => '{{WRAPPER}} iframe',1224 'selector' => '{{WRAPPER}} .custif-iframe-wrapper', 872 1225 ) 873 1226 ); … … 929 1282 ?> 930 1283 <div class="custif-iframe-wrapper" id="<?php echo esc_attr( $iframe_id ); ?>"> 931 <?php if ( ( ! empty( $source ) && ' default' === $source ) || ( 'url' === $pdf_type && ! empty( $settings['pdf_file_link']['url'] ) ) ) : ?>1284 <?php if ( ( ! empty( $source ) && 'Pdf' !== $source ) || ( 'url' === $pdf_type && ! empty( $settings['pdf_file_link']['url'] ) ) ) : ?> 932 1285 <?php if ( ! empty( $url ) ) : ?> 933 1286 <?php -
custom-iframe/trunk/widget/class-need-help-controller.php
r3262072 r3342477 20 20 array( 21 21 'type' => Controls_Manager::RAW_HTML, 22 'raw' => wp_kses_post( "<a class='' href='https://wordpress.org/support/plugin/custom-iframe/ ?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Raise a Ticket </a>" ),22 'raw' => wp_kses_post( "<a class='' href='https://wordpress.org/support/plugin/custom-iframe/' target='_blank' rel='noopener noreferrer'> Raise a Ticket </a>" ), 23 23 ) 24 24 ); … … 27 27 array( 28 28 'type' => Controls_Manager::RAW_HTML, 29 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/plugin-doc/custom-iframe/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Read Documentation </a>" ),29 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/docs/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=read_docs' target='_blank' rel='noopener noreferrer'> Read Documentation </a>" ), 30 30 ) 31 31 ); … … 34 34 array( 35 35 'type' => Controls_Manager::RAW_HTML, 36 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/contact/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Suggest Feature </a>" ),36 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/contact/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=suggest_feature' target='_blank' rel='noopener noreferrer'> Suggest Feature </a>" ), 37 37 ) 38 38 ); … … 41 41 array( 42 42 'type' => Controls_Manager::RAW_HTML, 43 'raw' => wp_kses_post( "<a class='' href='https://c oderzstudio.com/contact/?utm_source=elementor&utm_medium=needhelp&utm_campaign=custom_iframe&utm_id=wp_02' target='_blank' rel='noopener noreferrer'> Didn't work like you wanted? Report Issue </a>" ),43 'raw' => wp_kses_post( "<a class='' href='https://customiframe.com/support/?utm_source=elementor&utm_medium=widget_settings&utm_campaign=support_links&utm_content=report_issue' target='_blank' rel='noopener noreferrer'> Didn't work like you wanted? Report Issue </a>" ), 44 44 ) 45 45 );
Note: See TracChangeset
for help on using the changeset viewer.