function dt_custom_registration_form() { $role = isset($_POST['role']) ? trim($_POST['role']) : 'subscriber'; ?> <p> <label for="role"><?php _e('Role', 'dt_themes'); ?> <br /> <select name="role" id="role"> <option value="subscriber" <?php selected($role, 'subscriber'); ?> ><?php echo __('Subscriber', 'dt_themes'); ?> </option> <option value="teacher" <?php selected($role, 'teacher'); ?> ><?php echo __('Teacher', 'dt_themes'); ?> </option> <?php $status = dttheme_is_plugin_active('s2member/s2member.php'); if ($status) { ?> <option value="s2member_level1" <?php selected($role, 's2member_level1'); ?> ><?php echo __('Student', 'dt_themes'); ?> </option> <?php } ?> </select> </label> </p> <?php }
require_once IAMD_TD . '/framework/google_fonts.php'; require_once IAMD_TD . '/framework/theme_features.php'; require_once IAMD_TD . '/framework/admin_utils.php'; require_once IAMD_TD . '/framework/register_admin.php'; require_once IAMD_TD . '/framework/register_public.php'; require_once IAMD_TD . '/framework/register_media_uploader.php'; require_once IAMD_TD . '/framework/utils.php'; require_once IAMD_TD . '/framework/sociable_shortcodes.php'; ##Metaboxes require_once IAMD_TD . '/framework/theme_metaboxes/post_metabox.php'; require_once IAMD_TD . '/framework/theme_metaboxes/page_metabox.php'; require_once IAMD_TD . '/framework/theme_metaboxes/seo_metabox.php'; #TGM Plugins require_once IAMD_TD . '/framework/class-tgm-plugin-activation.php'; require_once IAMD_TD . '/framework/register_plugins.php'; ##Register Widgets require_once IAMD_TD . '/framework/register_widgets.php'; ##Register Widget Areas require_once IAMD_TD . '/framework/register_widget_areas.php'; ##Include Theme options require_once IAMD_TD . '/framework/theme_options/menu.php'; ##MegaMenu require_once IAMD_TD . '/framework/register_custom_attributes_in_menu.php'; ##Include Sensei if (dttheme_is_plugin_active('woothemes-sensei/woothemes-sensei.php')) { require_once IAMD_TD . '/sensei/index.php'; } #Woocommerce if (dttheme_is_plugin_active('woocommerce/woocommerce.php')) { require_once IAMD_TD . '/framework/woocommerce/index.php'; }
function dt_like_plugin_hook() { if (dttheme_is_plugin_active('roses-like-this/likethis.php')) { update_option("no_likes", "0"); update_option("one_like", "%"); update_option("some_likes", "%"); } }
function dt_sc_subscribed_courses($atts, $content = null) { extract(shortcode_atts(array('hide_visit_count' => ''), $atts)); $out = ''; if (dttheme_is_plugin_active('s2member/s2member.php')) { $user_ccaps = get_user_field("s2member_access_ccaps"); $login_count = get_user_field("s2member_login_counter"); $display_name = get_user_field("display_name"); if ($hide_visit_count != 'true') { $count_suffix = ''; if ($login_count == 1) { $count_suffix = '<sup>st</sup>'; } elseif ($login_count == 2) { $count_suffix = '<sup>nd</sup>'; } elseif ($login_count == 3) { $count_suffix = '<sup>rd</sup>'; } elseif ($login_count >= 4) { $count_suffix = '<sup>th</sup>'; } $out .= '<h2 class="border-title">' . __('Hi ' . $display_name . ', this is your ' . $login_count . $count_suffix . ' visit', 'dt_themes') . '<span> </span></h2>'; } if (isset($user_ccaps) && !empty($user_ccaps)) { $out .= '<h3>' . __('Courses you have subscribed so far,', 'dt_themes') . '</h3>'; $out .= '<div class="clear"> </div> <ol class="dt-sc-lessons-list dt-sc-user-subscribed-courses">'; foreach ($user_ccaps as $ccap) { $ccap = (int) str_replace('cid_', '', $ccap); $out .= '<li><h6><a href="' . get_permalink($ccap) . '">' . get_the_title($ccap) . '</a></h6></li>'; } $out .= '</ol>'; } } return $out; }
?> <li><a href="<?php echo $login; ?> " title="<?php _e('Login / Register Now', 'dt_themes'); ?> "><i class="fa fa-user"></i><?php echo __('Login', 'dt_themes') . '<span> | </span>' . __('Register', 'dt_themes'); ?> </a></li> <?php } else { $current_user = wp_get_current_user(); $welcome = dttheme_get_page_permalink_by_its_template('tpl-welcome.php'); if (dttheme_is_plugin_active('s2member/s2member.php')) { $login_welcome_page = get_option('ws_plugin__s2member_cache'); $login_welcome_page = $login_welcome_page['login_welcome_page']; $page = $login_welcome_page['page']; if (!empty($page)) { $link = $login_welcome_page['link']; $title = get_the_title($page); echo '<li><a href="' . $link . '">' . get_avatar($current_user->ID, 30) . '<span>' . __('Welcome, ', 'dt_themes') . ' ' . $current_user->display_name . ' | </span>' . '</a></li>'; } elseif (!is_null($welcome)) { echo '<li><a href="' . $welcome . '">' . get_avatar($current_user->ID, 30) . '<span>' . __('Welcome, ', 'dt_themes') . ' ' . $current_user->display_name . ' | </span>' . '</a></li>'; } } elseif (!is_null($welcome)) { echo '<li><a href="' . $welcome . '">' . get_avatar($current_user->ID, 30) . '<span>' . __('Welcome, ', 'dt_themes') . ' ' . $current_user->display_name . ' | </span>' . '</a></li>'; } else { echo '<li><a href="#">' . get_avatar($current_user->ID, 30) . '<span>' . __('Welcome, ', 'dt_themes') . ' ' . $current_user->display_name . ' | </span>' . '</a></li>'; }
$img = wp_get_attachment_image_src($id,$image_size); echo "<img src='".$img[0]."' width='".$img[1]."' height='".$img[2]."' alt=''/>"; } else { echo "<img src='".$gallery_item_meta['items'][0]."' width='1060' height='795' alt=''/>"; } } } else { echo "<img src='{$popup}'/>"; }?> <div class="image-overlay"> <div class="image-overlay-details"> <h5><a href="<?php the_permalink();?>" title="<?php printf( esc_attr__('%s'), the_title_attribute('echo=0'));?>"><?php the_title();?></a></h5> <div class="links"> <a href="<?php echo $popup;?>" data-gal="prettyPhoto[gallery]" title=""> <span class="fa fa-search-plus"> </span> </a> <a href="<?php the_permalink();?>" title=""> <span class="fa fa-external-link"> </span> </a><?php if(dttheme_is_plugin_active('roses-like-this/likethis.php')): ?> <div class="views"> <span class="fa fa-heart"> </span><?php printLikes($post->ID);?> </div><?php endif;?> </div> </div> <a class="close-overlay hidden"> x </a> </div> </figure> <div class="dt-gallery-details"> <div class="dt-gallery-details-inner"> <h5><a href="<?php the_permalink();?>" title="<?php printf( esc_attr__('%s'), the_title_attribute('echo=0'));?>"><?php the_title();?></a></h5> <?php if( array_key_exists("sub-title",$gallery_item_meta) ):?> <h6><?php echo $gallery_item_meta["sub-title"];?></h6> <?php endif;?>
<div id="buddypress-pages" class="bpanel-content"> <!-- .bpanel-main-content starts here--> <div class="bpanel-main-content"> <ul class="sub-panel"> <li><a href="#my-buddypress"><?php _e("BuddyPress Settings", 'dt_themes'); ?> </a></li> </ul> <!-- #my-buddypress starts here --> <div id="my-buddypress" class="tab-content"> <div class="bpanel-box"> <?php if (dttheme_is_plugin_active('buddypress/bp-loader.php')) { ?> <!-- Members List Starts Here --> <div class="box-title"> <h3><?php _e('Members List', 'dt_themes'); ?> </h3> </div> <div class="box-content"> <!-- Members Per Page --> <div class="column one-third"> <label><?php _e('Members Per Page', 'dt_themes'); ?>
function dttheme_seo_meta() { $status = dttheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php') || dttheme_is_plugin_active('wordpress-seo/wp-seo.php'); if (!$status) { global $post; $output = ""; $meta_description = ''; $meta_keywords = ''; if (is_feed()) { return; } if (is_404() || is_search()) { return; } # meta robots Noindex ,NoFollow if (is_category() && dttheme_option('seo', 'use_noindex_in_cats_page')) { $output .= '<meta name="robots" content="noindex,follow" />' . "\r"; } elseif (is_archive() && dttheme_option('seo', 'use_noindex_in_archives_page')) { $output .= '<meta name="robots" content="noindex,follow" />' . "\r"; } elseif (is_tag() && !dttheme_option('seo', 'use_noindex_in_tags_archieve_page')) { $output .= '<meta name="robots" content="noindex,follow" />' . "\r"; } #End ### Meta Description ### if (is_home() || is_front_page()) { if (get_option('page_on_front') != 0 && get_option('page_on_front') == $post->ID) { $meta_description = get_post_meta($post->ID, '_seo_description', true); } else { $meta_description = dttheme_option('onepage', 'seo-desc'); } } elseif (is_page()) { $meta_description = get_post_meta($post->ID, '_seo_description', true); if (empty($meta_description) && dttheme_option('seo', 'auto_generate_desc')) { $meta_description = substr(strip_shortcodes(strip_tags($post->post_content)), 0, 155); } #post } elseif (is_singular() || is_single()) { $meta_description = get_post_meta($post->ID, '_seo_description', true); if (empty($meta_description) && dttheme_option('seo', 'auto_generate_desc')) { $meta_description = trim(substr(strip_shortcodes(strip_tags($post->post_content)), 0, 155)); } #is_category() } elseif (is_category()) { #$categories = get_the_category(); #$meta_description = $categories[0]->description; $meta_description = strip_tags(category_description()); #is_tag() } elseif (is_tag()) { $meta_description = strip_tags(tag_description()); #is_author } elseif (is_author()) { $author_id = get_query_var('author'); if (!empty($author_id)) { $meta_description = get_the_author_meta('description', $author_id); } } if (!empty($meta_description)) { $meta_description = trim(substr($meta_description, 0, 155)); $meta_description = htmlspecialchars($meta_description); $output .= "<meta name='description' content='{$meta_description}' />\r"; } ### Meta Description End### if (is_home() || is_front_page()) { if (get_option('page_on_front') != 0 && get_option('page_on_front') == $post->ID) { $meta_keywords = get_post_meta($post->ID, '_seo_keywords', true); } else { $meta_keywords = dttheme_option('onepage', 'seo-keyword'); } } elseif (is_page()) { $meta_keywords = get_post_meta($post->ID, '_seo_keywords', true); #post } elseif (is_singular() || is_single()) { $meta_keywords = get_post_meta($post->ID, '_seo_keywords', true); #Use Categories in Keyword if (dttheme_option('seo', 'use_cats_in_meta_keword')) { $categories = get_the_category(); $c = ''; foreach ($categories as $category) { $c .= $category->name . ','; } $c = substr(trim($c), "0", strlen(trim($c)) - 1); $meta_keywords = $meta_keywords . ',' . $c; } #Use Tags in Keyword if (dttheme_option('seo', 'use_tags_in_meta_keword')) { $posttags = get_the_tags(); $ptags = ''; if ($posttags) { foreach ($posttags as $posttag) { $ptags .= $posttag->name . ','; } $ptags = substr(trim($ptags), "0", strlen(trim($ptags)) - 1); $meta_keywords = $meta_keywords . ',' . $ptags; } } #Archive } elseif (is_archive()) { global $posts; $keywords = array(); foreach ($posts as $post) { # If attachment then use parent post id $id = is_attachment() ? $post->post_parent : (!empty($post->ID) ? $post->ID : ''); $keywords_from_posts = get_post_meta($id, '_seo_keywords', true); if (!empty($keywords_from_posts)) { $traverse = explode(',', $keywords_from_posts); foreach ($traverse as $keyword) { $keywords[] = $keyword; } } #Use Tags in Keyword if (dttheme_option('seo', 'use_tags_in_meta_keword')) { $tags = get_the_tags($id); if ($tags && is_array($tags)) { foreach ($tags as $tag) { $keywords[] = $tag->name; } } } #Use categories in Keywords if (dttheme_option('seo', 'use_cats_in_meta_keword')) { $categories = get_the_category($id); foreach ($categories as $category) { $keywords[] = $category->cat_name; } } } # Make keywords lowercase $keywords = array_unique($keywords); $small_keywords = array(); $final_keywords = array(); foreach ($keywords as $word) { $final_keywords[] = strtolower($word); } if (!empty($final_keywords)) { $meta_keywords = implode(",", $final_keywords); } #search || 404 page } elseif (is_404() || is_search()) { $meta_keywords = ''; } if (!empty($meta_keywords)) { $output .= "\t<meta name='keywords' content='{$meta_keywords}'/>\r"; } ### Meta Keyword End### #Generate canonical_url if (dttheme_option('seo', 'use_canonical_urls')) { $url = dttheme_canonical(); if ($url) { $output .= "<link rel='canonical' href='{$url}'/>\r"; } } echo $output; } }
<div class="bpanel-main-content"> <ul class="sub-panel"> <li><a href="#my-pagebuilder"><?php _e("Page Builder",'dt_themes');?></a></li> </ul> <!-- #my-pagebuilder--> <div id="my-pagebuilder" class="tab-content"> <!-- .bpanel-box --> <div class="bpanel-box"> <div class="box-title"> <h3><?php _e('Page Builder','dt_themes');?></h3> </div> <?php $dt_pb_status = dttheme_is_plugin_active('designthemes-core-features/designthemes-core-features.php'); if($dt_pb_status) { ?> <div class="box-content"> <div class="bpanel-option-set"> <h6><?php _e('Choose any of these post types to activate page builder','dt_themes');?></h6> <?php $custom_post_types = array( 'post' => 'Post', 'page' => 'Page', 'dt_galleries' => 'Gallery'); foreach ( $custom_post_types as $post_type_key => $post_type_name ){ $switchclass = ( $post_type_key == dttheme_option('pagebuilder', $post_type_key) ) ? 'checkbox-switch-on' :'checkbox-switch-off'; $post_type_object = get_post_type_object( $post_type_key );
<?php $status = dttheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php') || dttheme_is_plugin_active('wordpress-seo/wp-seo.php'); if (!$status) { add_action("admin_init", "seo_metabox"); } function seo_metabox() { $posts = array("post", "page"); foreach ($posts as $post) { add_meta_box("seo-meta-container", __('SEO Options', 'dt_themes'), "seo_settings", "{$post}", "normal", "default"); add_action('save_post', 'seo_meta_save'); } } function seo_settings($args) { global $post; ?> <div class="custom-box"> <div class="column one-sixth"> <label><?php _e('Title', 'dt_themes'); ?> </label> </div> <div class="column five-sixth last"> <input name="_seo_title" type="text" class="large" value="<?php echo get_post_meta($post->ID, '_seo_title', true); ?> " /> <p class="three-fourth note"> <?php
/** dttheme_options_page() * Objective: * To create thme option page at back end. **/ function dttheme_options_page(){ ?> <!-- wrapper --> <div id="wrapper"> <!-- Result --> <div id="bpanel-message" style="display:none;"></div> <div id="ajax-feedback" style="display:none;"><img src="<?php echo IAMD_FW_URL.'theme_options/images/loading.png';?>" alt="" title=""/> </div> <!-- Result --> <!-- panel-wrap --> <div id="panel-wrap"> <!-- bpanel-wrapper --> <div id="bpanel-wrapper"> <!-- bpanel --> <div id="bpanel"> <!-- bpanel-left --> <div id="bpanel-left"> <div id="logo"><?php $logo = IAMD_FW_URL.'theme_options/images/logo.png'; $advance = dttheme_option('advance'); if(isset($advance['buddhapanel-logo-url']) && isset( $advance['enable-buddhapanel-logo-url'])): $logo = $advance['buddhapanel-logo-url']; endif;?> <img src="<?php echo $logo;?>" width="186" height="101" alt="" title="" /> </div> <?php $status = dttheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php')|| dttheme_is_plugin_active('wordpress-seo/wp-seo.php'); $tabs = NULL; if(!$status): $tabs = array( array('id'=>'general' , 'name'=>__('General','dt_themes')), array('id'=>'appearance', 'name'=>__('Appearance','dt_themes')), array('id'=>'skin', 'name'=>__('Skins','dt_themes')), array('id'=>'integration', 'name'=>__('Integration','dt_themes')), array('id'=>'seo', 'name'=>__('SEO','dt_themes')), array('id'=>'specialty-pages', 'name'=>__('Speciality Pages','dt_themes')), array('id'=>'theme-footer', 'name'=>__('Footer','dt_themes')), array('id'=>'widgetarea', 'name'=>__('Widget Area','dt_themes')), array('id'=>'woocommerce', 'name'=>__('WooCommerce','dt_themes')), array('id'=>'pagebuilder', 'name'=>__('Page Builder','dt_themes')), array('id'=>'mobile', 'name'=>__('Responsive & Mobile','dt_themes')), array('id'=>'branding', 'name'=>__('Branding','dt_themes')), array('id'=>'company', 'name'=>__('Company','dt_themes')), array('id'=>'backup', 'name'=>__('Backup','dt_themes'))); else: $tabs = array( array('id'=>'general' , 'name'=>__('General','dt_themes')), array('id'=>'appearance', 'name'=>__('Appearance','dt_themes')), array('id'=>'skin', 'name'=>__('Skins','dt_themes')), array('id'=>'integration', 'name'=>__('Integration','dt_themes')), array('id'=>'specialty-pages', 'name'=>__('Speciality Pages','dt_themes')), array('id'=>'theme-footer', 'name'=>__('Footer','dt_themes')), array('id'=>'widgetarea', 'name'=>__('Widget Area','dt_themes')), array('id'=>'woocommerce', 'name'=>__('WooCommerce','dt_themes')), array('id'=>'pagebuilder', 'name'=>__('Page Builder','dt_themes')), array('id'=>'mobile', 'name'=>__('Responsive & Mobile','dt_themes')), array('id'=>'branding', 'name'=>__('Branding','dt_themes')), array('id'=>'company', 'name'=>__('Company','dt_themes')), array('id'=>'backup', 'name'=>__('Backup','dt_themes')),); endif; $output = "<!-- bpanel-mainmenu -->\n\t\t\t\t\t\t<ul id='bpanel-mainmenu'>\n"; foreach($tabs as $tab ): $output .= "\t\t\t\t\t\t\t\t<li><a href='#{$tab['id']}' title='{$tab['name']}'><span class='{$tab['id']}'></span>{$tab['name']}</a></li>\n"; endforeach; $output .= "\t\t\t\t\t\t</ul><!-- #bpanel-mainmenu -->\n"; echo $output;?> </div><!-- #bpanel-left end--> <form id="mytheme_options_form" name="mytheme_options_form" method="post" action="options.php"> <?php settings_fields(IAMD_THEME_SETTINGS);?> <input type="hidden" id="mytheme-full-submit" name="mytheme-full-submit" value="0" /> <input type="hidden" name="mytheme_admin_wpnonce" value="<?php echo wp_create_nonce(IAMD_THEME_SETTINGS.'_wpnonce');?>" /> <div class="top-links"> <?php $import_disable = (dttheme_option('general','disable-import') == "on") ? "import-disabled" :""; ?> <a class="mytheme-import-button bpanel-button blue-btn <?php echo $import_disable;?>"><?php _e('Import Dummy Data','dt_themes');?></a> </div><?php require_once(get_template_directory().'/framework/theme_options/general.php'); require_once(get_template_directory().'/framework/theme_options/appearance.php'); require_once(get_template_directory().'/framework/theme_options/integration.php'); require_once(get_template_directory().'/framework/theme_options/specialty-pages.php'); require_once(get_template_directory().'/framework/theme_options/footer.php'); require_once(get_template_directory().'/framework/theme_options/widgetarea.php'); require_once(get_template_directory().'/framework/theme_options/woocommerce.php'); require_once(get_template_directory().'/framework/theme_options/pagebuilder.php'); require_once(get_template_directory().'/framework/theme_options/responsive.php'); require_once(get_template_directory().'/framework/theme_options/branding.php'); require_once(get_template_directory().'/framework/theme_options/skins.php'); $status = dttheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php')|| dttheme_is_plugin_active('wordpress-seo/wp-seo.php'); if(!$status): require_once(get_template_directory().'/framework/theme_options/seo.php'); endif; require_once(get_template_directory().'/framework/theme_options/company.php'); require_once(get_template_directory().'/framework/theme_options/backup.php');?> <!-- #bpanel-bottom --> <div id="bpanel-bottom"> <input type="submit" value="<?php _e('Reset All','dt_themes');?>" class="save-reset mytheme-reset-button bpanel-button white-btn" name="mytheme[reset]" /> <input type="submit" value="<?php _e('Save All','dt_themes');?>" name="submit" class="save-reset mytheme-footer-submit bpanel-button white-btn" /> </div><!-- #bpanel-bottom end--> </form> </div><!-- #bpanel --> </div><!-- #bpanel-wrapper --> </div><!-- #panel-wrap end --> </div><!-- #wrapper end--> <?php }
<li><a href="#"><img title="Client 5" src="http://placehold.it/163x116" alt="Client 5" /></a></li> </ul>'))); $dt_modules['general']['icon_box'] = array('name' => __('Icon Box', 'dt_themes'), 'tooltip' => __('Use this module to add icon box', 'dt_themes'), 'icon_class' => 'ico-iconbox', 'options' => array('type' => array('title' => __('Types', 'dt_themes'), 'type' => 'select', 'options' => $icon_box_types, 'default_value' => array('type1')), 'fontawesome_icon' => array('title' => __('Fontawesome Icon', 'dt_themes'), 'type' => 'text', 'default_value' => 'trophy'), 'custom_icon' => array('title' => __('Custom Icon', 'dt_themes'), 'type' => 'upload', 'default_value' => ''), 'title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Title Comes Here'), 'link' => array('title' => __('Link', 'dt_themes'), 'type' => 'text', 'default_value' => '#'), 'custom_bgcolor' => array('title' => __('Icon Background Color (for type13 only)', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#27ae60'), 'ib_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras cursus sollicitudin nunc nec rhoncus.'))); /* End of General Modules */ /* Start of Unique Modules */ $dt_modules['unique']['courses'] = array('name' => __('Courses', 'dt_themes'), 'tooltip' => __('Use this module to add courses', 'dt_themes'), 'icon_class' => 'ico-courses', 'options' => array('course_type' => array('title' => __('Course Type', 'dt_themes'), 'type' => 'select', 'options' => $course_types, 'default_value' => array('all')), 'limit' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '6'), 'carousel' => array('title' => __('Carousel', 'dt_themes'), 'type' => 'select', 'options' => $trueorfalse, 'default_value' => array('false')), 'columns' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => $coursecolumns, 'default_value' => array(2)), 'layout_view' => array('title' => __('Layout View', 'dt_themes'), 'type' => 'select', 'options' => $layout_options, 'default_value' => array('grid')), 'categories' => array('title' => __('Categories', 'dt_themes'), 'type' => 'select', 'options' => $course_cat, 'multiple' => true, 'default_value' => array()))); $dt_modules['unique']['courses_search'] = array('name' => __('Courses Search', 'dt_themes'), 'tooltip' => __('Use this module to add courses search box', 'dt_themes'), 'icon_class' => 'ico-courses-search', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => __('Search Courses', 'dt_themes')), 'post_per_page' => array('title' => __('Posts Per Page', 'dt_themes'), 'type' => 'text', 'default_value' => '5'))); if (function_exists('dttheme_is_plugin_active') && dttheme_is_plugin_active('woothemes-sensei/woothemes-sensei.php')) { $dt_modules['unique']['courses_sensei'] = array('name' => __('Courses - Sensei', 'dt_themes'), 'tooltip' => __('Use this module to add courses', 'dt_themes'), 'icon_class' => 'ico-courses-sensei', 'options' => array('course_type' => array('title' => __('Course Type', 'dt_themes'), 'type' => 'select', 'options' => $course_sensei_types, 'default_value' => array()), 'limit' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '4'), 'carousel' => array('title' => __('Carousel', 'dt_themes'), 'type' => 'select', 'options' => $trueorfalse, 'default_value' => array('false')), 'categories' => array('title' => __('Categories', 'dt_themes'), 'type' => 'text', 'default_value' => ''))); } $dt_modules['unique']['counter'] = array('name' => __('Counter', 'dt_themes'), 'tooltip' => __('Use this module to add counter', 'dt_themes'), 'icon_class' => 'ico-counter', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Title Comes Here'), 'number' => array('title' => __('Number', 'dt_themes'), 'type' => 'text', 'default_value' => '1000'), 'fontawesome_icon' => array('title' => __('Fontawesome Icon', 'dt_themes'), 'type' => 'text', 'default_value' => 'home'))); $dt_modules['unique']['infographic_bar'] = array('name' => __('Infographic Bar', 'dt_themes'), 'tooltip' => 'Add infographic bar', 'icon_class' => 'ico-infographicbar', 'options' => array('icon' => array('title' => __('Icon', 'dt_themes'), 'type' => 'text', 'default_value' => 'fa-female'), 'icon_size' => array('title' => __('Icon size', 'dt_themes'), 'type' => 'text', 'default_value' => '50'), 'value' => array('title' => __('Percentage', 'dt_themes'), 'type' => 'text', 'default_value' => '75'), 'type' => array('title' => __('Type', 'dt_themes'), 'type' => 'select', 'options' => $progressbar_types, 'default_value' => array('standard')), 'color' => array('title' => __('Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => ''), 'content' => array('title' => __('Text', 'dt_themes'), 'type' => 'text', 'is_content' => true, 'default_value' => 'Laasd pamade eleifend la sapien. Vestibulum purus quam.'))); $dt_modules['unique']['donutchart_small'] = array('name' => __('Donut Chart - Small', 'dt_themes'), 'tooltip' => __('Use this module to add small donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); $dt_modules['unique']['donutchart_medium'] = array('name' => __('Donut Chart - Medium', 'dt_themes'), 'tooltip' => __('Use this module to add medium donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); $dt_modules['unique']['donutchart_large'] = array('name' => __('Donut Chart - Large', 'dt_themes'), 'tooltip' => __('Use this module to add large donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); if (function_exists('dttheme_is_plugin_active') && dttheme_is_plugin_active('the-events-calendar/the-events-calendar.php')) { $dt_modules['unique']['events'] = array('name' => __('Events', 'dt_themes'), 'tooltip' => __('Use this module to add events list or carousel', 'dt_themes'), 'icon_class' => 'ico-events', 'options' => array('limit' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '4'), 'carousel' => array('title' => __('Carousel', 'dt_themes'), 'type' => 'select', 'options' => $trueorfalse, 'default_value' => array('false')))); } $dt_modules['unique']['post'] = array('name' => __('Single Post', 'dt_themes'), 'tooltip' => __('Use this module to display any single post', 'dt_themes'), 'icon_class' => 'ico-singlepost', 'options' => array('id' => array('title' => __('Post Id', 'dt_themes'), 'type' => 'text', 'default_value' => '1'), 'read_more_text' => array('title' => __('Read More Text', 'dt_themes'), 'type' => 'text', 'default_value' => 'Read More'), 'excerpt_length' => array('title' => __('Excerpt Length', 'dt_themes'), 'type' => 'text', 'default_value' => '10'))); $dt_modules['unique']['recent_post'] = array('name' => __('Recent Posts', 'dt_themes'), 'tooltip' => __('Use this module to display recent posts', 'dt_themes'), 'icon_class' => 'ico-recentposts', 'options' => array('columns' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => $post_columns, 'default_value' => array(3)), 'count' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '3'), 'read_more_text' => array('title' => __('Read More Text', 'dt_themes'), 'type' => 'text', 'default_value' => 'Read More'), 'excerpt_length' => array('title' => __('Excerpt Length', 'dt_themes'), 'type' => 'text', 'default_value' => '10'))); $dt_modules['unique']['timeline_section'] = array('name' => __('Timeline', 'dt_themes'), 'tooltip' => 'Add timeline process', 'icon_class' => 'ico-timeline', 'options' => array('ts_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => '[dt_sc_timeline align="left" class=""] [dt_sc_timeline_item fontawesome_icon="home" custom_icon="" link="#" title="Title Comes Here" subtitle="Subtitle Comes Here"] Nemo enim ipsam voluptatem quia voluptas sit atur aut odit aut fugit, sed quia consequuntur magni res. [/dt_sc_timeline_item] [/dt_sc_timeline] [dt_sc_timeline align="right" class=""] [dt_sc_timeline_item fontawesome_icon="eye" custom_icon="" link="#" title="Title Comes Here" subtitle="Subtitle Comes Here"] Nemo enim ipsam voluptatem quia voluptas sit atur aut odit aut fugit, sed quia consequuntur magni res. [/dt_sc_timeline_item] [/dt_sc_timeline] [dt_sc_timeline align="left" class=""]
function dt_sc_gallery_item($attrs, $content = "") { extract(shortcode_atts(array('id' => '', 'space' => '', 'image_size' => ''), $attrs)); $out = ""; if (!empty($id)) { $p = get_post($id); if ($p->post_type === "dt_galleries") { $permalink = get_permalink($id); $gallery_item_meta = get_post_meta($id, '_gallery_settings', TRUE); $gallery_item_meta = is_array($gallery_item_meta) ? $gallery_item_meta : array(); $items_id_exists = array_key_exists('items_id', $gallery_item_meta) ? true : false; $space = $space == "yes" ? "with-space" : "no-space"; $out .= "<div id='dt_galleries-{$id}' class='dt-gallery gallery {$space}'>"; $out .= ' <figure>'; $popup = "http://placehold.it/1060x795&text=DesignThemes"; if (array_key_exists('items_name', $gallery_item_meta)) { $item = $gallery_item_meta['items_name'][0]; $popup = $gallery_item_meta['items'][0]; if ("video" === $item) { $items = array_diff($gallery_item_meta['items_name'], array("video")); if (!empty($items)) { if ($items_id_exists) { $id = $gallery_item_meta['items_id'][key($items)]; $img = wp_get_attachment_image_src($id, $image_size); $out .= "<img src='" . $img[0] . "' width='" . $img[1] . "' height='" . $img[2] . "' alt=''/>"; } else { echo "<img src='" . $gallery_item_meta['items'][key($items)] . "' width='1060' height='795' alt='' />"; } } else { $out .= '<img src="http://placehold.it/1060x795&text=DesignThemes" width="1060" height="795" alt="">'; } } else { if ($items_id_exists) { $id = $gallery_item_meta['items_id'][0]; $img = wp_get_attachment_image_src($id, $image_size); $out .= "<img src='" . $img[0] . "' width='" . $img[1] . "' height='" . $img[2] . "' alt=''/>"; } else { echo "<img src='" . $gallery_item_meta['items'][0] . "' width='1060' height='795' alt=''/>"; } } } else { $out .= "<img src='{$popup}'/>"; } $out .= ' <div class="image-overlay">'; $out .= ' <div class="image-overlay-details">'; $out .= "\t\t\t\t<h5><a href='{$permalink}'>{$p->post_title}</a></h5>"; $out .= ' <div class="links">'; $out .= " \t\t<a href='{$popup}' data-gal='prettyPhoto[gallery]'> <span class='fa fa-search-plus'> </span> </a>"; $out .= "\t\t\t\t\t<a href='{$permalink}'> <span class='fa fa-external-link'> </span> </a>"; if (dttheme_is_plugin_active('roses-like-this/likethis.php')) { $out .= "<div class='views'> <span class='fa fa-heart'> </span> " . generateLikeString($id, isset($_COOKIE["like_" . $id])) . '</div>'; } $out .= ' </div>'; $out .= ' </div>'; $out .= ' <a class="close-overlay hidden"> x </a>'; $out .= ' </div>'; $out .= ' </figure>'; if ($space == "with-space") { $out .= '<div class="dt-gallery-details">'; $out .= ' <div class="dt-gallery-details-inner">'; $out .= "\t<h5><a href='{$permalink}'>{$p->post_title}</a></h5>"; if (array_key_exists("sub-title", $gallery_item_meta)) { $out .= "<h6>{$gallery_item_meta['sub-title']}</h6>"; } $out .= ' </div>'; $out .= '</div>'; } $out .= "</div>"; } else { $out .= "<p>" . __("There is no gallery item with id :", "dt_themes") . $id . "</p>"; } } else { $out .= "<p>" . __("Please give gallery post id", "dt_themes") . "</p>"; } return $out; }
<p> <label><?php _e('Role', 'dt_themes'); ?> <span class="required"> * </span> </label> <select name="role" id="role"> <option value="subscriber"><?php echo __('Subscriber', 'dt_themes'); ?> </option> <option value="teacher"><?php echo __('Teacher', 'dt_themes'); ?> </option> <?php $status = dttheme_is_plugin_active('s2member/s2member.php'); if ($status) { ?> <option value="s2member_level1"><?php echo __('Student', 'dt_themes'); ?> </option> <?php } ?> </select> </p> <p class="submit alignleft"><input type="submit" class="button-primary" value="<?php _e('Register', 'dt_themes'); ?> " /></p>
if ($tag_archive_layout != "content-full-width") { register_sidebar(array('name' => __("Tag's Archive Sidebar", 'dt_themes'), 'id' => 'post-tags-archive-sidebar', 'description' => __("Tag's archive sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); } #Search Page Layout $search_layout = dttheme_option('specialty', 'search-layout'); $search_layout = !empty($search_layout) ? $search_layout : "content-full-width"; if ($search_layout != "content-full-width") { register_sidebar(array('name' => __("Search Sidebar", 'dt_themes'), 'id' => 'search-sidebar', 'description' => __("Search page sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); } #404 Page Layout $layout_404 = dttheme_option('specialty', '404-layout'); $layout_404 = !empty($layout_404) ? $layout_404 : "content-full-width"; if ($layout_404 != "content-full-width") { register_sidebar(array('name' => __('Not Found ( 404 ) Sidebar', 'dt_themes'), 'id' => 'not-found-404-sidebar', 'description' => __("404 page sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); } if (dttheme_is_plugin_active('designthemes-core-features/designthemes-core-features.php')) { $layout = dttheme_option('specialty', 'gallery-archives-layout'); $layout = !empty($layout) ? $layout : "content-full-width"; if ($layout != "content-full-width") { register_sidebar(array('name' => __("Gallery's Category Sidebar", 'dt_themes'), 'id' => 'custom-post-gallery-archives', 'description' => __("Gallery post's archive sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); } } if (class_exists('woocommerce')) { #Shop Everywhere Sidebar register_sidebar(array('name' => 'Shop Everywhere', 'id' => 'shop-everywhere-sidebar', 'description' => __("Shop page unique sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); #Product Detail page Sidebar $product_layout = dttheme_option('woo', "product-layout"); $product_layout = !empty($product_layout) ? $product_layout : "content-full-width"; if ($product_layout != "content-full-width") { register_sidebar(array('name' => 'Product Detail Page Sidebar', 'id' => 'product-detail-sidebar', 'description' => __("Product detail page sidebar that appears on the left (or) right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>')); }
function page_sllider_settings($args){ global $post; $tpl_default_settings = get_post_meta($post->ID,'_tpl_default_settings',TRUE); $tpl_default_settings = is_array($tpl_default_settings) ? $tpl_default_settings : array();?> <!-- Show Slider --> <div class="custom-box"> <div class="column one-sixth"> <label><?php _e('Show Slider','dt_themes');?> </label> </div> <div class="column four-sixth last"> <?php $switchclass = array_key_exists("show_slider",$tpl_default_settings) ? 'checkbox-switch-on' :'checkbox-switch-off'; $checked = array_key_exists("show_slider",$tpl_default_settings) ? ' checked="checked"' : '';?> <div data-for="mytheme-show-slider" class="checkbox-switch <?php echo $switchclass;?>"></div> <input id="mytheme-show-slider" class="hidden" type="checkbox" name="mytheme-show-slider" value="true" <?php echo $checked;?>/> <p class="note"> <?php _e('YES! to show slider on this page.','dt_themes');?> </p> </div> </div><!-- Show Slider End--> <!-- Slider Types --> <div class="custom-box"> <div class="column one-sixth"> <label><?php _e('Choose Slider','dt_themes');?></label> </div> <div class="column four-sixth last"> <?php $slider_types = array( '' => __("Select",'dt_themes'), 'layerslider' => __("Layer Slider",'dt_themes'), 'revolutionslider' => __("Revolution Responsive",'dt_themes'), 'imageonly' => __( "Image Only", "dt_themes") ); $v = array_key_exists("slider_type",$tpl_default_settings) ? $tpl_default_settings['slider_type'] : ''; echo "<select class='slider-type' name='mytheme-slider-type'>"; foreach($slider_types as $key => $value): $rs = selected($key,$v,false); echo "<option value='{$key}' {$rs}>{$value}</option>"; endforeach; echo "</select>";?> <p class="note"> <?php _e("Choose which slider you wish to use ( eg: Layer or Revolution )",'dt_themes');?> </p> </div> </div><!-- Slider Types End--> <!-- slier-container starts--> <div id="slider-conainer"><?php $layerslider = $revolutionslider = $imageonly = 'style="display:none"'; if(isset($tpl_default_settings['slider_type'])&& $tpl_default_settings['slider_type'] == "layerslider"): $layerslider = 'style="display:block"'; elseif(isset($tpl_default_settings['slider_type'])&& $tpl_default_settings['slider_type'] == "revolutionslider"): $revolutionslider = 'style="display:block"'; elseif(isset($tpl_default_settings['slider_type'])&& $tpl_default_settings['slider_type'] == "imageonly"): $imageonly = 'style="display:block"'; endif;?> <!-- Layered Slider --> <div id="layerslider" class="custom-box" <?php echo $layerslider;?>> <h3><?php _e('Layer Slider','dt_themes');?></h3> <?php if(dttheme_is_plugin_active('LayerSlider/layerslider.php')):?> <?php // Get WPDB Object global $wpdb; // Table name $table_name = $wpdb->prefix . "layerslider"; // Get sliders $sliders = $wpdb->get_results( "SELECT * FROM $table_name WHERE flag_hidden = '0' AND flag_deleted = '0' ORDER BY date_c ASC LIMIT 100" ); if($sliders != null && !empty($sliders)): echo '<div class="one-half-content">'; echo ' <div class="bpanel-option-set">'; echo ' <div class="column one-sixth">'; echo ' <label>'.__('Select LayerSlider','dt_themes').'</label>'; echo ' </div>'; echo ' <div class="column two-sixth">'; echo ' <select name="layerslider_id">'; echo ' <option value="0">'.__("Select Slider",'dt_themes').'</option>'; foreach($sliders as $item) : $name = empty($item->name) ? 'Unnamed' : $item->name; $id = $item->id; $rs = isset($tpl_default_settings['layerslider_id']) ? $tpl_default_settings['layerslider_id']:''; $rs = selected($id,$rs,false); echo " <option value='{$id}' {$rs}>{$name}</option>"; endforeach; echo ' </select>'; echo '<p class="note">'; _e("Choose Which LayerSlider you would like to use..",'dt_themes'); echo "</p>"; echo ' </div>'; echo ' </div>'; echo '</div>'; else: echo '<p id="j-no-images-container">'.__('Please add atleat one layer slider','dt_themes').'</p>'; endif;?> <?php $layersliders = get_option('layerslider-slides'); if($layersliders): $layersliders = is_array($layersliders) ? $layersliders : unserialize($layersliders); foreach($layersliders as $key => $val): $layersliders_array[$key+1] = 'LayerSlider #'.($key+1); endforeach; echo '<div class="one-half-content">'; echo ' <div class="bpanel-option-set">'; echo ' <div class="column one-sixth">'; echo ' <label>'.__('Select LayerSlider','dt_themes').'</label>'; echo '</div>'; echo ' <div class="column two-sixth">'; echo ' <select name="layerslider_id">'; echo ' <option value="0">'.__("Select Slider",'dt_themes').'</option>'; foreach($layersliders_array as $key => $value): $rs = isset($tpl_default_settings['layerslider_id']) ? $tpl_default_settings['layerslider_id']:''; $rs = selected($key,$rs,false); echo " <option value='{$key}' {$rs}>{$value}</option>"; endforeach; echo ' </select>'; echo '<p class="note">'; _e("Choose which LayerSlider would you like to use!",'dt_themes'); echo "</p>"; echo '</div>'; echo ' </div>'; echo '</div>'; endif; else:?> <p id="j-no-images-container"><?php _e('Please activate Layered Slider','dt_themes'); ?></p> <?php endif;?> </div><!-- Layered Slider End--> <!-- Revolution Slider --> <div id="revolutionslider" class="custom-box" <?php echo $revolutionslider;?>> <h3><?php _e('Revolution Slider','dt_themes');?></h3> <?php $return = dttheme_check_slider_revolution_responsive_wordpress_plugin(); if($return): echo '<div class="one-half-content">'; echo ' <div class="bpanel-option-set">'; echo ' <div class="column one-sixth">'; echo ' <label>'.__('Select Slider','dt_themes').'</label>'; echo '</div>'; echo ' <div class="column three-sixth">'; echo ' <select name="revolutionslider_id">'; echo ' <option value="0">'.__("Select Slider",'dt_themes').'</option>'; foreach($return as $key => $value): $rs = isset($tpl_default_settings['revolutionslider_id']) ? $tpl_default_settings['revolutionslider_id']:''; $rs = selected($key,$rs,false); echo " <option value='{$key}' {$rs}>{$value}</option>"; endforeach; echo '</select>'; echo '<p class="note">'; _e("Choose which Revolution slider would you like to use!",'dt_themes'); echo "</p>"; echo '</div>'; echo ' </div>'; echo '</div>'; else: ?> <p id="j-no-images-container"><?php _e('Please activate Revolution Slider , and add at least one slider.','dt_themes'); ?></p> <?php endif;?> </div><!-- Revolution Slider End--> <!-- Image Only --> <div id="imageonly" class="custom-box" <?php echo $imageonly;?>> <div class="custom-box"> <div class="column one-sixth"><?php _e( 'Choose Image','dt_themes');?></div> <div class="column five-sixth last"> <div class="image-preview-container"> <?php $slider_image = array_key_exists ( "slider-image", $tpl_default_settings ) ? $tpl_default_settings ['slider-image'] : '';?> <input name="slider-image" type="text" class="uploadfield medium" readonly="readonly" value="<?php echo $slider_image;?>"/> <input type="button" value="<?php _e('Upload','dt_themes');?>" class="upload_image_button show_preview" /> <input type="button" value="<?php _e('Remove','dt_themes');?>" class="upload_image_reset" /> <?php if( !empty($subtitlebg) ) dttheme_adminpanel_image_preview($slider_image );?> <p class="note"><?php _e("Upload an image instead of slider",'dt_themes');?></p> </div> </div> </div> </div><!-- Image Only --> </div><!-- slier-container ends--><?php wp_reset_postdata(); }
$dt_modules['general']['testimonial_carousel'] = array('name' => __('Testimonial Carousel', 'dt_themes'), 'tooltip' => __('Use this module to add testimonial carousel', 'dt_themes'), 'icon_class' => 'ico-testimonial', 'options' => array('class' => array('title' => __('Style', 'dt_themes'), 'type' => 'select', 'options' => array('' => 'Default', 'type2' => 'Alternate'), 'default_value' => array('')), 'tmc_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => '<ul> <li>[dt_sc_testimonial name="John Doe" role="Cambridge Telcecom" type="type2" class=""]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi hendrerit elit turpis, a porttitor tellus sollicitudin at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.[/dt_sc_testimonial]</li> <li>[dt_sc_testimonial name="John Doe" role="Cambridge Telcecom" type="type2" class=""]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi hendrerit elit turpis, a porttitor tellus sollicitudin at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.[/dt_sc_testimonial]</li> <li>[dt_sc_testimonial name="John Doe" role="Cambridge Telcecom" type="type2" class=""]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi hendrerit elit turpis, a porttitor tellus sollicitudin at. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.[/dt_sc_testimonial]</li> </ul>'))); $dt_modules['general']['carousel'] = array('name' => __('Images Carousel', 'dt_themes'), 'tooltip' => __('Use this module to add images carousel', 'dt_themes'), 'icon_class' => 'ico-clients', 'options' => array('columns' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => array('2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '5' => '5 Columns'), 'default_value' => array('4')), 'cc_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => '<ul> <li><a href="#"><img title="Client 1" src="http://placehold.it/163x116" alt="Client 1" /></a></li> <li><a href="#"><img title="Client 2" src="http://placehold.it/163x116" alt="Client 2" /></a></li> <li><a href="#"><img title="Client 3" src="http://placehold.it/163x116" alt="Client 3" /></a></li> <li><a href="#"><img title="Client 4" src="http://placehold.it/163x116" alt="Client 4" /></a></li> <li><a href="#"><img title="Client 5" src="http://placehold.it/163x116" alt="Client 5" /></a></li> </ul>'))); $dt_modules['general']['icon_box'] = array('name' => __('Icon Box', 'dt_themes'), 'tooltip' => __('Use this module to add icon box', 'dt_themes'), 'icon_class' => 'ico-iconbox', 'options' => array('type' => array('title' => __('Types', 'dt_themes'), 'type' => 'select', 'options' => $icon_box_types, 'default_value' => array('type1')), 'fontawesome_icon' => array('title' => __('Fontawesome Icon', 'dt_themes'), 'type' => 'text', 'default_value' => 'trophy'), 'custom_icon' => array('title' => __('Custom Icon', 'dt_themes'), 'type' => 'upload', 'default_value' => ''), 'inner_image' => array('title' => __('Type 1 Inner Image', 'dt_themes'), 'type' => 'upload', 'default_value' => 'http://placehold.it/620x237&text=DesignThemes'), 'title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Title Comes Here'), 'link' => array('title' => __('Link', 'dt_themes'), 'type' => 'text', 'default_value' => '#'), 'color' => array('title' => __('Variation', 'dt_themes'), 'type' => 'select', 'options' => $variations, 'default_value' => array()), 'ib_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras cursus sollicitudin nunc nec rhoncus.'))); /* End of General Modules */ /* Start of Unique Modules */ if (function_exists('dttheme_is_plugin_active') && dttheme_is_plugin_active('woothemes-sensei/woothemes-sensei.php')) { $dt_modules['unique']['courses_sensei'] = array('name' => __('Courses - Sensei', 'dt_themes'), 'tooltip' => __('Use this module to add courses', 'dt_themes'), 'icon_class' => 'ico-courses-sensei', 'options' => array('course_type' => array('title' => __('Course Type', 'dt_themes'), 'type' => 'select', 'options' => $course_sensei_types, 'default_value' => array()), 'limit' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '4'), 'carousel' => array('title' => __('Carousel', 'dt_themes'), 'type' => 'select', 'options' => $trueorfalse, 'default_value' => array('false')), 'categories' => array('title' => __('Categories', 'dt_themes'), 'type' => 'text', 'default_value' => ''))); } $dt_modules['unique']['popular_procedure'] = array('name' => __('Popular Procedure', 'dt_themes'), 'tooltip' => __('Use this module to add popular procedure', 'dt_themes'), 'icon_class' => 'ico-iconbox', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Aliquama'), 'image' => array('title' => __('Image', 'dt_themes'), 'type' => 'upload', 'default_value' => 'http://placehold.it/500&text=Images'), 'link' => array('title' => __('Link', 'dt_themes'), 'type' => 'text', 'default_value' => '#'), 'button_text' => array('title' => __('Button Text', 'dt_themes'), 'type' => 'text', 'default_value' => 'Read More'), 'hours' => array('title' => __('Hours', 'dt_themes'), 'type' => 'text', 'default_value' => 'Duration: 1-2hr'), 'price' => array('title' => __('Price', 'dt_themes'), 'type' => 'text', 'default_value' => 'Price: $18.00'), 'ib_content' => array('title' => __('Content', 'dt_themes'), 'type' => 'wp_editor', 'is_content' => true, 'default_value' => 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias provident destiny is about voles.'))); $dt_modules['unique']['donutchart_small'] = array('name' => __('Donut Chart - Small', 'dt_themes'), 'tooltip' => __('Use this module to add small donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); $dt_modules['unique']['donutchart_medium'] = array('name' => __('Donut Chart - Medium', 'dt_themes'), 'tooltip' => __('Use this module to add medium donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); $dt_modules['unique']['donutchart_large'] = array('name' => __('Donut Chart - Large', 'dt_themes'), 'tooltip' => __('Use this module to add large donutchart', 'dt_themes'), 'icon_class' => 'ico-donutchart', 'options' => array('title' => array('title' => __('Title', 'dt_themes'), 'type' => 'text', 'default_value' => 'Lorem'), 'bgcolor' => array('title' => __('Background Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#808080'), 'fgcolor' => array('title' => __('Foreground Color', 'dt_themes'), 'type' => 'colorpicker', 'default_value' => '#4bbcd7'), 'percent' => array('title' => __('Percent', 'dt_themes'), 'type' => 'text', 'default_value' => '40'))); $dt_modules['unique']['post'] = array('name' => __('Single Post', 'dt_themes'), 'tooltip' => __('Use this module to display any single post', 'dt_themes'), 'icon_class' => 'ico-singlepost', 'options' => array('id' => array('title' => __('Post Id', 'dt_themes'), 'type' => 'text', 'default_value' => '1'), 'read_more_text' => array('title' => __('Read More Text', 'dt_themes'), 'type' => 'text', 'default_value' => 'Read More'), 'excerpt_length' => array('title' => __('Excerpt Length', 'dt_themes'), 'type' => 'text', 'default_value' => '10'), 'show_meta' => array('title' => __('Show Meta Data ', 'dt_themes'), 'type' => 'select', 'options' => array("yes" => __("Yes", "dt_themes"), "no" => __("No", "dt_themes")), 'default_value' => array("yes")))); $dt_modules['unique']['recent_post'] = array('name' => __('Recent Posts', 'dt_themes'), 'tooltip' => __('Use this module to display recent posts', 'dt_themes'), 'icon_class' => 'ico-recentposts', 'options' => array('columns' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => $post_columns, 'default_value' => array(3)), 'count' => array('title' => __('Limit', 'dt_themes'), 'type' => 'text', 'default_value' => '3'), 'read_more_text' => array('title' => __('Read More Text', 'dt_themes'), 'type' => 'text', 'default_value' => 'Read More'), 'excerpt_length' => array('title' => __('Excerpt Length', 'dt_themes'), 'type' => 'text', 'default_value' => '10'), 'show_meta' => array('title' => __('Show Meta Data ', 'dt_themes'), 'type' => 'select', 'options' => array("yes" => __("Yes", "dt_themes"), "no" => __("No", "dt_themes")), 'default_value' => array("yes")))); $dt_modules['unique']['gallery_item'] = array('name' => __('Gallery Item', 'dt_themes'), 'tooltip' => __('Use this module to add individual gallery items', 'dt_themes'), 'icon_class' => 'ico-portfolio-item', 'options' => array('id' => array('title' => __('Item Id', 'dt_themes'), 'type' => 'text', 'default_value' => ''))); $dt_modules['unique']['recent_gallery_items'] = array('name' => __('Recent Gallery Items', 'dt_themes'), 'tooltip' => __('Use this module to add recent gallery items', 'dt_themes'), 'icon_class' => 'ico-portfolio-item', 'options' => array('columns' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => $portfolio_columns, 'default_value' => array(3)), 'space' => array('title' => __('Allow Space', 'dt_themes'), 'type' => 'select', 'options' => array("yes" => __("Yes", "dt_themes"), "no" => __("No", "dt_themes")), 'default_value' => array("yes")), 'count' => array('title' => 'Count', 'type' => 'text', 'default_value' => ''))); $dt_modules['unique']['gallery_items_from_category'] = array('name' => __('Gallery Items From Category', 'dt_themes'), 'tooltip' => __('Use this module to add gallery items from category', 'dt_themes'), 'icon_class' => 'ico-portfolio-item', 'options' => array('category_id' => array('title' => __('Category Id(s)', 'dt_themes'), 'type' => 'text', 'default_value' => ''), 'column' => array('title' => __('Columns', 'dt_themes'), 'type' => 'select', 'options' => $portfolio_columns, 'default_value' => array(3)), 'space' => array('title' => __('Allow Space', 'dt_themes'), 'type' => 'select', 'options' => array("yes" => __("Yes", "dt_themes"), "no" => __("No", "dt_themes")), 'default_value' => array("yes")), 'count' => array('title' => 'Count', 'type' => 'text', 'default_value' => ''))); /*$dt_modules['unique']['icon_box_colored'] = array( 'name' => __('Icon Box Colored', 'dt_themes'), 'tooltip' => 'Add the colored icon box', 'icon_class' => 'ico-iconbox-colored',