Plugin Directory

Changeset 2986533


Ignore:
Timestamp:
10/31/2023 06:03:30 AM (2 years ago)
Author:
nikmelnik
Message:

Релиз версии 1.0.4 плагина Realbig

Изменения версии:

  • спрятали под аккордеон проблему последней деактивации спустя неделю после ошибки;
  • исправили ошибку в админке при включенном плагине.
Location:
realbig-media/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • realbig-media/trunk/README.MD

    r2971623 r2986533  
    108108== Changelog ==
    109109
     110= 1.0.4 =
     111
     112Изменения версии:
     113
     114* спрятали под аккордеон проблему последней деактивации спустя неделю после ошибки;
     115* исправили ошибку в админке при включенном плагине.
     116
    110117= 1.0.3 =
    111118
  • realbig-media/trunk/README.txt

    r2971623 r2986533  
    108108== Changelog ==
    109109
     110= 1.0.4 =
     111
     112Изменения версии:
     113
     114* спрятали под аккордеон проблему последней деактивации спустя неделю после ошибки;
     115* исправили ошибку в админке при включенном плагине.
     116
    110117= 1.0.3 =
    111118
  • realbig-media/trunk/RFWP_AdminPage.php

    r2896400 r2986533  
    77    {
    88        public static function settingsMenuCreate() {
     9            global $wp_filesystem;
    910            $iconUrl = "";
    1011
    1112            try {
    12                 $arrContextOptions=array(
    13                     "ssl"=>array(
    14                         "verify_peer"=>false,
    15                         "verify_peer_name"=>false,
    16                     ),
    17                 );
    18 
    19                 $iconUrl = file_get_contents(plugins_url().'/'.basename(__DIR__).'/assets/realbig_plugin_standart.svg' ,
    20                     false, stream_context_create($arrContextOptions));
    21                 $iconUrl = 'data:image/svg+xml;base64,' . base64_encode($iconUrl);
     13                WP_Filesystem();
     14                $filePath = plugin_dir_path( __FILE__ ).'assets/realbig_plugin_standart.svg';
     15                if ( $wp_filesystem->exists( $filePath ) ) {
     16                    $iconUrl = $wp_filesystem->get_contents( $filePath );
     17                    $iconUrl = 'data:image/svg+xml;base64,' . base64_encode($iconUrl);
     18                }
    2219            } catch (Exception $ex) {
    2320                RFWP_Logs::saveLogs(RFWP_Logs::ERRORS_LOG, 'Error Load Menu Icon: ' . $ex->getMessage());
  • realbig-media/trunk/realbigForWP.php

    r2971623 r2986533  
    66Plugin name:  Realbig Media
    77Description:  Плагин для монетизации от RealBig.media
    8 Version:      1.0.3
     8Version:      1.0.4
    99Author:       Realbig Team
    1010Author URI:   https://realbig.media
  • realbig-media/trunk/templates/adminPage/info.php

    r2971623 r2986533  
    44
    55<?php if (!empty($args['deacError'])): ?>
    6     <div class="squads-blocks">
     6    <div class="squads-blocks" style="<?php echo (time() - strtotime($args['deacTime']) > 60 * 60 * 24 * 7) ? 'width: 100%' : ''; ?>">
     7        <?php if (time() - strtotime($args['deacTime']) > 60 * 60 * 24 * 7): ?>
     8            <div class="element-separator most accordion-section">
     9                <div class="accordion-section-title">Последняя деактивация</div>
     10                <div class="accordion-section-content">
     11        <?php endif; ?>
    712        Причина последней деактивации:
    813        <div>
     
    1015            Время: <?php echo $args['deacTime']?> <br>
    1116        </div>
     17        <?php if (time() - strtotime($args['deacTime']) > 60 * 60 * 24 * 7): ?>
     18                </div>
     19            </div>
     20        <?php endif; ?>
    1221    </div>
    1322<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.