Edit File: pm26.php
<?php if (class_exists('CSF')) { CSF::createWidget( 'orun_widget_post_module_26', array( 'title' => esc_html__('Oruno - Kupon Modülü #2', 'orun'), 'class' => 'orun-widget-fields', 'classname' => 'orun-widget-post-module_26', 'description' => esc_html__('Ziyaretçileriniz için kupon oluşturabileceğiniz #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( 'id' => 'bg_color', 'title' => __('Arkaplan Rengi', 'orun'), 'type' => 'color', 'default' => '#f5af19', ), 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₺', ), array( 'id' => 'affi1textalt', 'type' => 'text', 'title' => esc_html__('Alt Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon alanının alt başlığını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi1textarea', 'type' => 'textarea', 'title' => esc_html__('Açıklama Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon alanının açıklamasını giriniz.', 'orun'), 'default' => 'Daha fazla indirim fırsatları için takipte kalın', ), array( 'id' => 'affi1date', 'type' => 'date', 'title' => esc_html__('Tarih Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon alanının geçerlilik tarihini giriniz.', 'orun'), ), array( 'id' => 'affi1textcoupon', 'type' => 'text', 'title' => esc_html__('Kupon Kodunu Giriniz:', 'orun'), 'subtitle' => esc_html__('Kupon alanının kodunu giriniz.', 'orun'), 'default' => '#ORUNO1923', ), array( 'id' => 'affi1butontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('Buton içerisinde görmek istediğiniz yazıyı giriniz.', 'orun'), 'help' => esc_html__('Butonunuza yazı ekleyebilirsiniz.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'affi1butonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Butondaki yazının rengini seçiniz.', 'orun'), 'help' => esc_html__('Butonda yazının görünmesini istediğiniz rengi seçin.', 'orun'), 'default' => '#000', ), array( 'id' => 'affi1butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Butonun arkaplan rengini seçiniz.', 'orun'), 'help' => esc_html__('Butonun görünmesini istediğiniz rengi seçin.', 'orun'), 'default' => '#fff', ), ) ) ); if (!function_exists('orun_widget_post_module_26')) { function orun_widget_post_module_26($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-15 row"> <div class="orun-pm-item orun-pm-text" style="background-color: <?php if (!empty($instance['bg_color'])) { echo $instance['bg_color']; } ?>"> <div class="orun-pm-text-coupon"> <div class="orun-pm-coupon-inner-first"> <div class="orun-pm-coupon-discount"> <?php if (!empty($instance['affi1text'])) { echo wp_kses_post($instance['affi1text']); } ?> </div> </div> <div class="orun-pm-coupon-inner-last"> <div class="orun-pm-coupon-title"> <?php if (!empty($instance['affi1textalt'])) { echo wp_kses_post($instance['affi1textalt']); } ?> </div> <div class="orun-pm-coupon-text"> <?php if (!empty($instance['affi1textarea'])) { echo wp_kses_post($instance['affi1textarea']); } ?> </div> <div class="orun-pm-coupon-date"> <?php if (!empty($instance['affi1date'])) { echo wp_kses_post($instance['affi1date']); } ?> </div> <div class="orun-pm-text-coupon-bottom"> <div class="orun-pm-coupon-code code-2"> <?php if (!empty($instance['affi1textcoupon'])) { echo wp_kses_post($instance['affi1textcoupon']); } ?> </div> <?php if (!empty($instance['affi1butontext'])) { $buton_yazisi = esc_html($instance['affi1butontext']); $buton_rengi = esc_attr($instance['affi1butonrenk']); $buton_bg_rengi = esc_attr($instance['affi1butonbgrenk']); echo '<div class="orun-pm-copy-link copy-2" style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';"> ' . $buton_yazisi . ' </div>'; } ?> </div> </div> </div> </div> </div> <?php } } } ?>