当前位置: 首页>>代码示例>>PHP>>正文


PHP dttheme_is_plugin_active函数代码示例

本文整理汇总了PHP中dttheme_is_plugin_active函数的典型用法代码示例。如果您正苦于以下问题:PHP dttheme_is_plugin_active函数的具体用法?PHP dttheme_is_plugin_active怎么用?PHP dttheme_is_plugin_active使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了dttheme_is_plugin_active函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dt_custom_registration_form

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 
}
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:43,代码来源:functions.php

示例2:

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';
}
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:31,代码来源:include.php

示例3: dt_like_plugin_hook

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", "%");
    }
}
开发者ID:enlacee,项目名称:anb.platicom.com.pe,代码行数:8,代码来源:utils.php

示例4: dt_sc_subscribed_courses

 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;
 }
开发者ID:enlacee,项目名称:anb.platicom.com.pe,代码行数:33,代码来源:shortcodes.php

示例5: _e

    ?>
                                <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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $current_user->display_name . ' | </span>' . '</a></li>';
    } else {
        echo '<li><a href="#">' . get_avatar($current_user->ID, 30) . '<span>' . __('Welcome, ', 'dt_themes') . '&nbsp;' . $current_user->display_name . ' | </span>' . '</a></li>';
    }
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:31,代码来源:header2.php

示例6: wp_get_attachment_image_src

												$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;?>
开发者ID:namnguyen2312,项目名称:spa,代码行数:31,代码来源:taxonomy-dt_gallery_entries.php

示例7: _e

<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');
    ?>
开发者ID:enlacee,项目名称:anb.platicom.com.pe,代码行数:31,代码来源:buddypress.php

示例8: dttheme_seo_meta

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) {
//.........这里部分代码省略.........
开发者ID:namnguyen2312,项目名称:spa,代码行数:101,代码来源:register_public.php

示例9: _e

    <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 );
开发者ID:namnguyen2312,项目名称:spa,代码行数:31,代码来源:pagebuilder.php

示例10: dttheme_is_plugin_active

<?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 
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:31,代码来源:seo_metabox.php

示例11: dttheme_options_page

/** 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 &amp; 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 &amp; 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');
//.........这里部分代码省略.........
开发者ID:namnguyen2312,项目名称:spa,代码行数:101,代码来源:settings.php

示例12: array

									<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=""]
开发者ID:enlacee,项目名称:anb.platicom.com.pe,代码行数:31,代码来源:modules.php

示例13: dt_sc_gallery_item

 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;
 }
开发者ID:namnguyen2312,项目名称:spa,代码行数:76,代码来源:shortcodes.php

示例14: _e

						<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>
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:31,代码来源:tpl-login.php

示例15: register_sidebar

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>'));
    }
开发者ID:namnguyen2312,项目名称:spa,代码行数:31,代码来源:register_widget_areas.php


注:本文中的dttheme_is_plugin_active函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。