Edit File: pm36.php
<?php if (class_exists('CSF')) { CSF::createWidget( 'orun_widget_post_module_36', array( 'title' => esc_html__( 'Oruno - Affiliate Modülü #6', 'orun' ), 'class' => 'orun-widget-fields', 'classname' => 'orun_widget_post_module_36', 'description' => esc_html__( 'Affiliate Marketing amacıyla hazırladığımız #6 numaralı modülümüz.', 'orun' ), 'fields' => array( 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' => 'success', 'content' => 'İlk bölüm için ayarlar başlıyor', ), array( 'id' => 'imagefield', 'type' => 'media', 'title' => esc_html__('Görsel Seçin:', 'orun'), 'subtitle' => esc_html__('Bir görsel seçin veya yükleyin.', 'orun'), ), array( 'id' => 'orun_name', 'type' => 'text', 'title' => esc_html__('Adını Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının içeriğini giriniz.', 'orun'), 'default' => 'Nemesis', ), array( 'id' => 'orun_number', 'type' => 'text', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '1', ), array( 'id' => 'affitext', 'type' => 'textarea', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => '<p>A45-day money-back guarantee<br><strong>$2.05/month</strong><br><span>Save 85%</span><br>Secure up to 8 devices</p>', ), array( 'id' => 'star', 'type' => 'select', 'title' => esc_html__('Yıldız Değerlendirmesi:', 'orun'), 'subtitle' => esc_html__('Affiliate"in derecelendirmesini seçin.', 'orun'), 'placeholder' => esc_html__('Derecelendirmeyi seçiniz.', 'orun'), 'options' => array( '1/10' => '1/10', '2/10' => '2/10', '3/10' => '3/10', '4/10' => '4/10', '5/10' => '5/10', '6/6' => '6/6', '7/10' => '7/10', '8/10' => '8/10', '9/10' => '9/10', '10/10' => '10/10', ), 'default' => '5/5', ), array( 'id' => 'yildizrenk', 'type' => 'color', 'title' => esc_html__('Daire Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Daire Arkaplan rengini seçiniz.', 'orun'), 'default' => '#0B3D91', ), array( 'id' => 'affi1active', 'type' => 'switcher', 'title' => esc_html__('Altta tanım yazısı olsun mu? ', 'orun'), 'subtitle' => esc_html__('Bileşenin gözükmesini istemiyorsanız aktifliği kapatınız.', 'orun'), 'default' => false, ), array( 'id' => 'affialttext', 'type' => 'textarea', 'title' => esc_html__('Tanım yazısı giriniz:', 'orun'), 'subtitle' => esc_html__('Tanım alanının içeriğini giriniz.', 'orun'), 'default' => 'New users only. Ut semper vulputate, vestibulum sed sodales ut, malesuada finibus orci. Mauris ac pretium magna, sed feugiat ex. Donec aliquam euismod fringilla. Donec pulvinar malesuada auctor. Aenean semper dictum enim nec vestibulum. Class aptent sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.', ), array( 'type' => 'notice', 'style' => 'success', 'content' => 'İlk buton için ayarlar başlıyor', ), array( 'id' => 'ilkbutontext', '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__('İlk butonun yazısını giriniz.', 'orun'), 'default' => 'Satın Al', ), array( 'id' => 'ilkbutonlink', '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__('İlk butonun linkini giriniz', 'orun'), 'default' => 'https://orunotema.com/', ), array( 'id' => 'opt-icon-1', 'type' => 'icon', 'title' => __('Icon', 'orun'), ), array( 'id' => 'ilkbutonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('İlk butonun yazı rengini seçiniz.', 'orun'), 'default' => '#fff', ), array( 'id' => 'ilkbutonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('İlk butonun arkaplan rengini seçiniz', 'orun'), 'default' => '#0B3D91', ), array( 'type' => 'notice', 'style' => 'success', 'content' => 'İkinci buton için ayarlar başlıyor', ), array( 'id' => 'ikibutontext', 'type' => 'text', 'title' => esc_html__('Buton Yazısı:', 'orun'), 'subtitle' => esc_html__('İkinci butonun yazısını giriniz.', 'orun'), 'default' => 'İncele', ), array( 'id' => 'ikibutonlink', 'type' => 'text', 'title' => esc_html__('Buton Linki:', 'orun'), 'subtitle' => esc_html__('İkinci butonun linkini giriniz.', 'orun'), 'default' => 'https://orunotema.com/', ), array( 'id' => 'opt-icon-2', 'type' => 'icon', 'title' => __('Icon', 'orun'), ), array( 'id' => 'ikibutonrenk', 'type' => 'color', 'title' => esc_html__('Buton Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('İkinci butonun yazı rengini seçiniz.', 'orun'), 'default' => '#5c79e6', ), array( 'id' => 'ikibutonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('İkinci butonun arkaplan rengini seçiniz', 'orun'), 'default' => '#e6ebff', ), ) ) ); if (!function_exists('orun_widget_post_module_36')) { function orun_widget_post_module_36($args, $instance) { if (!empty($instance['title'])) { echo '<div class="orun-block-title orun-block-title-5"><h2><span>'. $instance['title'] .'</span></h2></div>'; } ?> <style> .orun-col-p100-fw{ border:1px #ececec solid; } </style> <div class="affiliate-module-1"> <div class="orun-pm orun-pm-9 "> <div class="orun-pm-item orun-col-p100-fw"> <div class="orun-pm-text <?php if (!empty($instance['affitextarea'])) { echo 'b-bottom-n'; } ?> <?php echo $instance['stil']; ?>"> <div class="orun-pm-text-inner right"> <style> .orun-box { width: 300px; /* İstenilen genişlik */ height: auto; border-radius: 6px; overflow: hidden; display: flex; align-items: center; /* Dikeyde ortala */ justify-content: center; /* Yatayda ortala */ color: white; } .orun-image { width: 50px; height: 50px; border-radius: 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; display: block; /* Görseli dikeyde ortalamak için */ margin: 0 auto; /* Görseli yatayda ortalamak için */ } .orun-number { position: absolute; top: 0; left: -6px; padding: 8px 16px; background-color: #32B4FF; color: #fff; border-radius: 25px; } .orun-text h3{ color:#151515; padding: 0 10px; font-size: 15px; font-weight: 500 !important; text-align: center; display: block; margin-top: 10px; } </style> <?php $yildizrenk = esc_attr($instance['yildizrenk']); ?> <div class="orun-box"> <div class="orun-number" style="background-color:<?php echo $yildizrenk ?>"> <?php if (!empty($instance['orun_number'])) { echo wp_kses_post($instance['orun_number']); } ?></div> <img class="orun-image" src=" <?php if (!empty($instance['imagefield']['url'])) { $image_url = esc_url($instance['imagefield']['url']); echo $image_url; } ?>" alt="Görsel"> <div class="orun-text"> <h3> <?php if (!empty($instance['orun_name'])) { echo wp_kses_post($instance['orun_name']); } ?></h3></div> </div> </div> <div class="orun-pm-text-inner right"> <div class="orun-pm-affi-text"> <?php if (!empty($instance['affitext'])) { echo wp_kses_post($instance['affitext']); } ?> </div> </div> <div class="orun-pm-text-inner right" style="padding-right:9px;padding-left:9px"> <div class="badge-review" style="color:<?php echo $yildizrenk ?>;padding:11px 7px !important"> <?php if (!empty($instance['star'])) { $star_rating = $instance['star']; $star_parts = explode('/', $star_rating); if (isset($star_parts[0])) { $star_class = 'star' . intval($star_parts[0]); echo '<div class="' . $star_class . '"></div>'; } } ?> </div> </div> <div class="orun-pm-button-inner"> <div class="orun-pm-button"> <?php if (!empty($instance['ilkbutontext'])) { $buton_yazisi = esc_html($instance['ilkbutontext']); $buton_linki = esc_url($instance['ilkbutonlink']); $buton_rengi = esc_attr($instance['ilkbutonrenk']); $buton_bg_rengi = esc_attr($instance['ilkbutonbgrenk']); $iconu = esc_attr($instance['opt-icon-1']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span style="color:#fff"> ' . $buton_yazisi . ' <i style="margin-left:6px;" class="' . $iconu . '"></i> </span> </a>'; } ?> </div> <div class="orun-pm-button"> <?php if (!empty($instance['ikibutontext'])) { $buton_yazisi = esc_html($instance['ikibutontext']); $buton_linki = esc_url($instance['ikibutonlink']); $buton_rengi = esc_attr($instance['ikibutonrenk']); $buton_bg_rengi = esc_attr($instance['ikibutonbgrenk']); $iconu2 = esc_attr($instance['opt-icon-2']); echo '<a style="color: ' . $buton_rengi . '; background-color: ' . $buton_bg_rengi . ';" rel="nofollow" href="' . $buton_linki . '" class="orun-pm-cat-button "> <span> ' . $buton_yazisi . ' <i style="margin-left:6px;" class="' . $iconu2 . '"></i> </span> </a>'; } ?> </div> </div> <!-- Metin --> </div> <?php if (!empty($instance['affi1active'])) { ?> <p style="font-weight: 400; font-size: 0.75em; line-height: 1.45em; color: #b2bec3;padding:14px 4px !important"><?php if (!empty($instance['affialttext'])) { echo wp_kses_post($instance['affialttext']); } ?></p> <?php } ?> </div> </div> </div> <?php } } } ?>