Edit File: pm29.php
<?php if (class_exists('CSF')) { CSF::createWidget( 'orun_widget_post_module_29', array( 'title' => __('Oruno - Akordiyon #2', 'orun'), 'class' => 'orun-widget-fields', 'classname' => 'orun-widget-post-module-29', 'description' => esc_html__('SSS yapısı oluşturmak için kullanabileceğiniz #1 numaralı modülümüz.', 'orun'), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'title' => __('Başlık', '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' => 'opt-bg-color', 'type' => 'color', 'title' => __('Arkaplan Rengi', 'orun'), 'subtitle' => esc_html__('Akordiyon modülünün arkaplan rengini girin.', 'orun'), 'default' => '#f9f9f9' ), array( 'id' => 'opt-dark-mode', 'type' => 'switcher', 'title' => __('Koyu Mod', 'orun'), 'subtitle' => esc_html__('Arkaplan renginiz koyu tonlarda ise açmanızı öneririz.', 'orun'), 'default' => false ), array( 'id' => 'opt-column', 'type' => 'select', 'title' => __('Bileşen Genişliği', 'orun'), 'subtitle' => esc_html__('Bileşenin genişliğini seçiniz.', 'orun'), 'placeholder' => 'Bir Seçenek Seçiniz', 'options' => array( '100' => '%100', '50' => '%50', '33' => '%33', ), 'default' => '100' ), array( 'id' => 'opt-col-line', 'type' => 'select', 'title' => __('Yazı Sayısı', 'orun'), 'subtitle' => esc_html__('Tek satırda gösterilecek yazı sayısını seçiniz.', 'orun'), 'placeholder' => 'Bir Seçenek Seçiniz', 'options' => array( '6' => '6', '5' => '5', '4' => '4', '3' => '3', '2' => '2', '1' => '1', ), 'default' => '2' ), array( 'id' => 'opt-repeater-1', 'type' => 'repeater', 'title' => 'Alanlar', 'fields' => array( array( 'id' => 'opt-icon-1', 'type' => 'icon', 'title' => __('Icon', 'orun'), ), array( 'id' => 'title1', 'type' => 'text', 'title' => __('Başlık', 'orun'), ), array( 'id' => 'content', 'type' => 'textarea', 'title' => __('Metin', 'orun'), ), ), ), ), ) ); if (!function_exists('orun_widget_post_module_29')) { function orun_widget_post_module_29($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-8 accor row"> <div class="orun-pm-item orun-col-p<?php echo $instance['opt-column'] ?> orun-col-p100-sm "> <div class="orun-pm-inner" style="background-color:<?php echo $instance['opt-bg-color'] ?>; grid-template-columns: repeat(<?php echo $instance['opt-col-line'] ?>, 1fr);"> <?php $repeater_data = !empty($instance['opt-repeater-1']) ? $instance['opt-repeater-1'] : array(); foreach ($repeater_data as $repeater_item) { ?> <div class="accordion-inner <?php if ($instance['opt-dark-mode'] == true ) { echo 'dark-on'; } ?>"> <div class="accordion-header-2"> <?php if (!empty($repeater_item['opt-icon-1'])) { echo '<i class="' . esc_attr($repeater_item['opt-icon-1']) . '"></i>'; } ?> <?php if (!empty($repeater_item['title1'])) { echo wp_kses_post($repeater_item['title1']); } ?> </div> <div class="accordion-body-2"> <div class="accordion-body-content"> <?php if (!empty($repeater_item['content'])) { echo wp_kses_post($repeater_item['content']); } ?> </div> </div> </div> <?php } ?> </div> </div> </div> <?php } } } ?>