Plugin Directory

Changeset 3344082


Ignore:
Timestamp:
08/13/2025 12:57:29 PM (8 months ago)
Author:
scaleflex
Message:

Fix UI issue on the widget

Location:
scaleflex-vxp-dam-dmo
Files:
57 added
10 edited

Legend:

Unmodified
Added
Removed
  • scaleflex-vxp-dam-dmo/tags/1.0.15/assets/css/dam-widget/core.css

    r3344070 r3344082  
    9191}
    9292
    93 #filerobot-widget input[type=text],
    94 #filerobot-widget input[type=password],
    95 #filerobot-widget input[type=number],
    96 #filerobot-widget input[type=email]
     93#filerobot-widget input[type=text], #SfxPopper input[type=text],
     94#filerobot-widget input[type=password], #SfxPopper input[type=password],
     95#filerobot-widget input[type=number], #SfxPopper input[type=number],
     96#filerobot-widget input[type=email] #SfxPopper input[type=email]
    9797{
    9898    width: 100%;
     
    101101}
    102102
    103 #filerobot-widget input[type="text"]:focus,
    104 #filerobot-widget input[type="password"]:focus,
    105 #filerobot-widget input[type="color"]:focus,
    106 #filerobot-widget input[type="date"]:focus,
    107 #filerobot-widget input[type="datetime"]:focus,
    108 #filerobot-widget input[type="datetime-local"]:focus,
    109 #filerobot-widget input[type="email"]:focus,
    110 #filerobot-widget input[type="month"]:focus,
    111 #filerobot-widget input[type="number"]:focus,
    112 #filerobot-widget input[type="search"]:focus,
    113 #filerobot-widget input[type="tel"]:focus,
    114 #filerobot-widget input[type="time"]:focus,
    115 #filerobot-widget input[type="url"]:focus,
    116 #filerobot-widget input[type="week"]:focus,
    117 #filerobot-widget input[type="checkbox"]:focus,
    118 #filerobot-widget input[type="radio"]:focus,
    119 #filerobot-widget select:focus,
    120 #filerobot-widget textarea:focus {
     103#filerobot-widget input[type="text"]:focus, #SfxPopper input[type="text"]:focus,
     104#filerobot-widget input[type="password"]:focus, #SfxPopper input[type="password"]:focus,
     105#filerobot-widget input[type="color"]:focus, #SfxPopper input[type="color"]:focus,
     106#filerobot-widget input[type="date"]:focus, #SfxPopper input[type="date"]:focus,
     107#filerobot-widget input[type="datetime"]:focus, #SfxPopper input[type="datetime"]:focus,
     108#filerobot-widget input[type="datetime-local"]:focus, #SfxPopper input[type="datetime-local"]:focus,
     109#filerobot-widget input[type="email"]:focus, #SfxPopper input[type="email"]:focus,
     110#filerobot-widget input[type="month"]:focus, #SfxPopper input[type="month"]:focus,
     111#filerobot-widget input[type="number"]:focus, #SfxPopper input[type="number"]:focus,
     112#filerobot-widget input[type="search"]:focus, #SfxPopper input[type="search"]:focus,
     113#filerobot-widget input[type="tel"]:focus, #SfxPopper input[type="tel"]:focus,
     114#filerobot-widget input[type="time"]:focus, #SfxPopper input[type="time"]:focus,
     115#filerobot-widget input[type="url"]:focus, #SfxPopper input[type="url"]:focus,
     116#filerobot-widget input[type="week"]:focus, #SfxPopper input[type="week"]:focus,
     117#filerobot-widget input[type="checkbox"]:focus, #SfxPopper input[type="checkbox"]:focus,
     118#filerobot-widget input[type="radio"]:focus, #SfxPopper input[type="radio"]:focus,
     119#filerobot-widget select:focus, #SfxPopper select:focus,
     120#filerobot-widget textarea:focus, #SfxPopper textarea:focus{
    121121    box-shadow: none;
    122122}
  • scaleflex-vxp-dam-dmo/tags/1.0.15/assets/js/dam-widget/sfxvxp-widget-page.js

    r3344070 r3344082  
    101101                }
    102102
    103                 let height = jQuery('body .media-modal-content .media-frame-content').height();
     103                let height = 1000;
     104                if (jQuery('body .media-modal-content .media-frame-content').length > 0) {
     105                    height = jQuery('body .media-modal-content .media-frame-content').height();
     106                }
    104107                filerobot
    105108                    .use(Explorer, {
  • scaleflex-vxp-dam-dmo/tags/1.0.15/pages/part/dam-setting.php

    r3344070 r3344082  
    3434    }
    3535}
    36 
    37 $attachment_id = 75;
    38 $image = wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false, $attr = '');
    39 print_r($image);
    40 
    4136?>
    4237<div class="text-center" style="margin: 20px 0">
  • scaleflex-vxp-dam-dmo/tags/1.0.15/scaleflex-vxp-api.php

    r3344070 r3344082  
    135135
    136136            //Use for local
    137             $image_data = file_get_contents($file_url);
    138             $base64 = base64_encode($image_data);
     137//            $image_data = file_get_contents($file_url);
     138//            $base64 = base64_encode($image_data);
     139//            $params = wp_json_encode([
     140//                'postactions' => 'decode_base64',
     141//                'data' => $base64,
     142//                'name' => $filename,
     143//                'meta' => [
     144//                    'title' => [
     145//                        'en' => $meta['title']
     146//                    ],
     147//                    'description' => [
     148//                        'en' => $meta['description']
     149//                    ]
     150//                ]
     151//            ]);
     152
     153            //Use for prod
    139154            $params = wp_json_encode([
    140                 'postactions' => 'decode_base64',
    141                 'data' => $base64,
    142                 'name' => $filename,
    143                 'meta' => [
    144                     'title' => [
    145                         'en' => $meta['title']
    146                     ],
    147                     'description' => [
    148                         'en' => $meta['description']
     155                'files_urls' => [
     156                    [
     157                        'url' => $file_url,
     158                        'name' => $filename,
     159                        'meta' => [
     160                            'title' => [
     161                                'en' => $meta['title']
     162                            ],
     163                            'description' => [
     164                                'en' => $meta['description']
     165                            ]
     166                        ]
    149167                    ]
    150                 ]
     168                ],
    151169            ]);
    152 
    153             //Use for prod
    154 //            $params = wp_json_encode([
    155 //                'files_urls' => [
    156 //                    [
    157 //                        'url' => $file_url,
    158 //                        'name' => $filename,
    159 //                        'meta' => [
    160 //                            'title' => [
    161 //                                'en' => $meta['title']
    162 //                            ],
    163 //                            'description' => [
    164 //                                'en' => $meta['description']
    165 //                            ]
    166 //                        ]
    167 //                    ]
    168 //                ],
    169 //            ]);
    170170
    171171            $directory = $this->extract_upload_subdir_from_url($file_url);
  • scaleflex-vxp-dam-dmo/trunk/README.txt

    r3344070 r3344082  
    55Tested up to: 6.8
    66Requires at least: 4.8
    7 Stable tag: 1.0.15
     7Stable tag: 1.0.16
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    216216* Fix UI issue on the widget
    217217
     218= 1.0.16 =
     219* Fix UI issue on the widget
     220
    218221== Upgrade Notice ==
    219222
  • scaleflex-vxp-dam-dmo/trunk/assets/css/dam-widget/core.css

    r3344070 r3344082  
    9191}
    9292
    93 #filerobot-widget input[type=text],
    94 #filerobot-widget input[type=password],
    95 #filerobot-widget input[type=number],
    96 #filerobot-widget input[type=email]
     93#filerobot-widget input[type=text], #SfxPopper input[type=text],
     94#filerobot-widget input[type=password], #SfxPopper input[type=password],
     95#filerobot-widget input[type=number], #SfxPopper input[type=number],
     96#filerobot-widget input[type=email] #SfxPopper input[type=email]
    9797{
    9898    width: 100%;
     
    101101}
    102102
    103 #filerobot-widget input[type="text"]:focus,
    104 #filerobot-widget input[type="password"]:focus,
    105 #filerobot-widget input[type="color"]:focus,
    106 #filerobot-widget input[type="date"]:focus,
    107 #filerobot-widget input[type="datetime"]:focus,
    108 #filerobot-widget input[type="datetime-local"]:focus,
    109 #filerobot-widget input[type="email"]:focus,
    110 #filerobot-widget input[type="month"]:focus,
    111 #filerobot-widget input[type="number"]:focus,
    112 #filerobot-widget input[type="search"]:focus,
    113 #filerobot-widget input[type="tel"]:focus,
    114 #filerobot-widget input[type="time"]:focus,
    115 #filerobot-widget input[type="url"]:focus,
    116 #filerobot-widget input[type="week"]:focus,
    117 #filerobot-widget input[type="checkbox"]:focus,
    118 #filerobot-widget input[type="radio"]:focus,
    119 #filerobot-widget select:focus,
    120 #filerobot-widget textarea:focus {
     103#filerobot-widget input[type="text"]:focus, #SfxPopper input[type="text"]:focus,
     104#filerobot-widget input[type="password"]:focus, #SfxPopper input[type="password"]:focus,
     105#filerobot-widget input[type="color"]:focus, #SfxPopper input[type="color"]:focus,
     106#filerobot-widget input[type="date"]:focus, #SfxPopper input[type="date"]:focus,
     107#filerobot-widget input[type="datetime"]:focus, #SfxPopper input[type="datetime"]:focus,
     108#filerobot-widget input[type="datetime-local"]:focus, #SfxPopper input[type="datetime-local"]:focus,
     109#filerobot-widget input[type="email"]:focus, #SfxPopper input[type="email"]:focus,
     110#filerobot-widget input[type="month"]:focus, #SfxPopper input[type="month"]:focus,
     111#filerobot-widget input[type="number"]:focus, #SfxPopper input[type="number"]:focus,
     112#filerobot-widget input[type="search"]:focus, #SfxPopper input[type="search"]:focus,
     113#filerobot-widget input[type="tel"]:focus, #SfxPopper input[type="tel"]:focus,
     114#filerobot-widget input[type="time"]:focus, #SfxPopper input[type="time"]:focus,
     115#filerobot-widget input[type="url"]:focus, #SfxPopper input[type="url"]:focus,
     116#filerobot-widget input[type="week"]:focus, #SfxPopper input[type="week"]:focus,
     117#filerobot-widget input[type="checkbox"]:focus, #SfxPopper input[type="checkbox"]:focus,
     118#filerobot-widget input[type="radio"]:focus, #SfxPopper input[type="radio"]:focus,
     119#filerobot-widget select:focus, #SfxPopper select:focus,
     120#filerobot-widget textarea:focus, #SfxPopper textarea:focus{
    121121    box-shadow: none;
    122122}
  • scaleflex-vxp-dam-dmo/trunk/assets/js/dam-widget/sfxvxp-widget-page.js

    r3344070 r3344082  
    101101                }
    102102
    103                 let height = jQuery('body .media-modal-content .media-frame-content').height();
     103                let height = 1000;
     104                if (jQuery('body .media-modal-content .media-frame-content').length > 0) {
     105                    height = jQuery('body .media-modal-content .media-frame-content').height();
     106                }
    104107                filerobot
    105108                    .use(Explorer, {
  • scaleflex-vxp-dam-dmo/trunk/pages/part/dam-setting.php

    r3344070 r3344082  
    3434    }
    3535}
    36 
    37 $attachment_id = 75;
    38 $image = wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false, $attr = '');
    39 print_r($image);
    40 
    4136?>
    4237<div class="text-center" style="margin: 20px 0">
  • scaleflex-vxp-dam-dmo/trunk/scaleflex-vxp-api.php

    r3344070 r3344082  
    135135
    136136            //Use for local
    137             $image_data = file_get_contents($file_url);
    138             $base64 = base64_encode($image_data);
     137//            $image_data = file_get_contents($file_url);
     138//            $base64 = base64_encode($image_data);
     139//            $params = wp_json_encode([
     140//                'postactions' => 'decode_base64',
     141//                'data' => $base64,
     142//                'name' => $filename,
     143//                'meta' => [
     144//                    'title' => [
     145//                        'en' => $meta['title']
     146//                    ],
     147//                    'description' => [
     148//                        'en' => $meta['description']
     149//                    ]
     150//                ]
     151//            ]);
     152
     153            //Use for prod
    139154            $params = wp_json_encode([
    140                 'postactions' => 'decode_base64',
    141                 'data' => $base64,
    142                 'name' => $filename,
    143                 'meta' => [
    144                     'title' => [
    145                         'en' => $meta['title']
    146                     ],
    147                     'description' => [
    148                         'en' => $meta['description']
     155                'files_urls' => [
     156                    [
     157                        'url' => $file_url,
     158                        'name' => $filename,
     159                        'meta' => [
     160                            'title' => [
     161                                'en' => $meta['title']
     162                            ],
     163                            'description' => [
     164                                'en' => $meta['description']
     165                            ]
     166                        ]
    149167                    ]
    150                 ]
     168                ],
    151169            ]);
    152 
    153             //Use for prod
    154 //            $params = wp_json_encode([
    155 //                'files_urls' => [
    156 //                    [
    157 //                        'url' => $file_url,
    158 //                        'name' => $filename,
    159 //                        'meta' => [
    160 //                            'title' => [
    161 //                                'en' => $meta['title']
    162 //                            ],
    163 //                            'description' => [
    164 //                                'en' => $meta['description']
    165 //                            ]
    166 //                        ]
    167 //                    ]
    168 //                ],
    169 //            ]);
    170170
    171171            $directory = $this->extract_upload_subdir_from_url($file_url);
  • scaleflex-vxp-dam-dmo/trunk/scaleflex-vxp.php

    r3344070 r3344082  
    33 * Plugin Name: Scaleflex VXP - DAM, DMO
    44 * Description: Scaleflex VXP centralizes, manages, optimizes and accelerates your media assets such as images, videos and document in one single source of truth, improving team collaboration and brand consistency.
    5  * Version: 1.0.15
     5 * Version: 1.0.16
    66 * Author: Scaleflex
    77 * Author URI: https://www.scaleflex.com
     
    1818
    1919// Define plugin constants
    20 define('SFXVXP_VERSION', '1.0.15');
     20define('SFXVXP_VERSION', '1.0.16');
    2121define('SFXVXP_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2222define('SFXVXP_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.