mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Let choose ads to not show on videos page
This commit is contained in:
parent
10d294e899
commit
33a757da74
7 changed files with 28 additions and 37 deletions
|
@ -223,7 +223,7 @@ class API extends PluginAbstract
|
|||
}
|
||||
$ad = AVideoPlugin::getObjectDataIfEnabled('ADs');
|
||||
$array = array('users_id' => $users_id, 'ads' => array());
|
||||
foreach (ADs::$AdsPositions as $key => $value) {
|
||||
foreach (ADs::AdsPositions as $key => $value) {
|
||||
$type = $value[0];
|
||||
$desktopGlobal = false;
|
||||
$mobileGlobal = false;
|
||||
|
@ -1048,7 +1048,7 @@ class API extends PluginAbstract
|
|||
}
|
||||
$rows[$key]['adsImages'] = array();
|
||||
if (!empty($objAds)) {
|
||||
foreach (ADs::$AdsPositions as $value) {
|
||||
foreach (ADs::AdsPositions as $value) {
|
||||
$type = $value[0];
|
||||
$rows[$key]['adsImages'][] = array('type' => $type, 'assets' => ADs::getAdsFromVideosId($type, $rows[$key]['id']));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue