Example #1
0
?>
</textarea>
                                <p class="note"> <?php 
_e('You can paste your support text in this box. This will be automatically added to the support section.', 'dt_rise');
?>
 </p>
                            </div>
                         </div>  
                         <div class="column one-half last">
                         	<div class="bpanel-option-set">
                                <h6><?php 
_e('Support Link', 'dt_rise');
?>
</h6>
                                <input type="text" id="mytheme-support-link" name="mytheme[general][support-link]" value="<?php 
echo dtthemes_mytheme_option('general', 'support-link');
?>
" />
                                <p class="note"> <?php 
_e('You can paste your support link in this box. This will be automatically added to the support button.', 'dt_rise');
?>
 </p>
                            </div>
                         </div>
                    </div>                    
                </div><!-- .box-content -->  
            </div><!-- .bpanel-box end -->            
            
            
        </div><!--#my-footer end-->
        
Example #2
0
/**
 * dtthemes_mytheme_social_bookmarks()
 * Objective:
 * To show social shares
 */
function dtthemes_mytheme_social_bookmarks($arg = 'sb-post')
{
    global $post;
    $title = $post->post_title;
    $url = get_permalink($post->ID);
    $excerpt = $post->post_excerpt;
    $data = "";
    $path = IAMD_BASE_URL . "images/sociable/share";
    $fb = dtthemes_mytheme_option('integration', "{$arg}-fb_like");
    $data .= !empty($fb) ? "<li><a href='http://www.facebook.com/sharer.php?u={$url}&amp;t=" . urlencode($title) . "'>\n\n\t<img src='{$path}/facebook.png' /></a></li>" : "";
    $delicious = dtthemes_mytheme_option('integration', "{$arg}-delicious");
    $data .= !empty($delicious) ? "<li><a href='http://del.icio.us/post?url={$url}&amp;title=" . urlencode($title) . "'>\n\n\t<img src='{$path}/delicious.png' /></a></li>" : "";
    $digg = dtthemes_mytheme_option('integration', "{$arg}-digg");
    $data .= !empty($digg) ? "<li><a href='http://digg.com/submit?phase=2&amp;url={$url}&amp;title=" . urlencode($title) . "'>\n\n\t<img src='{$path}/digg.png' /></a></li>" : "";
    $stumbleupon = dtthemes_mytheme_option('integration', "{$arg}-stumbleupon");
    $data .= !empty($stumbleupon) ? "<li><a href='http://www.stumbleupon.com/submit?url={$url}&amp;title=" . urlencode($title) . "'>\n\n\t<img src='{$path}/stumbleupon.png' /></a></li>" : "";
    $twitter = dtthemes_mytheme_option('integration', "{$arg}-twitter");
    $t_url = !empty($twitter) ? $url : '';
    $data .= !empty($twitter) ? "<li><a href='http://twitter.com/home/?status=" . urlencode($title) . ":{$t_url}'>\n\n\t<img src='{$path}/twitter.png' /></a></li>" : "";
    $googleplus = dtthemes_mytheme_option('integration', "{$arg}-googleplus");
    $data .= !empty($googleplus) ? "<li><a class=\"google\" href=\"https://plus.google.com/share?url={$url}\"  onclick=\"javascript:window.open(this.href,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\" >\n\n\t<img src='{$path}/google.png' /></a></li>" : '';
    $linkedin = dtthemes_mytheme_option('integration', "{$arg}-linkedin");
    $data .= !empty($linkedin) ? "<li><a href='http://www.linkedin.com/shareArticle?mini=true&amp;title=" . urlencode($title) . "&amp;url={$url}' title='Share on LinkedIn'>\n\n\t<img src='{$path}/linkedin.png' /></a></li>" : "";
    $pintrest = dtthemes_mytheme_option('integration', "{$arg}-pintrest");
    $media = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
    $data .= !empty($pintrest) ? "<li><a href='http://pinterest.com/pin/create/button/?url=" . urlencode($url) . "&amp;media={$media}'>\n\n\t<img src='{$path}/pinterest.png' /></a></li>" : "";
    $data = !empty($data) ? "<ul class='social-share-icons'>{$data}</ul>" : "";
    echo $data;
}
    function my_breadcrumb()
    {
        $delimiter = ' class = ' . dtthemes_mytheme_option('general', 'breadcrumb-delimiter');
        $this->options = array('before' => "<span {$delimiter} > ", 'after' => ' </span>');
        $markup = $this->options['before'] . $this->options['after'];
        global $post;
        echo '<div class="container">

				<div class="breadcrumb">

					<a href="' . home_url() . '">' . __('Home', 'dt_rise') . '</a>';
        if (!is_front_page() && !is_home()) {
            echo $markup;
        }
        $output = $this->simple_breadcrumb_case($post);
        if (is_page() || is_single()) {
            echo "<h1>";
            the_title();
            echo "</h1>";
        } else {
            if ($output != NULL) {
                echo "<h1>" . $output . "</h1>";
            } else {
                $title = get_option('page_for_posts') > 0 ? get_the_title(get_option('page_for_posts')) : NULL;
                echo $markup;
                echo "<h1>" . $title . "</h1>";
            }
        }
        echo "</div>\n\n\t\t</div> <!-- ** container - End -->";
    }
function mytheme_backup_and_restore_action()
{
    $save_type = $_POST['type'];
    if ($save_type == 'backup_options') {
        $data = array('home' => dtthemes_mytheme_option('home'), 'general' => dtthemes_mytheme_option('general'), 'social' => dtthemes_mytheme_option('social'), 'appearance' => dtthemes_mytheme_option('appearance'), 'integration' => dtthemes_mytheme_option('integration'), 'seo' => dtthemes_mytheme_option('seo'), 'specialty' => dtthemes_mytheme_option('specialty'), 'widgetarea' => dtthemes_mytheme_option("widgetarea"), 'mobile' => dtthemes_mytheme_option('mobile'), 'advance' => dtthemes_mytheme_option('advance'), 'backup' => date('r'));
        update_option("mytheme_backup", $data);
        die('1');
    } elseif ($save_type == 'restore_options') {
        $data = get_option("mytheme_backup");
        update_option(IAMD_THEME_SETTINGS, $data);
        die('1');
    } elseif ($save_type == "import_options") {
        $data = $_POST['data'];
        $data = unserialize(base64_decode($data));
        //100% safe - ignore theme check nag
        update_option(IAMD_THEME_SETTINGS, $data);
        die('1');
    } elseif ($save_type == "reset_options") {
        delete_option(IAMD_THEME_SETTINGS);
        update_option(IAMD_THEME_SETTINGS, dtthemes_mytheme_default_option());
        # To set Default options
        die('1');
    }
}
Example #5
0
    ?>
">
               	 		<div class="bpanel-option-set">
                        	<label>
                            	<input id="mytheme[seo][<?php 
    echo $option['id'];
    ?>
]" type="checkbox" name="mytheme[seo][<?php 
    echo $option['id'];
    ?>
]" 
                                	value="<?php 
    echo $option['id'];
    ?>
" <?php 
    checked($option['id'], dtthemes_mytheme_option('seo', $option['id']));
    ?>
 /> <?php 
    echo $option['label'];
    ?>
                            </label>
                            <p class="note"><?php 
    echo $option["tooltip"];
    ?>
 </p>
                        </div>
                    </div>
		 <?php 
}
?>
                </div>
Example #6
0
<?php

/*
Template Name: Blog Template
*/
get_header();
?>
<section id="blog" class="content inner-page">
    <?php 
if (dtthemes_mytheme_option('general', 'disable-breadcrumb') != 'on') {
    ?>
    <div class="main-title">
        <div class="container">
            <h2><?php 
    _e('Blog', 'dt_rise');
    ?>
</h2>
        </div>
    </div>
    <?php 
} else {
    ?>
        <div class="margin65"> </div>
    <?php 
}
?>
    <div class="content-main">
    	<div class="blog-container">
        	<div class="left-shadow"></div>
            <div class="container">
                <?php 
Example #7
0
/** mytheme_options_page()
  * Objective:
  *		To create thme option page at back end.
**/
function mytheme_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 = dtthemes_mytheme_option('advance');
    if (isset($advance['buddhapanel-logo-url']) && isset($advance['enable-buddhapanel-logo-url'])) {
        $logo = $advance['buddhapanel-logo-url'];
    }
    ?>
                        <img src="<?php 
    echo $logo;
    ?>
" width="186" height="101" alt="" title="" /> </div>                        
                        <?php 
    $status = dtthemes_mytheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php') || dtthemes_mytheme_is_plugin_active('wordpress-seo/wp-seo.php');
    $tabs = NULL;
    if (!$status) {
        $tabs = array(array('id' => 'general', 'name' => __('General', 'dt_rise')), array('id' => 'appearance', 'name' => __('Appearance', 'dt_rise')), array('id' => 'skin', 'name' => __('Skins', 'dt_rise')), array('id' => 'integration', 'name' => __('Integration', 'dt_rise')), array('id' => 'seo', 'name' => __('SEO', 'dt_rise')), array('id' => 'specialty-pages', 'name' => __('Speciality Pages', 'dt_rise')), array('id' => 'theme-footer', 'name' => __('Footer', 'dt_rise')), array('id' => 'widgetarea', 'name' => __('Widget Area', 'dt_rise')), array('id' => 'mobile', 'name' => __('Responsive &amp; Mobile', 'dt_rise')), array('id' => 'branding', 'name' => __('Branding', 'dt_rise')), array('id' => 'backup', 'name' => __('Backup', 'dt_rise')));
    } else {
        $tabs = array(array('id' => 'general', 'name' => __('General', 'dt_rise')), array('id' => 'appearance', 'name' => __('Appearance', 'dt_rise')), array('id' => 'skin', 'name' => __('Skins', 'dt_rise')), array('id' => 'integration', 'name' => __('Integration', 'dt_rise')), array('id' => 'specialty-pages', 'name' => __('Speciality Pages', 'dt_rise')), array('id' => 'theme-footer', 'name' => __('Footer', 'dt_rise')), array('id' => 'widgetarea', 'name' => __('Widget Area', 'dt_rise')), array('id' => 'mobile', 'name' => __('Responsive &amp; Mobile', 'dt_rise')), array('id' => 'branding', 'name' => __('Branding', 'dt_rise')), array('id' => 'backup', 'name' => __('Backup', 'dt_rise')));
    }
    $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";
    }
    $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 = dtthemes_mytheme_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_rise');
    ?>
</a>
                        </div>
                        
                    	<?php 
    require_once TEMPLATEPATH . '/framework/theme_options/general.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/appearance.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/integration.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/specialty-pages.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/footer.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/widgetarea.php';
    ?>
						<?php 
    require_once TEMPLATEPATH . '/framework/theme_options/responsive.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/branding.php';
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/skins.php';
    if (!$status) {
        require_once TEMPLATEPATH . '/framework/theme_options/seo.php';
    }
    ?>
                        <?php 
    require_once TEMPLATEPATH . '/framework/theme_options/backup.php';
    ?>
						<!-- #bpanel-bottom -->
                        <div id="bpanel-bottom">
                           <input type="submit" value="<?php 
    _e('Reset All', 'dt_rise');
    ?>
" class="save-reset mytheme-reset-button bpanel-button white-btn" name="mytheme[reset]" />
						   <input type="submit" value="<?php 
    _e('Save All', 'dt_rise');
    ?>
" 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 
}
Example #8
0
                <h2><?php 
_e('404 - Not Found', 'dt_rise');
?>
</h2>
            </div>
        </div>
        <div class="content-main">                
            <div class="container">
                <!-- **Primary** -->
                <div id="primary" class="<?php 
echo $page_layout;
?>
">
					<div class="error-info">
                    	<?php 
echo stripcslashes(dtthemes_mytheme_option('specialty', '404-message'));
?>
	                    <?php 
get_search_form();
?>
                    </div>
                </div><!-- **Primary** -->
                
				<?php 
if ($show_sidebar) {
    ?>
                    <!-- **Secondary** -->  
                    <div id="secondary"><?php 
    get_sidebar();
    ?>
</div>
Example #9
0
 function widget($args, $instance)
 {
     extract($args);
     echo $before_widget;
     $title = empty($instance['title']) ? '' : strip_tags($instance['title']);
     $title = apply_filters('widget_title', $title);
     $desc = empty($instance['desc']) ? '' : strip_tags($instance['desc']);
     $desc = apply_filters('widget_title', $desc);
     $list_id = $instance['list_id'];
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     if (!empty($desc)) {
         echo "<p>{$desc}</p>";
     }
     if (isset($_REQUEST['mythem_mc_emailid'])) {
         require_once IAMD_FW . "theme_widgets/mailchimp/MCAPI.class.php";
         $mcapi = new MCAPI(dtthemes_mytheme_option('general', 'mailchimp-key'));
         $merge_vars = array('EMAIL' => $_REQUEST['mythem_mc_emailid']);
         $list_id = $instance['list_id'];
         if ($mcapi->listSubscribe($list_id, $_REQUEST['mythem_mc_emailid'], $merge_vars)) {
             // It worked!
             $msg = '<span style="color:green;">' . __('Success!&nbsp; Check your inbox or spam folder for a message containing a confirmation link.', 'dt_rise') . '</span>';
         } else {
             // An error ocurred, return error message
             $msg = '<span style="color:red;"><b>' . __('Error:', 'dt_rise') . '</b>&nbsp; ' . $mcapi->errorMessage . '</span>';
         }
     }
     echo '<form method="post" class="mailchimp-form">';
     echo '	<input type="email" placeholder="' . __('Enter Email Address', 'dt_rise') . '" name="mythem_mc_emailid" value="" required/>';
     echo "\t<input type='hidden' name='mythem_mc_listid' value='{$list_id}' />";
     echo '	<input type="submit" name="submit" class="button" value="subscribe" />';
     echo '</form>';
     if (isset($msg)) {
         echo '<span class="zn_mailchimp_result">' . $msg . '</span>';
     }
     echo $after_widget;
 }
Example #10
0
	<!-- wrapper div Starts here -->

	<div class="wrapper">

    	<!-- header div Starts here -->

    	<header id="header">
        <div class="header-links mobileHide"><h1><a href="http://www.drcolbert.com" target="_blank">Divine Health, Dr. Don Colbert, MD</a> | <a href="http://www.divinehelathwellness.com" target="_blank">Divine Health Wellness</a> | <a href="http://www.divinehealthdetox.com" target="_blank">21 Day Detox</a></h1></div>

        	<div class="container">

            	<div id="logo">

					<?php 
$logotitle = dtthemes_mytheme_option('general', 'logo-title');
$url = dtthemes_mytheme_option('general', 'logo-url');
if ($logotitle == 'logo-title' && !empty($url)) {
    ?>

						<a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo dtthemes_mytheme_blog_title();
    ?>
">

							<img src="<?php 
    echo $url;
    ?>
" alt="<?php 
Example #11
0
<?php

get_header();
$page_layout = dtthemes_mytheme_option('specialty', 'search-layout');
$page_layout = !empty($page_layout) ? $page_layout : "content-full-width";
$post_layout = dtthemes_mytheme_option('specialty', 'search-post-layout');
$post_layout = !empty($post_layout) ? $post_layout : "with-left-sidebar";
$show_sidebar = false;
$firstcnt = 0;
if ($post_layout == "one-column") {
    $post_class = "dt-sc-full-width";
    $carousel_id = "one";
    $firstcnt = 1;
} elseif ($post_layout == "one-half-column") {
    $post_class = "dt-sc-one-half";
    $carousel_id = "two";
    $firstcnt = 2;
} elseif ($post_layout == "one-third-column") {
    $post_class = "dt-sc-one-third";
    $carousel_id = "three";
    $firstcnt = 3;
}
$sidebar_class = "";
switch ($page_layout) {
    case 'content-full-width':
        $page_class = "content-full-width";
        $show_sidebar = false;
        break;
    case 'with-left-sidebar':
        $page_class = "with-left-sidebar with-sidebar";
        $show_sidebar = true;
Example #12
0
 /**
  *
  * @param array $attrs        	
  * @param string $content        	
  * @return string
  */
 function dt_sc_newsletter($attrs, $content = null)
 {
     extract(shortcode_atts(array('animation' => 'fadeInUp', 'listid' => '', 'title' => '', 'parallax' => ''), $attrs));
     if ($parallax == true) {
         $parallax = '';
     } else {
         $parallax = 'style="color:#000;"';
     }
     $content = DTCoreShortcodesDefination::dtShortcodeHelper($content);
     $out = "<div class='dt-sc-newsletter-container' {$parallax}><h2>{$title}</h2>" . do_shortcode("[dt_sc_one_half animation='{$animation}' first]" . $content . "[/dt_sc_one_half]") . do_shortcode("[dt_sc_one_half animation='{$animation}']\n\t\t\t\t <form name='frmnewsletter' class='dt-sc-newsletter-form' action='" . get_template_directory_uri() . "/php/subscribe.php' method='post'>\n                                        <input type='email' placeholder='Email Address' name='mc_email' required>\n                                        <input type='submit' value='subscribe' class='button' name='btnsubscribe'>\n\t\t\t\t\t\t\t\t\t\t<input type='hidden' name='hid_apikey' value='" . dtthemes_mytheme_option('general', 'mailchimp-key') . "'>\n\t\t\t\t\t\t\t\t\t\t<input type='hidden' name='hid_listid' value='" . $listid . "'>\n                                    </form>\n\t\t\t\t\t\t\t\t\n                                    <div id='ajax_subscribe_msg'></div>\n\t\t\t\t[/dt_sc_one_half]") . "</div>";
     return $out;
 }
Example #13
0
" class="black mytheme_add_item" />
                         
                         <div class="column four-fifth last">
                             <p class="note"> <?php 
_e('Manage Social Network icons list to display', 'dt_rise');
?>
 </p>
                         </div>
                         
                         <div class="hr_invisible"></div>
                    </div>
                    
                    <div class="bpanel-option-set">
                        <ul class="menu-to-edit">
                        <?php 
$socials = dtthemes_mytheme_option('social');
if (is_array($socials)) {
    $keys = array_keys($socials);
    $i = 0;
    foreach ($socials as $s) {
        ?>
                              <li id="<?php 
        echo $keys[$i];
        ?>
">
                                <div class="item-bar">
                                    <span class="item-title"><?php 
        $n = $s['icon'];
        $n = explode('.', $n);
        $n = ucwords($n[count($n) - 2]);
        echo $n;
/**
 * dtthemes_mytheme_bgtypes()
 * Objective:
 * Outputs the <select></select> control at the backend.
 */
function dtthemes_mytheme_bgtypes($name, $parent, $child)
{
    $args = array("bg-patterns" => __("Pattern", 'dt_rise'), "bg-custom" => __("Custom Background", 'dt_rise'), "bg-none" => __("None", 'dt_rise'));
    $out = '<div class="bpanel-option-set">';
    $out .= "<label>" . __("Background Type", 'dt_rise') . "</label>";
    $out .= "<div class='clear'></div>";
    $out .= "<select class='bg-type' name='{$name}'>";
    foreach ($args as $k => $v) {
        $rs = selected($k, dtthemes_mytheme_option($parent, $child), false);
        $out .= "<option value='{$k}' {$rs}>{$v}</option>";
    }
    $out .= "</select>";
    $out .= '</div>';
    echo $out;
}
Example #15
0
                </div>
                

                <div class="box-title"><h3><?php 
_e('Transfer Theme Options Data', 'dt_rise');
?>
</h3></div>
                <div class="box-content">
                	<div><?php 
_e("You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click 'Import Options'", 'dt_rise');
?>
</div>
                    <div class="clar"></div>
                    <div class="hr_invisible"></div>
                	<?php 
$data = array('home' => dtthemes_mytheme_option('home'), 'general' => dtthemes_mytheme_option('general'), 'social' => dtthemes_mytheme_option('social'), 'appearance' => dtthemes_mytheme_option('appearance'), 'integration' => dtthemes_mytheme_option('integration'), 'seo' => dtthemes_mytheme_option('seo'), 'specialty' => dtthemes_mytheme_option('specialty'), 'widgetarea' => dtthemes_mytheme_option("widgetarea"), 'mobile' => dtthemes_mytheme_option('mobile'), 'advance' => dtthemes_mytheme_option('advance'));
?>
                	<textarea id="export_data" rows="13" cols="15"><?php 
echo base64_encode(serialize($data));
?>
</textarea>
                    <div class="clear"></div>
                    <div class="hr_invisible"></div>
                    <a href="#" id="mytheme_import_button" class="bpanel-button black-btn" title="Restore Options"><?php 
_e('Import Options', 'dt_rise');
?>
</a>
                </div>
                
            
            </div>
Example #16
0
                        <div class="image-preview-container">
                            <input id="mytheme-buddhapanellogo" name="mytheme[advance][buddhapanel-logo-url]" type="text" class="uploadfield medium" readonly="readonly"
                                value="<?php 
echo dtthemes_mytheme_option('advance', 'buddhapanel-logo-url');
?>
" />
                            <input type="button" value="<?php 
_e('Upload', 'dt_rise');
?>
" class="upload_image_button show_preview" />
                            <input type="button" value="<?php 
_e('Remove', 'dt_rise');
?>
" class="upload_image_reset" />
                            <?php 
dtthemes_mytheme_adminpanel_image_preview(dtthemes_mytheme_option('advance', 'buddhapanel-logo-url'), true, 'logo.png');
?>
                        </div>
                    </div>
                    <p class="note"> <?php 
_e('Upload an image to replace the default buddha panel logo.<b><i>You can set your own brnad</i></b>. ', 'dt_rise');
?>
 </p>
                    
                </div><!-- Buddha Panel logo -->
                
                
            </div> <!-- .bpanel-box ends here -->
        </div><!-- #my-admin ends here -->
     </div><!-- .bpanel-main-content ends here-->   
</div><!-- #advance ends here -->
Example #17
0
                <div class="footer-links mobileHide"><h1><a href="http://www.drcolbert.com" target="_blank">Divine Health, Dr. Don Colbert, MD</a> | <a href="http://www.divinehelathwellness.com" target="_blank">Divine Health Wellness</a> | <a href="http://www.divinehealthdetox.com" target="_blank">21 Day Detox</a></h1></div>

            </footer>

            <!-- footer div Ends here -->

            <?php 
}
?>

        </div>

        <!-- main div Ends here -->

    </div>

    <!-- wrapper div Ends here -->

    

<?php 
if (dtthemes_mytheme_option('integration', 'enable-body-code') != '') {
    echo stripslashes(dtthemes_mytheme_option('integration', 'body-code'));
}
wp_footer();
?>
 

</body>

</html>
Example #18
0
                         <div class="hr_invisible"> </div>
                         <div class="column one-half last">
							<?php 
    $label = "H{$i} " . __("Font Color", 'dt_rise');
    $name = "mytheme[appearance][H{$i}-font-color]";
    $value = dtthemes_mytheme_option('appearance', "H{$i}-font-color") != NULL ? dtthemes_mytheme_option('appearance', "H{$i}-font-color") : "#";
    ?>
								  <h6><?php 
    echo $label;
    ?>
</h6>	
                                  <?php 
    dtthemes_mytheme_admin_color_picker("", $name, $value);
    ?>
                    
                         </div>
                         <div class="column one-half last">
						 	<?php 
    dtthemes_mytheme_admin_jqueryuislider("H{$i} " . __('Font Size', 'dt_rise'), "mytheme[appearance][H{$i}-size]", dtthemes_mytheme_option('appearance', "H{$i}-size"));
    ?>
                    	 </div>     
                    </div>
                <?php 
}
?>
            </div><!-- .bpanel-box end -->
        </div><!-- Typography Section -->
        
    </div><!-- .bpanel-main-content end -->
</div><!-- #appearance  end-->
<?php

get_header();
$page_layout = dtthemes_mytheme_option('specialty', 'archives-layout');
$page_layout = !empty($page_layout) ? $page_layout : "content-full-width";
$post_layout = dtthemes_mytheme_option('specialty', 'archives-post-layout');
$post_layout = !empty($post_layout) ? $post_layout : "with-left-sidebar";
$show_sidebar = false;
$firstcnt = 0;
$post_class = "";
$page_class = "";
if ($post_layout == "one-column") {
    $post_class = "dt-sc-full-width";
    $firstcnt = 1;
} elseif ($post_layout == "one-half-column") {
    $post_class = "dt-sc-one-half";
    $firstcnt = 2;
} elseif ($post_layout == "one-third-column") {
    $post_class = "dt-sc-one-third";
    $firstcnt = 3;
}
$sidebar_class = "";
switch ($page_layout) {
    case 'content-full-width':
        $page_class = "content-full-width";
        $show_sidebar = false;
        break;
    case 'with-left-sidebar':
        $page_class = "with-left-sidebar with-sidebar";
        $show_sidebar = true;
        break;
Example #20
0
?>
</p>
        	            </div>
                     </div>

	                <div class="one-half-content last">
    	            	<div class="bpanel-option-set">
	                      <h6><?php 
_e('Disable Slider for Mobile Devices', 'dt_rise');
?>
</h6>
                          <?php 
$checked = "true" == dtthemes_mytheme_option('mobile', 'is-slider-disabled') ? ' checked="checked"' : '';
?>
                          <?php 
$switchclass = "true" == dtthemes_mytheme_option('mobile', 'is-slider-disabled') ? 'checkbox-switch-on' : 'checkbox-switch-off';
?>
                          <div data-for="is-slider-disabled" class="checkbox-switch <?php 
echo $switchclass;
?>
"></div>
                          <input class="hidden" id="is-slider-disabled" name="mytheme[mobile][is-slider-disabled]" type="checkbox" value="true" <?php 
echo $checked;
?>
 />
                          <p class="note"><?php 
_e('Choose whether you wish to hide / display the slider area of your website on mobile devices', 'dt_rise');
?>
</p>
        	            </div>
                    </div>
    echo $switchclass;
    ?>
"></div>
                                 <input id="<?php 
    echo "sb-portfolio-" . $social_bookmark['id'];
    ?>
" type="checkbox"  value="<?php 
    echo $social_bookmark['id'];
    ?>
" 
                                    name="mytheme[integration][<?php 
    echo "sb-portfolio-" . $social_bookmark['id'];
    ?>
]" 
                                    <?php 
    checked($social_bookmark['id'], dtthemes_mytheme_option('integration', "sb-portfolio-" . $social_bookmark['id']));
    ?>
                                    class="hidden"/>
                                </div>
                            </div>
                    <?php 
    $count++;
}
?>
  
                </div>
            </div><!-- Social Bookmark module end-->
        </div>
        
   </div><!-- .bpanel-main-content end-->
</div><!-- #integration end-->
    $title = get_the_category_by_ID($cat_id);
    register_sidebar(array('name' => "Category: {$title}", 'id' => "category-{$cat_id}-sidebar", 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '<span></span></h3>'));
}
if (class_exists('woocommerce')) {
    #Custom Sidebars for Product
    $products = dtthemes_mytheme_option("widgetarea", "products");
    $products = !empty($products) ? $products : array();
    $widget_areas_for_products = array_filter(array_unique($products));
    foreach ($widget_areas_for_products as $id) {
        $title = get_the_title($id);
        register_sidebar(array('name' => "Product: {$title}", 'id' => "product-{$id}-sidebar", 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '<span></span></h3>'));
    }
    #Custom Sidebars for Product Category
    $product_categories = dtthemes_mytheme_option("widgetarea", "product-category");
    $product_categories = !empty($product_categories) ? $product_categories : array();
    $widget_areas_for_product_categories = array_filter(array_unique($product_categories));
    foreach ($widget_areas_for_product_categories as $id) {
        $title = $wpdb->get_var($wpdb->prepare("SELECT name FROM {$wpdb->terms}  WHERE term_id = %s", $id));
        $slug = $wpdb->get_var($wpdb->prepare("SELECT slug FROM {$wpdb->terms}  WHERE term_id = %s", $id));
        register_sidebar(array('name' => "Product Category: {$title}", 'id' => "product-category-{$slug}-sidebar", 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '<span></span></h3>'));
    }
    #Custom Sidebars for Product Tag
    $product_tags = dtthemes_mytheme_option("widgetarea", "product-tag");
    $product_tags = !empty($product_tags) ? $product_tags : array();
    $widget_areas_for_product_tags = array_filter(array_unique($product_tags));
    foreach ($widget_areas_for_product_tags as $id) {
        $title = $wpdb->get_var($wpdb->prepare("SELECT name FROM {$wpdb->terms}  WHERE term_id = %s", $id));
        $slug = $wpdb->get_var($wpdb->prepare("SELECT slug FROM {$wpdb->terms}  WHERE term_id = %s", $id));
        register_sidebar(array('name' => "Product Tag: {$title}", 'id' => "product-tag-{$slug}-sidebar", 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '<span></span></h3>'));
    }
}
                                <?php 
dtthemes_mytheme_social_bookmarks('sb-post');
?>
                             </div>						
                             <?php 
edit_post_link(__(' Edit ', 'dt_rise'));
?>
                        </div>
                        <div class="hr"> </div>
                    </div>
                    
                    <div class="clear"> </div>
                    
                     <!-- **Comment Entries** -->   
                      <?php 
if (!dtthemes_mytheme_option('general', 'global-post-comment') && !isset($tpl_default_settings['disable-comment'])) {
    ?>
                            <?php 
    comments_template();
    ?>
                        <?php 
}
?>
	
                    <!-- **Comment Entries - End** -->  
            
                </div>      
            </div>                              
                
			<?php 
#Page Top Code Section
        $name = "mytheme[specialty][message-font-color]";
        $value = dtthemes_mytheme_option('specialty', 'message-font-color') != NULL ? dtthemes_mytheme_option('specialty', 'message-font-color') : "#";
        $tooltip = __("Pick a custom color for 404 message font color of the theme e.g. #a314a3", 'dt_rise');
        ?>
									  <h6> <?php 
        echo $label;
        ?>
 </h6>
                                  <?php 
        dtthemes_mytheme_admin_color_picker("", $name, $value, '');
        ?>
                            
                            </div><!-- Font Color Section -->
                            <div class="column one-half last">
								<?php 
        dtthemes_mytheme_admin_jqueryuislider(__('Message Font Size', 'dt_rise'), "mytheme[specialty][message-font-size]", dtthemes_mytheme_option('specialty', "message-font-size"));
        ?>
                            </div>
                            
                        </div>
                    <?php 
    }
    ?>
                    <!-- 404 Content End-->

                 </div><!-- .bpanel-box end -->
            </div><!-- .tab-content end -->
        <?php 
}
?>
    </div>
        if (isset($portfolio_settings['show-social-share'])) {
            echo '<div class="social-share">';
            dtthemes_mytheme_social_bookmarks('sb-portfolio');
            echo '</div>';
        }
        ?>
                    </div>
                    
                    <?php 
    }
}
?>
                    
                </div>  <!-- Portfolio Single Entry End --> 
                     <?php 
if (!dtthemes_mytheme_option('general', 'disable-portfolio-comment')) {
    comments_template();
}
?>
             
                                     
            </div>
        
			<?php 
if (array_key_exists("show-related-items", $portfolio_settings)) {
    ?>
                    <div class="dt-sc-hr"> </div>
                    
                    <h3><?php 
    _e('Related Projects', 'dt_themes');
    ?>
Example #26
0
</a></li>
			<?php 
}
?>
        </ul>

        <!--Skins Section -->
        <div id="appearance-skins" class="tab-content">
	        <div class="bpanel-box">
                <div class="box-title"><h3><?php 
_e('Current Skin', 'dt_rise');
?>
</h3></div>
                <div class="box-content">
	                <?php 
$theme = dtthemes_mytheme_option('appearance', 'skin');
?>
                	 <ul id="j-current-theme-container" class="skins-list" dummy-content="<?php 
echo $theme . '-dummy';
?>
">
                     	 <li data-attachment-theme="<?php 
echo $theme;
?>
">
                            <img src="<?php 
echo IAMD_BASE_URL . "skins/{$theme}/screenshot.png";
?>
" alt='' width='250' height='180' />
                            <input type="hidden" name="mytheme[appearance][skin]" value="<?php 
echo $theme;
Example #27
0
        	<div class="bpanel-box">
            	<div class="box-title">
	                <h3><?php 
    _e('Add new widget area for product', 'dt_rise');
    ?>
</h3>
                </div>
                <!-- .box-content -->
                <div class="box-content">
                	<p class="note"><?php 
    _e("Select a PRODUCT that should receive a new widget area:", 'dt_rise');
    ?>
</p>
                    <?php 
    if (is_array(dtthemes_mytheme_option("widgetarea", "product-tag"))) {
        $products = array_unique(dtthemes_mytheme_option("widgetarea", "product-tag"));
        foreach ($products as $product) {
            echo "<!-- Product Drop Down Container -->";
            echo "<div class='multidropdown'>";
            echo dtthemes_mytheme_product_taxonomy_list("widgetarea,product-tag", $product, "multidropdown", "product_tag");
            echo "</div><!-- Product Drop Down Container end-->";
        }
    } else {
        echo "<!-- Product Drop Down Container -->";
        echo "<div class='multidropdown'>";
        echo dtthemes_mytheme_product_taxonomy_list("widgetarea,product-tag", "", "multidropdown", "product_tag");
        echo "</div><!-- Product Drop Down Container end-->";
    }
    ?>
                </div><!-- .box-content End-->
            </div><!-- .bpanel-box -->