Plugin Directory

Changeset 2448019


Ignore:
Timestamp:
12/30/2020 02:34:27 PM (5 years ago)
Author:
nikmelnik
Message:

Новая версия плагина, автоматически поменяет ваш код для вставки рекламы от РБ. Других отличий от версии 0.3.6 нет.

Location:
realbig-media/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • realbig-media/trunk/adminPage.php

    r2425485 r2448019  
    168168                            <div name="rezultDiv" style="font-size: 16px"><?php echo $GLOBALS['tokenStatusMessage'] ?></div>
    169169                        <?php endif; ?>
    170                         <?php if (!empty($checkDirName)&&strpos($checkDirName,'realbigForWP')!==false): ?>
     170                        <?php /* if (!empty($checkDirName)&&strpos($checkDirName,'realbigForWP')!==false): ?>
    171171                            <?php submit_button('Rename', 'folderRename', 'folderRename') ?>
    172                         <?php endif; ?>
     172                        <?php endif; /**/ ?>
    173173                        <?php if (!empty($devMode)): ?>
    174174                            <?php if (!empty($rb_rssFeedUrls)): ?>
  • realbig-media/trunk/asyncBlockInserting.js

    r2425485 r2448019  
    156156    let ccRepeat = false;
    157157
    158     let gatheredBlocks = document.querySelectorAll('.percentPointerClass .content_rb');
     158    let gatheredBlocks = document.querySelectorAll('.percentPointerClass .content_rb, .percentPointerClass .cnt32_rl_bg_str');
    159159
    160160    if (gatheredBlocks&&gatheredBlocks.length > 0) {
     
    236236                for (i = 0; i < blocksInContainer.length; i++) {
    237237                    currentBlock = blocksInContainer[i];
    238                     currentBlockId = currentBlock.querySelector('.content_rb').getAttribute('data-id');
     238                    currentBlockId = currentBlock.querySelector('.content_rb, .cnt32_rl_bg_str').getAttribute('data-id');
    239239                    currentContainer = null;
    240240                    for (j = 0; j < usedBlockSettingArray.length; i++) {
     
    300300    if (!emptyValues) {
    301301        htmlToAdd = '#content_rb_'+blockNumber+' > * {\n' +
     302            '    margin: '+marginString+';\n' +
     303            '}\n' +
     304            '#cnt_rb_'+blockNumber+' > * {\n' +
    302305            '    margin: '+marginString+';\n' +
    303306            '}\n';
     
    12281231
    12291232function cachePlacing(alert_type, errorInfo=null) {
    1230     let adBlocks = document.querySelectorAll('.percentPointerClass .content_rb');
    1231     let curAdBlock;
    1232     let okStates = ['done','refresh-wait','no-block','fetched'];
     1233    let adBlocks = document.querySelectorAll('.percentPointerClass .content_rb, .percentPointerClass .cnt32_rl_bg_str'),
     1234        curAdBlock,
     1235        okStates = ['done','refresh-wait','no-block','fetched'];
    12331236    /* let adId = -1; */
    12341237    let blockStatus = null;
  • realbig-media/trunk/readyAdGather.js

    r2328500 r2448019  
    1818    let blocks = {};
    1919    let counter1 = 0;
    20     let gatheredBlocks = document.getElementsByClassName('content_rb');
     20    let gatheredBlocks = document.getElementsByClassName('content_rb cnt32_rl_bg_str');
    2121    let checker = 0;
    2222    let adContent = '';
     
    5050
    5151function timeBeforeGathering() {
    52     let gatheredBlocks = document.getElementsByClassName('content_rb');
     52    let gatheredBlocks = document.getElementsByClassName('content_rb cnt32_rl_bg_str');
    5353    let okStates = ['done','refresh-wait','no-block','fetched'];
    5454    let curState = '';
  • realbig-media/trunk/realbigForWP.php

    r2425485 r2448019  
    66Plugin name:  Realbig Media
    77Description:  Плагин для монетизации от RealBig.media
    8 Version:      0.3.6
     8Version:      0.3.7
    99Author:       Realbig Team
    1010Author URI:   https://realbig.media
     
    655655            $GLOBALS['realbigForWP_version'] = $pluginData['Version'];
    656656        } else {
    657             $GLOBALS['realbigForWP_version'] = '0.3.6';
     657            $GLOBALS['realbigForWP_version'] = '0.3.7';
    658658        }
    659659    }
  • realbig-media/trunk/synchronising.php

    r2425485 r2448019  
    1818            $menuItemList = RFWP_getMenuList();
    1919            $permalinkStatus = RFWP_checkPermalink();
     20            $pluginVersion = RFWP_plugin_version();
    2021            $unsuccessfullAjaxSyncAttempt = 0;
    2122
     
    5657                        'getMenuList' => json_encode($menuItemList),
    5758                        'otherInfo' => $otherInfo,
     59                        'pluginVersion' => $pluginVersion
    5860                    ]
    5961                ];
     
    821823        }
    822824    }
     825    if (!function_exists('RFWP_plugin_version')) {
     826        function RFWP_plugin_version() {
     827            $plugin_version = null;
     828            $plugin_data = get_plugin_data(dirname(__FILE__).'/realbigForWP.php');
     829            if (!empty($plugin_data)&&!empty($plugin_data['Version'])) {
     830                $plugin_version = $plugin_data['Version'];
     831            }
     832
     833            return $plugin_version;
     834        }
     835    }
    823836    if (!function_exists('RFWP_createAndFillLocalRotator')) {
    824837        function RFWP_createAndFillLocalRotator($rotatorFileInfo) {
  • realbig-media/trunk/textEditing.php

    r2425485 r2448019  
    15231523                $excIdClass .= ';';
    15241524            }
    1525             $excIdClass .= ".percentPointerClass;.content_rb;.addedInserting;#toc_container;table;blockquote";
     1525            $excIdClass .= ".percentPointerClass;.content_rb;.cnt32_rl_bg_str;.addedInserting;#toc_container;table;blockquote";
    15261526            if (!empty($excIdClass)) {
    15271527                $excIdClass = explode(';', $excIdClass);
Note: See TracChangeset for help on using the changeset viewer.