Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/skyweb24.popuppro/include/ |
Upload File : |
<? use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); $editableWindow=new popupproEdit(); $CountCreateTypePopups = $editableWindow -> getCountTypePopups(); $typePopups = $editableWindow -> getTypes(); // combine array foreach ($typePopups as $key => $typePopup) { $typePopups[$key]['create_count'] = ($CountCreateTypePopups[$key]['count']) ? $CountCreateTypePopups[$key]['count'] : 0 ; } $arrThemeFlexItems = [ "banner" => 'Beniukon-Bronze', "video" => 'NYC-Taxi', "action" => 'Turquoise-Topaz', "social" => 'Gloomy-Purple', "contact" => 'Algal-Fuel', "share" => 'Gloomy-Purple', "html" => 'Innuendo', "age" => 'Blue-Horizon', "coupon" => 'Royal-Blue', "roulette" => 'Desire', "discount" => 'Boyzone', "thimbles" => 'Gloomy-Purple', ]; ?> <? if($typePopups AND !$_REQUEST['id']) : ?> <div class="soFlexItems popuppro"> <? foreach ($typePopups as $key => $typePopup) : ?> <? if(!$typePopup['create_count']) continue; ?> <? $countStatShow = $editableWindow -> getCountStatShow($typePopup['code']); ?> <? $countStatAction = $editableWindow -> getCountStatAction($typePopup['code']); ?> <? if(!$countStatShow) { $countStatShow = 0; } if(!$countStatAction){ $countStatAction = 0; } $conversion = 0; if( $countStatShow != 0 AND $countStatAction != 0 ){ $conversion = round((int)$countStatAction / (int)$countStatShow * 100, 1 ); } ?> <article class="<?=$arrThemeFlexItems[$typePopup['code']];?>"> <div> <header><a target="_blank" href="<?=$typePopup['link_document'];?>"><?=$typePopup['name'];?></a></header> <section><?=$typePopup['create_count']?></section> <footer> <div class="container stat-info"> <div title="<?=GetMessage("skyweb24.popuppro_TABLELIST_STAT_SHOW");?>" class="item"><img src="/bitrix/themes/.default/skyweb24.popuppro/images/eye.png" alt=""><span><?=number_format($countStatShow, 0, '', ' ');?></span></div> <div title="<?=GetMessage("skyweb24.popuppro_TABLELIST_STAT_ACTION");?>" class="item"><img src="/bitrix/themes/.default/skyweb24.popuppro/images/target.png" alt=""><span><?=$countStatAction;?></span></div> <div title="<?=GetMessage("SKWB24_TITLE_ICON_CONVERSION");?>" class="item"><img src="/bitrix/themes/.default/skyweb24.popuppro/images/funnel.png" alt=""><span><?=$conversion?>%</span></div> </div> </footer> </div> </article> <? endforeach; ?> </div> <? endif; ?>