Edit File: pm20.php
<?php if (class_exists('CSF')) { CSF::createWidget( 'orun_widget_post_module_20', array( 'title' => esc_html__('Oruno - Affiliate Modülü #2', 'orun'), 'class' => 'orun-widget-fields', 'classname' => 'orun-widget-post-module_20', 'description' => esc_html__('Affiliate Marketing amacıyla hazırladığımız #2 numaralı modülümüz.', 'orun'), 'fields' => array( array( 'type' => 'notice', 'style' => 'warning', 'content' => 'Düzgün bir görüntüleme için herhangi bir alanda değişiklik yapıp kaydetmeniz yeterlidir.', ), array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__('Modül Başlığı:', 'orun'), 'subtitle' => esc_html__('Yazı modülünün başlığını girin.', 'orun'), 'help' => esc_html__('Yazı modülünün başlığını girin. Boş bırakırsanız modülün başlığı görünmez.', 'orun'), ), array( 'type' => 'notice', 'style' => 'warning', 'content' => 'İlk Affiliate Alanı İçin Başlangıç', ), array( 'id' => 'affi1bg', 'type' => 'color', 'title' => esc_html__('Bileşen Arkaplan Rengini Seçiniz:', 'orun'), 'subtitle' => esc_html__('İlk bileşenin arkaplan rengini seçiniz.', 'orun'), 'default' => '#111111', ), array( 'id' => 'affi1switcher', 'type' => 'switcher', 'title' => esc_html__('Koyu Mod:', 'orun'), 'subtitle' => esc_html__('Yazılarınız için koyu tema seçimi.', 'orun'), 'default' => true, ), array( 'id' => 'affi1texttop', 'type' => 'select', 'title' => esc_html__('Kategori:', 'orun'), 'subtitle' => esc_html__('Affiliate kategorisini seçiniz.', 'orun'), 'placeholder' => esc_html__('Kategori Seçin', 'orun'), 'help' => esc_html__('Hiç kategori seçmezseniz ilgili alan boş gözükecektir', 'orun'), 'options' => 'categories', ), array( 'id' => 'affi1text', 'type' => 'text', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '100₺ Harcamanıza %10 İndirim', ), array( 'id' => 'affi1textbottom', 'type' => 'textarea', 'title' => esc_html__('Alt Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının alt başlığını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi1kupon', 'type' => 'text', 'title' => esc_html__('Kupon Kodunu Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının kupon kodunu giriniz.', 'orun'), 'default' => 'ORUNO100', ), array( 'id' => 'affi1kupontop', 'type' => 'text', 'title' => esc_html__('Kupon Başlığını Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun başlığını giriniz.', 'orun'), 'default' => 'Oruno', ), array( 'id' => 'affi1kupontarih', 'type' => 'date', 'title' => esc_html__('Kupon Kodunun Geçerlilik Süresi:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun geçerlilik süresini giriniz.', 'orun'), ), array( 'id' => 'affi1butontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'affi1butonlink', 'type' => 'text', 'title' => esc_html__('Buton Linki:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'https://orunotema.com.tr', ), array( 'id' => 'affi1butonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#fff', ), array( 'id' => 'affi1butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#8224e3', ), /////////////////////////// /////////////////////////// ////////İKİNCİ ALAN//////// /////////////////////////// /////////////////////////// array( 'type' => 'notice', 'style' => 'warning', 'content' => 'İkinci Affiliate Alanı İçin Başlangıç', ), array( 'id' => 'affi2active', 'type' => 'switcher', 'title' => esc_html__('Bileşen Aktifliği:', 'orun'), 'subtitle' => esc_html__('Bileşenin gözükmesini istemiyorsanız aktifliği kapatınız.', 'orun'), 'default' => false, ), array( 'id' => 'affi2bg', 'type' => 'color', 'title' => esc_html__('Bileşen Arkaplan Rengini Seçiniz:', 'orun'), 'subtitle' => esc_html__('İlk bileşenin arkaplan rengini seçiniz.', 'orun'), 'default' => '#111111', ), array( 'id' => 'affi2switcher', 'type' => 'switcher', 'title' => esc_html__('Koyu Mod:', 'orun'), 'subtitle' => esc_html__('Yazılarınız için koyu tema seçimi.', 'orun'), 'default' => true, ), array( 'id' => 'affi2texttop', 'type' => 'select', 'title' => esc_html__('Kategori:', 'orun'), 'subtitle' => esc_html__('Affiliate kategorisini seçiniz.', 'orun'), 'placeholder' => esc_html__('Kategori Seçin', 'orun'), 'help' => esc_html__('Hiç kategori seçmezseniz ilgili alan boş gözükecektir', 'orun'), 'options' => 'categories', ), array( 'id' => 'affi2text', 'type' => 'text', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '200₺ Harcamanıza %20 İndirim', ), array( 'id' => 'affi2textbottom', 'type' => 'textarea', 'title' => esc_html__('Alt Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının alt başlığını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi2kupon', 'type' => 'text', 'title' => esc_html__('Kupon Kodunu Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının kupon kodunu giriniz.', 'orun'), 'default' => 'ORUNO200', ), array( 'id' => 'affi2kupontop', 'type' => 'text', 'title' => esc_html__('Kupon Başlığını Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun başlığını giriniz.', 'orun'), 'default' => 'Oruno', ), array( 'id' => 'affi2kupontarih', 'type' => 'date', 'title' => esc_html__('Kupon Kodunun Geçerlilik Süresi:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun geçerlilik süresini giriniz.', 'orun'), ), array( 'id' => 'affi2butontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'affi2butonlink', 'type' => 'text', 'title' => esc_html__('Buton Linki:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'https://orunotema.com.tr', ), array( 'id' => 'affi2butonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#fff', ), array( 'id' => 'affi2butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#8224e3', ), /////////////////////////// /////////////////////////// ////////üçüncü ALAN//////// /////////////////////////// /////////////////////////// array( 'type' => 'notice', 'style' => 'warning', 'content' => 'Üçüncü Affiliate Alanı İçin Başlangıç', ), array( 'id' => 'affi3active', 'type' => 'switcher', 'title' => esc_html__('Bileşen Aktifliği:', 'orun'), 'subtitle' => esc_html__('Bileşenin gözükmesini istemiyorsanız aktifliği kapatınız.', 'orun'), 'default' => false, ), array( 'id' => 'affi3bg', 'type' => 'color', 'title' => esc_html__('Bileşen Arkaplan Rengini Seçiniz:', 'orun'), 'subtitle' => esc_html__('İlk bileşenin arkaplan rengini seçiniz.', 'orun'), 'default' => '#F9F9F9', ), array( 'id' => 'affi3switcher', 'type' => 'switcher', 'title' => esc_html__('Koyu Mod:', 'orun'), 'subtitle' => esc_html__('Yazılarınız için koyu tema seçimi.', 'orun'), ), array( 'id' => 'affi3texttop', 'type' => 'select', 'title' => esc_html__('Kategori:', 'orun'), 'subtitle' => esc_html__('Affiliate kategorisini seçiniz.', 'orun'), 'placeholder' => esc_html__('Kategori Seçin', 'orun'), 'help' => esc_html__('Hiç kategori seçmezseniz ilgili alan boş gözükecektir', 'orun'), 'options' => 'categories', ), array( 'id' => 'affi3text', 'type' => 'text', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '300₺ Harcamanıza %30 İndirim', ), array( 'id' => 'affi3textbottom', 'type' => 'textarea', 'title' => esc_html__('Alt Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının alt başlığını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi3kupon', 'type' => 'text', 'title' => esc_html__('Kupon Kodunu Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının kupon kodunu giriniz.', 'orun'), 'default' => 'ORUNO300', ), array( 'id' => 'affi3kupontop', 'type' => 'text', 'title' => esc_html__('Kupon Başlığını Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun başlığını giriniz.', 'orun'), 'default' => 'Oruno', ), array( 'id' => 'affi3kupontarih', 'type' => 'date', 'title' => esc_html__('Kupon Kodunun Geçerlilik Süresi:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun geçerlilik süresini giriniz.', 'orun'), ), array( 'id' => 'affi3butontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'affi3butonlink', 'type' => 'text', 'title' => esc_html__('Buton Linki:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'https://orunotema.com.tr', ), array( 'id' => 'affi3butonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#fff', ), array( 'id' => 'affi3butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#dd3333', ), /////////////////////////// /////////////////////////// ////////Dördüncü ALAN//////// /////////////////////////// /////////////////////////// array( 'type' => 'notice', 'style' => 'warning', 'content' => 'Dördüncü Affiliate Alanı İçin Başlangıç', ), array( 'id' => 'affi4active', 'type' => 'switcher', 'title' => esc_html__('Bileşen Aktifliği:', 'orun'), 'subtitle' => esc_html__('Bileşenin gözükmesini istemiyorsanız aktifliği kapatınız.', 'orun'), 'default' => false, ), array( 'id' => 'affi4bg', 'type' => 'color', 'title' => esc_html__('Bileşen Arkaplan Rengini Seçiniz:', 'orun'), 'subtitle' => esc_html__('İlk bileşenin arkaplan rengini seçiniz.', 'orun'), 'default' => '#111111', ), array( 'id' => 'affi4switcher', 'type' => 'switcher', 'title' => esc_html__('Koyu Mod:', 'orun'), 'subtitle' => esc_html__('Yazılarınız için koyu tema seçimi.', 'orun'), 'default' => true, ), array( 'id' => 'affi4texttop', 'type' => 'select', 'title' => esc_html__('Kategori:', 'orun'), 'subtitle' => esc_html__('Affiliate kategorisini seçiniz.', 'orun'), 'placeholder' => esc_html__('Kategori Seçin', 'orun'), 'help' => esc_html__('Hiç kategori seçmezseniz ilgili alan boş gözükecektir', 'orun'), 'options' => 'categories', ), array( 'id' => 'affi4text', 'type' => 'text', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '400₺ Harcamanıza %40 İndirim', ), array( 'id' => 'affi4textbottom', 'type' => 'textarea', 'title' => esc_html__('Alt Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının alt başlığını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi4kupon', 'type' => 'text', 'title' => esc_html__('Kupon Kodunu Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının kupon kodunu giriniz.', 'orun'), 'default' => 'ORUNO400', ), array( 'id' => 'affi4kupontop', 'type' => 'text', 'title' => esc_html__('Kupon Başlığını Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun başlığını giriniz.', 'orun'), 'default' => 'Oruno', ), array( 'id' => 'affi4kupontarih', 'type' => 'date', 'title' => esc_html__('Kupon Kodunun Geçerlilik Süresi:', 'orun'), 'subtitle' => esc_html__('Kupon kodunun geçerlilik süresini giriniz.', 'orun'), ), array( 'id' => 'affi4butontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'affi4butonlink', 'type' => 'text', 'title' => esc_html__('Buton Linki:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => 'https://orunotema.com.tr', ), array( 'id' => 'affi4butonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#fff', ), array( 'id' => 'affi4butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Yazıların listelenmesi için offset ayarını girin.', 'orun'), 'help' => esc_html__('Örnek: 5, yazıların 5. sıradan başlayarak listelenecektir.', 'orun'), 'default' => '#8224e3', ), ) ) ); if (!function_exists('orun_widget_post_module_20')) { function orun_widget_post_module_20($args, $instance) { if (!empty($instance['title'])) { echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']; } ?> <div class="orun-pm orun-pm-item orun-pm-10 af-2 row"> <div class="item-box-25 first"> <?php $dark_mode = isset($instance['affi1switcher']) ? $instance['affi1switcher'] : false; $bg_class = $dark_mode ? 'dark' : ''; if (!empty($instance['affi1bg'])) { $bg_rengi = esc_attr($instance['affi1bg']); echo '<div class="orun-pm-text ' . $bg_class . '" style="background-color: ' . $bg_rengi . ';"'; } else { echo '<div class="orun-pm-text ' . $bg_class . '">'; } ?> <div class="orun-pm-text-inner-2"> <div class="orun-pm-affi-top"> <?php $selected_category = isset($instance['affi1texttop']) ? $instance['affi1texttop'] : ''; if (!empty($selected_category)) { $category_link = esc_url(get_category_link($selected_category)); $category_name = get_cat_name($selected_category); echo '<a rel="nofollow" href="' . $category_link . '" class="orun-pm-cat"><span>' . esc_html($category_name) . '</span></a>'; } else { echo ''; } ?> </div> <div class="orun-pm-affi-text-2"> <?php if (!empty($instance['affi1text'])) { echo wp_kses_post($instance['affi1text']); } ?> </div> <div class="orun-pm-affi-coupon"> <span class="coupon-top" style="background-color: <?= $bg_rengi ?>"> <?php if (!empty($instance['affi1kupontop'])) { echo wp_kses_post($instance['affi1kupontop']); } ?> </span> <span class="coupon"> <?php if (!empty($instance['affi1kupon'])) { echo wp_kses_post($instance['affi1kupon']); } ?> </span> <span class="coupon-bottom"> <strong>Şu Tarihe Kadar:</strong> <?php if (!empty($instance['affi1kupontarih'])) { echo wp_kses_post($instance['affi1kupontarih']); } ?> </span> </div> <div class="orun-pm-affi-bottom"> <?php if (!empty($instance['affi1textbottom'])) { echo wp_kses_post($instance['affi1textbottom']); } ?> </div> <div class="orun-pm-button-inner"> <div class="orun-pm-button"> <?php if (!empty($instance['affi1butontext'])) { $buton_yazisi = esc_html($instance['affi1butontext']); $buton_linki = esc_url($instance['affi1butonlink']); $buton_rengi = esc_attr($instance['affi1butonrenk']); $buton_bg_rengi = esc_attr($instance['affi1butonbgrenk']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span> ' . $buton_yazisi . ' </span> </a>'; } ?> </div> </div> </div> </div> <?php if (!empty($instance['affi2active'])) { ?> <div class="item-box-25"> <?php $dark_mode = isset($instance['affi2switcher']) ? $instance['affi2switcher'] : false; $bg_class = $dark_mode ? 'dark' : ''; if (!empty($instance['affi2bg'])) { $bg_rengi = esc_attr($instance['affi2bg']); echo '<div class="orun-pm-text ' . $bg_class . '" style="background-color: ' . $bg_rengi . ';"'; } else { echo '<div class="orun-pm-text ' . $bg_class . '">'; } ?> <div class="orun-pm-text-inner-2"> <div class="orun-pm-affi-top"> <?php $selected_category = isset($instance['affi2texttop']) ? $instance['affi2texttop'] : ''; if (!empty($selected_category)) { $category_link = esc_url(get_category_link($selected_category)); $category_name = get_cat_name($selected_category); echo '<a rel="nofollow" href="' . $category_link . '" class="orun-pm-cat"><span>' . esc_html($category_name) . '</span></a>'; } else { echo ''; } ?> </div> <div class="orun-pm-affi-text-2"> <?php if (!empty($instance['affi2text'])) { echo wp_kses_post($instance['affi2text']); } ?> </div> <div class="orun-pm-affi-coupon"> <span class="coupon-top" style="background-color: <?= $bg_rengi ?>"> <?php if (!empty($instance['affi2kupontop'])) { echo wp_kses_post($instance['affi2kupontop']); } ?> </span> <span class="coupon"> <?php if (!empty($instance['affi2kupon'])) { echo wp_kses_post($instance['affi2kupon']); } ?> </span> <span class="coupon-bottom"> <strong>Şu Tarihe Kadar:</strong> <?php if (!empty($instance['affi2kupontarih'])) { echo wp_kses_post($instance['affi2kupontarih']); } ?> </span> </div> <div class="orun-pm-affi-bottom"> <?php if (!empty($instance['affi2textbottom'])) { echo wp_kses_post($instance['affi2textbottom']); } ?> </div> <div class="orun-pm-button-inner"> <div class="orun-pm-button"> <?php if (!empty($instance['affi2butontext'])) { $buton_yazisi = esc_html($instance['affi2butontext']); $buton_linki = esc_url($instance['affi2butonlink']); $buton_rengi = esc_attr($instance['affi2butonrenk']); $buton_bg_rengi = esc_attr($instance['affi2butonbgrenk']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span> ' . $buton_yazisi . ' </span> </a>'; } ?> </div> </div> </div> </div> <?php } ?> <?php if (!empty($instance['affi3active'])) { ?> <div class="item-box-25"> <?php $dark_mode = isset($instance['affi3switcher']) ? $instance['affi3switcher'] : false; $bg_class = $dark_mode ? 'dark' : ''; if (!empty($instance['affi3bg'])) { $bg_rengi = esc_attr($instance['affi3bg']); echo '<div class="orun-pm-text ' . $bg_class . '" style="background-color: ' . $bg_rengi . ';"'; } else { echo '<div class="orun-pm-text ' . $bg_class . '">'; } ?> <div class="orun-pm-text-inner-2"> <div class="orun-pm-affi-top"> <?php $selected_category = isset($instance['affi3texttop']) ? $instance['affi3texttop'] : ''; if (!empty($selected_category)) { $category_link = esc_url(get_category_link($selected_category)); $category_name = get_cat_name($selected_category); echo '<a rel="nofollow" href="' . $category_link . '" class="orun-pm-cat"><span>' . esc_html($category_name) . '</span></a>'; } else { echo ''; } ?> </div> <div class="orun-pm-affi-text-2"> <?php if (!empty($instance['affi3text'])) { echo wp_kses_post($instance['affi3text']); } ?> </div> <div class="orun-pm-affi-coupon"> <span class="coupon-top" style="background-color: <?= $bg_rengi ?>"> <?php if (!empty($instance['affi3kupontop'])) { echo wp_kses_post($instance['affi3kupontop']); } ?> </span> <span class="coupon"> <?php if (!empty($instance['affi3kupon'])) { echo wp_kses_post($instance['affi3kupon']); } ?> </span> <span class="coupon-bottom"> <strong>Şu Tarihe Kadar:</strong> <?php if (!empty($instance['affi3kupontarih'])) { echo wp_kses_post($instance['affi3kupontarih']); } ?> </span> </div> <div class="orun-pm-affi-bottom"> <?php if (!empty($instance['affi3textbottom'])) { echo wp_kses_post($instance['affi3textbottom']); } ?> </div> <div class="orun-pm-button-inner"> <div class="orun-pm-button"> <?php if (!empty($instance['affi3butontext'])) { $buton_yazisi = esc_html($instance['affi3butontext']); $buton_linki = esc_url($instance['affi3butonlink']); $buton_rengi = esc_attr($instance['affi3butonrenk']); $buton_bg_rengi = esc_attr($instance['affi3butonbgrenk']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span> ' . $buton_yazisi . ' </span> </a>'; } ?> </div> </div> </div> </div> <?php } ?> <?php if (!empty($instance['affi4active'])) { ?> <div class="item-box-25 last"> <?php $dark_mode = isset($instance['affi4switcher']) ? $instance['affi4switcher'] : false; $bg_class = $dark_mode ? 'dark' : ''; if (!empty($instance['affi4bg'])) { $bg_rengi = esc_attr($instance['affi4bg']); echo '<div class="orun-pm-text ' . $bg_class . '" style="background-color: ' . $bg_rengi . ';"'; } else { echo '<div class="orun-pm-text ' . $bg_class . '">'; } ?> <div class="orun-pm-text-inner-2"> <div class="orun-pm-affi-top"> <?php $selected_category = isset($instance['affi4texttop']) ? $instance['affi4texttop'] : ''; if (!empty($selected_category)) { $category_link = esc_url(get_category_link($selected_category)); $category_name = get_cat_name($selected_category); echo '<a rel="nofollow" href="' . $category_link . '" class="orun-pm-cat"><span>' . esc_html($category_name) . '</span></a>'; } else { echo ''; } ?> </div> <div class="orun-pm-affi-text-2"> <?php if (!empty($instance['affi4text'])) { echo wp_kses_post($instance['affi3text']); } ?> </div> <div class="orun-pm-affi-coupon"> <span class="coupon-top" style="background-color: <?= $bg_rengi ?>"> <?php if (!empty($instance['affi4kupontop'])) { echo wp_kses_post($instance['affi4kupontop']); } ?> </span> <span class="coupon"> <?php if (!empty($instance['affi4kupon'])) { echo wp_kses_post($instance['affi4kupon']); } ?> </span> <span class="coupon-bottom"> <strong>Şu Tarihe Kadar:</strong> <?php if (!empty($instance['affi4kupontarih'])) { echo wp_kses_post($instance['affi4kupontarih']); } ?> </span> </div> <div class="orun-pm-affi-bottom"> <?php if (!empty($instance['affi4textbottom'])) { echo wp_kses_post($instance['affi4textbottom']); } ?> </div> <div class="orun-pm-button-inner"> <div class="orun-pm-button"> <?php if (!empty($instance['affi4butontext'])) { $buton_yazisi = esc_html($instance['affi4butontext']); $buton_linki = esc_url($instance['affi4butonlink']); $buton_rengi = esc_attr($instance['affi4butonrenk']); $buton_bg_rengi = esc_attr($instance['affi4butonbgrenk']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span> ' . $buton_yazisi . ' </span> </a>'; } ?> </div> </div> </div> </div> <?php } ?> </div> <?php } } } ?>