first commit
This commit is contained in:
10
wp-content/plugins/thinkai-plugin/metabox/_notes/dwsync.xml
Normal file
10
wp-content/plugins/thinkai-plugin/metabox/_notes/dwsync.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<dwsync>
|
||||
<file name="banner.php" server="ftp.wp1.themevibrant.com//newwp/chirokind/wp-content/" local="133346567599364771" remote="133346243400000000" Dst="0" />
|
||||
<file name="team.php" server="ftp.wp1.themevibrant.com//newwp/chirokind/wp-content/" local="133346737971470371" remote="133346413800000000" Dst="0" />
|
||||
<file name="page.php" server="ftp.wp1.themevibrant.com//newwp/chirokind/wp-content/" local="133356285364090675" remote="133355961000000000" Dst="0" />
|
||||
<file name="projects.php" server="ftp.yogsthemes.com//arid/wp-content/" local="133450412993409404" remote="133450089000000000" Dst="0" />
|
||||
<file name="dimension.php" server="ftp.yogsthemes.com//arid/wp-content/" local="133447719539873550" remote="133455302400000000" Dst="0" />
|
||||
<file name="metaboxes.php" server="ftp.yogsthemes.com//arid/wp-content/" local="133455629185291680" remote="133455304800000000" Dst="0" />
|
||||
<file name="projects.php" server="ftp.wp1.themevibrant.com/newwp/thinkai/wp-content/" local="133596413685066742" remote="133596233400000000" Dst="0" />
|
||||
</dwsync>
|
||||
61
wp-content/plugins/thinkai-plugin/metabox/banner.php
Normal file
61
wp-content/plugins/thinkai-plugin/metabox/banner.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'id' => 'thinkai_banner_settings',
|
||||
'title' => esc_html__( "Thinkai Banner Settings", "konia" ),
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'banner_source_type',
|
||||
'type' => 'button_set',
|
||||
'title' => esc_html__( 'Banner Source Type', 'thinkai' ),
|
||||
'options' => array(
|
||||
'd' => esc_html__( 'Default', 'thinkai' ),
|
||||
'e' => esc_html__( 'Elementor', 'thinkai' ),
|
||||
),
|
||||
'default' => '',
|
||||
),
|
||||
array(
|
||||
'id' => 'banner_elementor_template',
|
||||
'type' => 'select',
|
||||
'title' => __( 'Template', 'viral-buzz' ),
|
||||
'data' => 'posts',
|
||||
'args' => [
|
||||
'post_type' => [ 'elementor_library' ],
|
||||
'posts_per_page'=> -1,
|
||||
],
|
||||
'required' => [ 'banner_source_type', '=', 'e' ],
|
||||
),
|
||||
array(
|
||||
'id' => 'banner_page_banner',
|
||||
'type' => 'switch',
|
||||
'title' => esc_html__( 'Show Banner', 'thinkai' ),
|
||||
'default' => false,
|
||||
'required' => [ 'banner_source_type', '=', 'd' ],
|
||||
),
|
||||
array(
|
||||
'id' => 'banner_banner_list',
|
||||
'type' => 'textarea',
|
||||
'title' => esc_html__( 'Banner Feature List', 'thinkai' ),
|
||||
'desc' => esc_html__( 'Enter the Feature List to show in banner section', 'thinkai' ),
|
||||
'required' => array( 'banner_page_banner', '=', true ),
|
||||
),
|
||||
array(
|
||||
'id' => 'banner_banner_title',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Banner Section Title', 'thinkai' ),
|
||||
'desc' => esc_html__( 'Enter the title to show in banner section', 'thinkai' ),
|
||||
'required' => array( 'banner_page_banner', '=', true ),
|
||||
),
|
||||
array(
|
||||
'id' => 'banner_page_background',
|
||||
'type' => 'media',
|
||||
'url' => true,
|
||||
'title' => esc_html__( 'Background Image', 'thinkai' ),
|
||||
'desc' => esc_html__( 'Insert background image for banner', 'thinkai' ),
|
||||
'default' => array(
|
||||
'url' => THINKAI_URI . '/assets/images/breadcrumb/breadcrumb-1.jpg',
|
||||
),
|
||||
'required' => array( 'banner_page_banner', '=', true ),
|
||||
),
|
||||
),
|
||||
);
|
||||
30
wp-content/plugins/thinkai-plugin/metabox/dimension.php
Normal file
30
wp-content/plugins/thinkai-plugin/metabox/dimension.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
return array(
|
||||
'title' => 'thinkai post Setting',
|
||||
'id' => 'thinkai_post',
|
||||
'icon' => 'el el-cogs',
|
||||
'position' => 'normal',
|
||||
'priority' => 'core',
|
||||
'post_types' => array( 'post' ),
|
||||
'sections' => array(
|
||||
array(
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'video_link',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__('Video Link', 'thinkai'),
|
||||
),
|
||||
array(
|
||||
'id' => 'gallery_imgs',
|
||||
'type' => 'gallery',
|
||||
'url' => true,
|
||||
'title' => esc_html__('Slider Image', 'thinkai'),
|
||||
'desc' => esc_html__('Insert Blog Single Page Slide Image URl', 'thinkai'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
59
wp-content/plugins/thinkai-plugin/metabox/footer.php
Normal file
59
wp-content/plugins/thinkai-plugin/metabox/footer.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'id' => 'thinkai_footer_settings',
|
||||
'title' => esc_html__( "Thinkai footer Settings", "konia" ),
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'footer_source_type',
|
||||
'type' => 'button_set',
|
||||
'title' => esc_html__( 'Footer Source Type', 'thinkai' ),
|
||||
'options' => array(
|
||||
'd' => esc_html__( 'Default', 'thinkai' ),
|
||||
'e' => esc_html__( 'Elementor', 'thinkai' ),
|
||||
),
|
||||
'default' => '',
|
||||
),
|
||||
array(
|
||||
'id' => 'footer_elementor_template',
|
||||
'type' => 'select',
|
||||
'title' => __( 'Template', 'viral-buzz' ),
|
||||
'data' => 'posts',
|
||||
'args' => [
|
||||
'post_type' => [ 'elementor_library' ],
|
||||
'posts_per_page'=> -1,
|
||||
'orderby' => 'title',
|
||||
'order' => 'DESC'
|
||||
],
|
||||
'required' => [ 'footer_source_type', '=', 'e' ],
|
||||
),
|
||||
array(
|
||||
'id' => 'footer_style_settings',
|
||||
'type' => 'image_select',
|
||||
'title' => esc_html__( 'Choose Footer Styles', 'thinkai' ),
|
||||
'options' => array(
|
||||
'footer_v1' => array(
|
||||
'alt' => 'Footer Style 1',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/footer/footer_v1.png',
|
||||
),
|
||||
'footer_v2' => array(
|
||||
'alt' => 'Footer Style 2',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/footer/footer_v2.png',
|
||||
),
|
||||
'footer_v3' => array(
|
||||
'alt' => 'Footer Style 3',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/footer/footer_v3.png',
|
||||
),
|
||||
'footer_v4' => array(
|
||||
'alt' => 'Footer Style 4',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/footer/footer_v4.png',
|
||||
),
|
||||
'footer_v5' => array(
|
||||
'alt' => 'Footer Style 5',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/footer/footer_v5.png',
|
||||
),
|
||||
),
|
||||
'required' => array( array( 'footer_source_type', 'equals', 'd' ) ),
|
||||
),
|
||||
),
|
||||
);
|
||||
59
wp-content/plugins/thinkai-plugin/metabox/header.php
Normal file
59
wp-content/plugins/thinkai-plugin/metabox/header.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'id' => 'thinkai_header_settings',
|
||||
'title' => esc_html__( "Thinkai Header Settings", "konia" ),
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'header_source_type',
|
||||
'type' => 'button_set',
|
||||
'title' => esc_html__( 'Header Source Type', 'thinkai' ),
|
||||
'options' => array(
|
||||
'd' => esc_html__( 'Default', 'thinkai' ),
|
||||
'e' => esc_html__( 'Elementor', 'thinkai' ),
|
||||
),
|
||||
'default'=> '',
|
||||
),
|
||||
array(
|
||||
'id' => 'header_new_elementor_template',
|
||||
'type' => 'select',
|
||||
'title' => __( 'Template', 'thinkai-plugin' ),
|
||||
'data' => 'posts',
|
||||
'args' => [
|
||||
'post_type' => [ 'elementor_library' ],
|
||||
'posts_per_page' => -1,
|
||||
'orderby' => 'title',
|
||||
'order' => 'DESC'
|
||||
],
|
||||
'required' => [ 'header_source_type', '=', 'e' ],
|
||||
),
|
||||
array(
|
||||
'id' => 'header_style_settings',
|
||||
'type' => 'image_select',
|
||||
'title' => esc_html__( 'Choose Header Styles', 'thinkai' ),
|
||||
'options' => array(
|
||||
'header_v1' => array(
|
||||
'alt' => 'Header Style 1',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v1.png',
|
||||
),
|
||||
'header_v2' => array(
|
||||
'alt' => 'Header Style 2',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v2.png',
|
||||
),
|
||||
'header_v3' => array(
|
||||
'alt' => 'Header Style 3',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v3.png',
|
||||
),
|
||||
'header_v4' => array(
|
||||
'alt' => 'Header Style 4',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v4.png',
|
||||
),
|
||||
'header_v5' => array(
|
||||
'alt' => 'Header Style 5',
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/header/header_v5.png',
|
||||
),
|
||||
),
|
||||
'required' => array( array( 'header_source_type', 'equals', 'd' ) ),
|
||||
),
|
||||
),
|
||||
);
|
||||
19
wp-content/plugins/thinkai-plugin/metabox/metaboxes.php
Normal file
19
wp-content/plugins/thinkai-plugin/metabox/metaboxes.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if ( ! function_exists( "thinkai_add_metaboxes" ) ) {
|
||||
function thinkai_add_metaboxes( $metaboxes ) {
|
||||
$directories_array = array(
|
||||
'page.php',
|
||||
'projects.php',
|
||||
'team.php',
|
||||
'testimonials.php',
|
||||
);
|
||||
foreach ( $directories_array as $dir ) {
|
||||
$metaboxes[] = require_once( THINKAIPLUGIN_PLUGIN_PATH . '/metabox/' . $dir );
|
||||
}
|
||||
|
||||
return $metaboxes;
|
||||
}
|
||||
|
||||
add_action( "redux/metaboxes/thinkai_options/boxes", "thinkai_add_metaboxes" );
|
||||
}
|
||||
|
||||
15
wp-content/plugins/thinkai-plugin/metabox/page.php
Normal file
15
wp-content/plugins/thinkai-plugin/metabox/page.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
return array(
|
||||
'title' => 'Thinkai Setting',
|
||||
'id' => 'thinkai_meta',
|
||||
'icon' => 'el el-cogs',
|
||||
'position' => 'normal',
|
||||
'priority' => 'core',
|
||||
'post_types' => array( 'page', 'post', 'team', 'tribe_events', 'department', 'service', 'product', 'project', 'tf_tours' ),
|
||||
'sections' => array(
|
||||
require_once THINKAIPLUGIN_PLUGIN_PATH . '/metabox/header.php',
|
||||
require_once THINKAIPLUGIN_PLUGIN_PATH . '/metabox/banner.php',
|
||||
require_once THINKAIPLUGIN_PLUGIN_PATH . '/metabox/sidebar.php',
|
||||
require_once THINKAIPLUGIN_PLUGIN_PATH . '/metabox/footer.php',
|
||||
),
|
||||
);
|
||||
38
wp-content/plugins/thinkai-plugin/metabox/projects.php
Normal file
38
wp-content/plugins/thinkai-plugin/metabox/projects.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
return array(
|
||||
'title' => 'Thinkai Project Setting',
|
||||
'id' => 'thinkai_meta_projects',
|
||||
'icon' => 'el el-cogs',
|
||||
'position' => 'normal',
|
||||
'priority' => 'core',
|
||||
'post_types' => array( 'project' ),
|
||||
'sections' => array(
|
||||
array(
|
||||
'id' => 'thinkai_projects_meta_setting',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'project_designation',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Project Designation', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'dimension',
|
||||
'type' => 'select',
|
||||
'title' => esc_html__( 'Choose the Extra height', 'thinkai' ),
|
||||
'options' => array(
|
||||
'default_height' => esc_html__( 'Default Height', 'thinkai' ),
|
||||
'normal_height' => esc_html__( 'Normal Height', 'thinkai' ),
|
||||
'extra_height' => esc_html__( 'Extra Height', 'thinkai' ),
|
||||
'extra_width' => esc_html__( 'Extra Width', 'thinkai' ),
|
||||
),
|
||||
'default' => 'default_height',
|
||||
),
|
||||
array(
|
||||
'id' => 'project_ext_link',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'External Link', 'thinkai' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
61
wp-content/plugins/thinkai-plugin/metabox/sidebar.php
Normal file
61
wp-content/plugins/thinkai-plugin/metabox/sidebar.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'id' => 'thinkai_sidebar_settings',
|
||||
'title' => esc_html__( "Thinkai Sidebar Settings", "konia" ),
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'sidebar_source_type',
|
||||
'type' => 'button_set',
|
||||
'title' => esc_html__( 'Sidebar Source Type', 'thinkai' ),
|
||||
'options' => array(
|
||||
'd' => esc_html__( 'Default', 'thinkai' ),
|
||||
'e' => esc_html__( 'Elementor', 'thinkai' ),
|
||||
),
|
||||
'default'=> '',
|
||||
),
|
||||
array(
|
||||
'id' => 'sidebar_elementor_template',
|
||||
'type' => 'select',
|
||||
'title' => __( 'Template', 'viral-buzz' ),
|
||||
'data' => 'posts',
|
||||
'args' => [
|
||||
'post_type' => [ 'elementor_library' ],
|
||||
'posts_per_page'=> -1,
|
||||
],
|
||||
'required' => [ 'sidebar_source_type', '=', 'e' ],
|
||||
),
|
||||
array(
|
||||
'id' => 'sidebar_sidebar_layout',
|
||||
'type' => 'image_select',
|
||||
'title' => esc_html__( 'Layout', 'thinkai' ),
|
||||
'subtitle' => esc_html__( 'Select main content and sidebar alignment.', 'thinkai' ),
|
||||
'options' => array(
|
||||
'left' => array(
|
||||
'alt' => esc_html__( '2 Column Left', 'thinkai' ),
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/2cl.png',
|
||||
),
|
||||
'full' => array(
|
||||
'alt' => esc_html__( '1 Column', 'thinkai' ),
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/1col.png',
|
||||
),
|
||||
'right' => array(
|
||||
'alt' => esc_html__( '2 Column Right', 'thinkai' ),
|
||||
'img' => get_template_directory_uri() . '/assets/images/redux/2cr.png',
|
||||
),
|
||||
),
|
||||
'required' => [ 'sidebar_source_type', '=', 'd' ],
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'sidebar_page_sidebar',
|
||||
'type' => 'select',
|
||||
'title' => esc_html__( 'Sidebar', 'thinkai' ),
|
||||
'required' => array(
|
||||
array( 'sidebar_sidebar_layout', '=', array( 'left', 'right' ) ),
|
||||
),
|
||||
'options' => thinkais_get_sidebars(),
|
||||
'required' => [ 'sidebar_source_type', '=', 'd' ],
|
||||
),
|
||||
),
|
||||
);
|
||||
53
wp-content/plugins/thinkai-plugin/metabox/team.php
Normal file
53
wp-content/plugins/thinkai-plugin/metabox/team.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
return array(
|
||||
'title' => 'Thinkai Team Setting',
|
||||
'id' => 'thinkai_meta_team',
|
||||
'icon' => 'el el-cogs',
|
||||
'position' => 'normal',
|
||||
'priority' => 'core',
|
||||
'post_types' => array( 'team' ),
|
||||
'sections' => array(
|
||||
array(
|
||||
'id' => 'thinkai_team_meta_setting',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'team_overlay_image',
|
||||
'type' => 'media',
|
||||
'title' => esc_html__( 'Team Overlay Image', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'designation',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Designation', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'team_email',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Email Address', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'social_media_tabs',
|
||||
'type' => 'repeater',
|
||||
'icon' => 'el-icon-thumbs-up',
|
||||
'title' => __('Add Social Media', 'thinkai'),
|
||||
'group_values' => true,
|
||||
'sortable' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'select_social_media',
|
||||
'type' => 'select',
|
||||
'data' => get_fontawesome_icons(),
|
||||
'title' => esc_html__('Choose Social Media', 'thinkai'),
|
||||
),
|
||||
array(
|
||||
'id' => 'link_social_media',
|
||||
'type' => 'text',
|
||||
'title' => __('Link', 'thinkai'),
|
||||
),
|
||||
)
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
63
wp-content/plugins/thinkai-plugin/metabox/testimonials.php
Normal file
63
wp-content/plugins/thinkai-plugin/metabox/testimonials.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
return array(
|
||||
'title' => 'Thinkai Testimonials Setting',
|
||||
'id' => 'thinkai_meta_testimonials',
|
||||
'icon' => 'el el-cogs',
|
||||
'position' => 'normal',
|
||||
'priority' => 'core',
|
||||
'post_types' => array( 'testimonials' ),
|
||||
'sections' => array(
|
||||
array(
|
||||
'id' => 'thinkai_testimonials_meta_setting',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'author_name',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Author Name', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'author_designation',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Author Designation', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'te_video_url',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Enter Video Url', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'te_video_title',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Enter Video Title', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'review_title',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Review Title', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'review_time',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Review Time', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'te_ext_link',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'External Link', 'thinkai' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'testimonial_rating',
|
||||
'type' => 'select',
|
||||
'title' => esc_html__( 'Choose the Client Rating', 'thinkai' ),
|
||||
'options' => array(
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
Reference in New Issue
Block a user