Edit File: meta-options.php
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Exit directly. $prefix_post = 'orun_post_opt'; CSF::createMetabox( $prefix_post, array( 'title' => __('orun Ayarları', 'orun'), 'post_type' => 'post', 'context' => 'advanced', 'priority' => 'high', 'class' => 'orun-opt-design', ) ); CSF::createSection( $prefix_post, array( 'title' => __('Genel Ayarlar', 'orun'), 'icon' => 'fas fa-cog', 'fields' => array( array( 'id' => 'orun-meta-opt-summary', 'type' => 'textarea', 'title' => __('Yazı Özeti', 'orun'), 'subtitle' => __('Yazı başlığının altında görünür.', 'orun'), ), array( 'id' => 'orun-meta-opt-primary-category', 'type' => 'select', 'title' => __('Birincil Kategori', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => 'categories', ), ), ) ); CSF::createSection( $prefix_post, array( 'title' => __('Bileşen Ayarları', 'orun'), 'icon' => 'fas fa-puzzle-piece', 'fields' => array( array( 'id' => 'orun-meta-opt-metabox-breadcrumb', 'type' => 'select', 'title' => __('Breadcrumb', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-category', 'type' => 'select', 'title' => __('Kategoriler', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-meta', 'type' => 'select', 'title' => __('Yazı Meta Alanı', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-views', 'type' => 'select', 'title' => __('Okunma Sayısı', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-comment-count', 'type' => 'select', 'title' => __('Yorum Sayısı', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-reading-time', 'type' => 'select', 'title' => __('Okuma Süresi', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-share-buttons', 'type' => 'select', 'title' => __('Paylaşım Butonları', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), array( 'id' => 'orun-meta-opt-metabox-thumb', 'type' => 'select', 'title' => __('Öne Çıkarılan Görsel', 'orun'), 'placeholder' => __('Varsayılan', 'orun'), 'options' => array( 'show' => __('Göster', 'orun'), 'hide' => __('Gizle', 'orun'), ), ), ), ) ); CSF::createSection( $prefix_post, array( 'title' => __('Sidebar Ayarları', 'orun'), 'icon' => 'fas fa-columns', 'fields' => array( array( 'id' => 'orun-meta-opt-sidebar-layout', 'type' => 'image_select', 'title' => __('Sidebar Görünümü', 'orun'), 'options' => array( 'default' => get_template_directory_uri(). '/assets/img/default-opt.png', 'right-sidebar' => get_template_directory_uri(). '/assets/img/right-sidebar.png', 'no-sidebar' => get_template_directory_uri(). '/assets/img/no-sidebar.png', 'center-sidebar' => get_template_directory_uri(). '/assets/img/center-sidebar.png', ), 'default' => 'default' ), ), ) ); CSF::createSection( $prefix_post, array( 'title' => __('Yazı Düzeni Ayarları', 'orun'), 'icon' => 'fas fa-window-restore', 'fields' => array( array( 'id' => 'orun-meta-opt-post-layout', 'title' => __('Yazı Düzeni', 'orun'), 'type' => 'image_select', 'options' => array( 'default' => get_template_directory_uri(). '/assets/img/default-opt.png', '1' => get_template_directory_uri(). '/assets/img/post-layout-1.png', '2' => get_template_directory_uri(). '/assets/img/post-layout-2.png', '3' => get_template_directory_uri(). '/assets/img/post-layout-3.png', '4' => get_template_directory_uri(). '/assets/img/post-layout-4.png', '5' => get_template_directory_uri(). '/assets/img/post-layout-5.png', ), 'default' => 'default', ), ), ) );