File size: 2,165 Bytes
5f32fbd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | <?php
use App\Models\Ad;
function adsense($type)
{
$adsense = Ad::where('type', $type)->where('status', true)->first();
return $adsense;
}
function adsense_header()
{
if (adsense('landing-header-section')) {
return adsense('landing-header-section')->code;
}
}
function adsense_features_728x90()
{
if (adsense('landing-features-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-features-section-728x90')->code . '</div>
</center>';
}
}
function adsense_templates_728x90()
{
if (adsense('landing-templates-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-templates-section-728x90')->code . '</div>
</center>';
}
}
function adsense_tools_728x90()
{
if (adsense('landing-tools-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-tools-section-728x90')->code . '</div>
</center>';
}
}
function adsense_how_it_works_728x90()
{
if (adsense('landing-how-it-works-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-how-it-works-section-728x90')->code . '</div>
</center>';
}
}
function adsense_testimonials_728x90()
{
if (adsense('landing-testimonials-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-testimonials-section-728x90')->code . '</div>
</center>';
}
}
function adsense_pricing_728x90()
{
if (adsense('landing-pricing-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-pricing-section-728x90')->code . '</div>
</center>';
}
}
function adsense_faq_728x90()
{
if (adsense('landing-faq-section-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('landing-faq-section-728x90')->code . '</div>
</center>';
}
}
|