Edit File: pm37.php
<?php if (class_exists('CSF')) { CSF::createWidget( 'orun_widget_post_module_37', array( 'title' => esc_html__( 'Oruno - Blok Modülü #1', 'orun' ), 'class' => 'orun-widget-fields', 'classname' => 'orun_widget_post_module_37', 'description' => esc_html__( 'Sitenize giriş/paragraf bloklarının eklenmesini sağlayan #1 numaralı modülümüz.', 'orun' ), 'fields' => array( 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' => 'affibaslik', 'type' => 'textarea', 'title' => esc_html__('Başlık Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => 'Find The Right VPN or Hosting Provider', ), array( 'id' => 'baslik_rengi', 'type' => 'color', 'title' => esc_html__('Başlık Yazı Rengi:', 'orun'), 'subtitle' => esc_html__('Başlık yazı rengini seçiniz.', 'orun'), 'default' => '#000', ), array( 'id' => 'affiaciklama', 'type' => 'textarea', 'title' => esc_html__('Açıklama Giriniz:', 'orun'), 'subtitle' => esc_html__('Affiliate alanının başlığını giriniz.', 'orun'), 'default' => 'Discover perfectly aligned global providers – and easily add them to your devices. <br> Save time finding the best providers.', ), array( 'id' => 'buton_text', '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__('Butonun yazısını giriniz.', 'orun'), 'default' => 'TOP Providers', ), array( 'id' => 'buton_link', '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__('Butonun linkini giriniz', 'orun'), 'default' => 'https://x1x1.com/', ), array( 'id' => 'icon1', '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' => 'butonbgrenk', 'type' => 'color', 'title' => esc_html__('Buton Arkaplan Rengi:', 'orun'), 'subtitle' => esc_html__('Butonun arkaplan rengini seçiniz.', 'orun'), 'default' => '#F668D3', ), ) ) ); if (!function_exists('orun_widget_post_module_37')) { function orun_widget_post_module_37($args, $instance) { $yazi_color = esc_attr($instance['baslik_rengi']); ?> <section style="justify-content:center;align-items:center;text-align:center"> <div class="landing row" style="justify-content:Center;align-items:center;padding:25px 12px;margin-top:90px;"> <h2 class="baslikland" style="color: <?php echo $yazi_color ?>"> <span style="font-size:52px"> <?php if (!empty($instance['affibaslik'])) { echo wp_kses_post($instance['affibaslik']); } $buton_bg_rengi = esc_attr($instance['butonbgrenk']); ?> </span> </h2> </div> <div class="landing row" style="justify-content:center;align-items:center;padding:25px 12px;"> <p class="descland" > <span style="font-size:18px"> <?php if (!empty($instance['affiaciklama'])) { echo wp_kses_post($instance['affiaciklama']); } ?> </span> </p> </div> <div class="landing row" style="padding:25px 12px;justify-content:center;align-items:center"> <a rel="nofollow" href="<?php if (!empty($instance['buton_link'])) { echo wp_kses_post($instance['buton_link']); } ?>" style="background-color:<?php echo $buton_bg_rengi ?>;" class="buttonland"> <?php if (!empty($instance['buton_text'])) { echo wp_kses_post($instance['buton_text']); } ?> </a> </div> <div class="landing row" style="padding:25px 12px;justify-content:Center;align-items:center;"> <?php if (!empty($instance['imagefield']['url'])) { $image_url = esc_url($instance['imagefield']['url']); if (!empty($image_url)) { echo ' <img sizes="(max-width: 1024px) 100vw, 1024px" src="' . $image_url . '"> '; } } ?> </div> </section> <?php } } } ?>