Plugin Directory

Changeset 3452427


Ignore:
Timestamp:
02/02/2026 10:03:11 PM (2 weeks ago)
Author:
optimal360
Message:

Version 1.1.2 (fixed divi support)

Location:
optimal-360
Files:
22 added
8 edited

Legend:

Unmodified
Added
Removed
  • optimal-360/trunk/assets/block-editor.js

    r3451236 r3452427  
    269269                        className: 'optimal360-iframe',
    270270                        frameBorder: '0',
    271                         allow: "identity-credentials-get; storage-access"
     271                        allow: "identity-credentials-get"
    272272                    }),
    273273                    el('div', { className: 'optimal360-modal-footer' },
  • optimal-360/trunk/assets/divi-builder.js

    r3451236 r3452427  
    7878            '</div>' +
    7979            '<div class="optimal360-modal-body">' +
    80                 '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get; storage-access"></iframe>' +
     80                '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get"></iframe>' +
    8181            '</div>' +
    8282            '<div class="optimal360-modal-footer">' +
     
    111111        if ($settingsModal.length && !$settingsModal.find('.optimal360-select-btn').length) {
    112112            // Find the module settings for optimal360_showcase
    113             var $moduleSettings = $('.et_pb_module_settings[data-module_type="optimal360_showcase"]');
     113            var $moduleSettings = $('.et_pb_module_settings[data-module_type="et_pb_optimal360_showcase"]');
    114114           
    115115            if ($moduleSettings.length) {
     
    202202        // Hook into the visual builder's module settings
    203203        $(document).on('et_fb_module_settings_opened', function(e, module) {
    204             if (module && module.type === 'optimal360_showcase') {
     204            if (module && module.type === 'et_pb_optimal360_showcase') {
    205205                currentModuleAddress = module.address;
    206206                setTimeout(injectSelectButton, 100);
  • optimal-360/trunk/assets/elementor-editor.js

    r3451236 r3452427  
    6969            '</div>' +
    7070            '<div class="optimal360-modal-body">' +
    71                 '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get; storage-access"></iframe>' +
     71                '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get"></iframe>' +
    7272            '</div>' +
    7373            '<div class="optimal360-modal-footer">' +
  • optimal-360/trunk/assets/woocommerce-admin.js

    r3451236 r3452427  
    7575            '</div>' +
    7676            '<div class="optimal360-modal-body">' +
    77                 '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get; storage-access"></iframe>' +
     77                '<iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get"></iframe>' +
    7878            '</div>' +
    7979            '<div class="optimal360-modal-footer">' +
  • optimal-360/trunk/includes/divi-module.php

    r3450114 r3452427  
    1010class Optimal360_Divi_Module extends ET_Builder_Module {
    1111
    12     public $slug       = 'optimal360_showcase';
    13     public $vb_support = 'on';
     12    public $slug       = 'et_pb_optimal360_showcase';
     13    public $vb_support = 'partial';  // Use 'partial' for server-side rendering in VB
     14
     15    protected $module_credits = array(
     16        'module_uri' => 'https://optml360.com',
     17        'author'     => 'Optimal 360',
     18        'author_uri' => 'https://optml360.com',
     19    );
    1420
    1521    public function init() {
    16         $this->name = esc_html__('Optimal 360°', 'optml360');
    17         $this->icon = 'N'; // Divi icon
     22        $this->name             = esc_html__('Optimal 360°', 'optml360');
     23        $this->icon             = 'N'; // Divi icon
     24        $this->main_css_element = '%%order_class%%';
    1825
    1926        $this->settings_modal_toggles = array(
     
    7481    }
    7582
    76     public function render($attrs, $content, $render_slug) {
     83    public function render($attrs, $content = null, $render_slug = '') {
    7784        $project_uuid    = isset($this->props['project_uuid']) ? $this->props['project_uuid'] : '';
    7885        $project_name    = isset($this->props['project_name']) ? $this->props['project_name'] : '';
     
    8289
    8390        if (!empty($project_uuid) && preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i', $project_uuid)) {
    84             return sprintf(
     91            $output = sprintf(
    8592                '<div class="optimal360-embed-container" style="width: %s">
    8693                    <iframe
     
    97104            );
    98105        } else {
    99             return sprintf(
     106            $output = sprintf(
    100107                '<div class="optimal360-showcase-placeholder">
    101108                    <div class="optimal360-icon">360°</div>
     
    107114            );
    108115        }
     116
     117        return $this->_render_module_wrapper($output, $render_slug);
    109118    }
    110119}
    111120
    112 new Optimal360_Divi_Module();
     121// Only instantiate if we're inside the Divi builder context
     122if (class_exists('ET_Builder_Module')) {
     123    new Optimal360_Divi_Module();
     124}
  • optimal-360/trunk/includes/shortcode.php

    r3451236 r3452427  
    105105                </div>
    106106                <div class="optimal360-modal-body">
    107                     <iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get; storage-access"></iframe>
     107                    <iframe src="https://app.optml360.com/plugin-login" frameborder="0" allow="identity-credentials-get"></iframe>
    108108                </div>
    109109                <div class="optimal360-modal-footer">
  • optimal-360/trunk/optml360-extension.php

    r3451236 r3452427  
    33 * Plugin Name: Optimal 360
    44 * Description: Turn simple 4K videos into 3D 360 showcases for your websites.
    5  * Version: 1.1.1
     5 * Version: 1.1.2
    66 * Author: Optimal 360
    77 * Author URI: https://optml360.com
  • optimal-360/trunk/readme.txt

    r3451236 r3452427  
    66Requires at least: 5.0
    77Tested up to: 6.8
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99Requires PHP: 7.0
    1010License: GPLv3
Note: See TracChangeset for help on using the changeset viewer.