예제 #1
0
 function dt_service_pack($attrs, $content = null, $shortcodename = "")
 {
     extract(shortcode_atts(array('title1' => '', 'title2' => ''), $attrs));
     $out = "";
     $content = DTCoreShortcodesDefination::dtShortcodeHelper($content);
     $out .= '<div class="dt-sc-service-pack">';
     $out .= "<h3 class='section-title3'>{$title1}<br><span>{$title2}</span></h3>";
     $out .= $content;
     $out .= '</div>';
     return $out;
 }
예제 #2
0
    function dt_sc_certificate_template($attrs, $content = null)
    {
        extract(shortcode_atts(array('type' => 'type1', 'certificate_title' => '', 'certificate_subtitle' => '', 'certificate_bg_image' => '', 'logo_topleft' => '', 'logo_topright' => '', 'logo_bottomcenter' => '', 'authority_sign' => '', 'authority_sign_name' => '', 'show_certificate_issueddate' => 'yes'), $attrs));
        $content = do_shortcode(DTCoreShortcodesDefination::dtShortcodeHelper($content));
        $out = '';
        $cert_bg = '';
        if ($certificate_bg_image != '') {
            $cert_bg = 'style="background:url(' . $certificate_bg_image . ') center center no-repeat"';
        }
        if ($type == 'type1') {
            $out .= '<div class="dt-sc-course-certificate-wrapper">
						<div class="dt-sc-course-certificate" ' . $cert_bg . '>                        
							
							<div class="dt-sc-cert-header">';
            if ($logo_topleft != '') {
                $out .= '<img src="' . $logo_topleft . '" alt="' . __('Certificate Logo Left', 'dt_themes') . '" title="' . __('Certificate Logo Left', 'dt_themes') . '" class="dt-sc-cert-comp-logo">';
            }
            if ($logo_topright != '') {
                $out .= '<img src="' . $logo_topright . '" alt="' . __('Certificate Logo Right', 'dt_themes') . '" title="' . __('Certificate Logo Right', 'dt_themes') . '" class="dt-sc-cert-badge">';
            }
            if ($certificate_title != '') {
                $out .= '<h2> ' . $certificate_title . ' </h2>';
            }
            $out .= '</div>
							
							<div class="dt-sc-cert-content">' . $content . '</div>
							
							<div class="dt-sc-cert-footer">';
            if ($show_certificate_issueddate == 'yes') {
                $out .= '<div class="dt-sc-cert-date">
												<p> <span> ' . do_shortcode('[dt_sc_certificate item="date" /]') . ' </span> <br>' . __('Date', 'dt_themes') . ' </p>
											</div>';
            }
            if ($logo_bottomcenter != '') {
                $out .= '<div class="dt-sc-cert-logo">
												<img src="' . $logo_bottomcenter . '" alt="' . __('Certificate Logo Bottom', 'dt_themes') . '" title="' . __('Certificate Logo Bottom', 'dt_themes') . '">
											</div>';
            }
            $out .= '<div class="dt-sc-cert-sign">';
            if ($authority_sign != '') {
                $out .= '<img src="' . $authority_sign . '" alt=" ' . __('Authorized Signature', 'dt_themes') . '" title="' . __('Authorized Signature', 'dt_themes') . '">';
            }
            if ($authority_sign_name != '') {
                $out .= '<p> ' . __('Authorized Signature - ', 'dt_themes') . $authority_sign_name . ' </p>';
            }
            $out .= '</div>';
            $out .= '</div>
							
						</div>
					</div>';
        } else {
            if ($type == 'type2') {
                $out .= '<div class="dt-sc-course-certificate-wrapper type2">';
                if ($logo_topleft != '') {
                    $out .= '<img src="' . $logo_topleft . '" alt="' . __('Certificate Logo Left', 'dt_themes') . '" title="' . __('Certificate Logo Left', 'dt_themes') . '" class="dt-sc-cert-badge">';
                }
                $out .= '<div class="dt-sc-course-certificate" ' . $cert_bg . '>                        
									<div class="dt-sc-cert-header">';
                if ($certificate_title != '') {
                    $out .= '<h2> ' . $certificate_title . ' </h2>';
                }
                if ($certificate_subtitle != '') {
                    $out .= '<h3> ' . $certificate_subtitle . ' </h3>';
                }
                $out .= '</div>
							
									<div class="dt-sc-cert-content">' . $content . '</div>
							
									<div class="dt-sc-cert-footer">';
                if ($show_certificate_issueddate == 'yes') {
                    $out .= '<div class="dt-sc-cert-date">
														<p> <span> ' . do_shortcode('[dt_sc_certificate item="date" /]') . ' </span> <br>' . __('Date', 'dt_themes') . ' </p>
													</div>';
                }
                $out .= '<div class="dt-sc-cert-sign">';
                if ($authority_sign != '') {
                    $out .= '<img src="' . $authority_sign . '" alt=" ' . __('Authorized Signature', 'dt_themes') . '" title="' . __('Authorized Signature', 'dt_themes') . '">';
                }
                if ($authority_sign_name != '') {
                    $out .= '<p> ' . __('Authorized Signature - ', 'dt_themes') . $authority_sign_name . ' </p>';
                }
                $out .= '</div>
										
									</div>
									
								</div>
								
					</div>';
            } else {
                if ($type == 'type3') {
                    $out .= '<div class="dt-sc-course-certificate-wrapper type3">
                            <div class="dt-sc-course-certificate" ' . $cert_bg . '>                        
                                
                                <div class="dt-sc-cert-header">';
                    if ($certificate_title != '') {
                        $out .= '<h2> ' . $certificate_title . ' </h2>';
                    }
                    if ($certificate_subtitle != '') {
                        $out .= '<h3> ' . $certificate_subtitle . ' </h3>';
                    }
                    $out .= '</div>
                                
                                <div class="dt-sc-cert-content">' . $content . '</div>
                                
								<div class="dt-sc-cert-footer">';
                    if ($show_certificate_issueddate == 'yes') {
                        $out .= '<div class="dt-sc-cert-date">
													<p> <span> ' . do_shortcode('[dt_sc_certificate item="date" /]') . ' </span> <br>' . __('Date', 'dt_themes') . ' </p>
												</div>';
                    }
                    $out .= '<div class="dt-sc-cert-sign">';
                    if ($authority_sign != '') {
                        $out .= '<img src="' . $authority_sign . '" alt=" ' . __('Authorized Signature', 'dt_themes') . '" title="' . __('Authorized Signature', 'dt_themes') . '">';
                    }
                    if ($authority_sign_name != '') {
                        $out .= '<p> ' . __('Authorized Signature - ', 'dt_themes') . $authority_sign_name . ' </p>';
                    }
                    $out .= '</div>
									
								</div>
                                
                            </div>
                        </div>';
                }
            }
        }
        return $out;
    }
<!-- Social Profile -->
<div class="custom-box">
	<div class="column one-sixth">
		<label><?php 
_e('Social Profile', 'dt_themes');
?>
</label>
	</div>

	<div class="column five-sixth last">
			<?php 
$d = array_key_exists("teacher-social", $teacher_settings) ? $teacher_settings['teacher-social'] : array();
$sociables_icons_path = plugin_dir_path(__FILE__);
$x = explode("designthemes-core-features", $sociables_icons_path);
$sociables_icons_path = $x[0] . 'designthemes-core-features/shortcodes/images/sociables';
$sociables = DTCoreShortcodesDefination::dtListImages($sociables_icons_path);
$i = 1;
foreach ($sociables as $k => $sociable) {
    if (!strpos($sociable, '@')) {
        if ($i === 3) {
            $class = "column one-third last";
            $i = 1;
        } else {
            $class = "column one-third";
            $i++;
        }
        $v = array_key_exists($k, $d) ? $d[$k] : "";
        ?>
				<div class="<?php 
        echo $class;
        ?>
예제 #4
0
 function dt_sc_resizable($attrs, $content = null)
 {
     extract(shortcode_atts(array('width' => '', 'class' => '', 'animation' => '', 'animation_delay' => ''), $attrs));
     $danimation = !empty($animation) ? " data-animation='{$animation}' " : "";
     $ddelay = !empty($animation) && !empty($animation_delay) ? " data-delay='{$animation_delay}' " : "";
     $danimate = !empty($animation) ? "animate" : "";
     $style = !empty($width) ? ' style="width:' . $width . '%;" ' : "";
     $first = isset($attrs[0]) && trim($attrs[0] == 'first') ? 'first' : '';
     $content = do_shortcode(DTCoreShortcodesDefination::dtShortcodeHelper($content));
     $out = "<div class='column {$class} {$danimate} {$first}' {$danimation} {$ddelay} {$style}>{$content}</div>";
     return $out;
 }
예제 #5
0
 /**
  *
  * @param array $attrs        	
  * @param string $content        	
  * @return string
  */
 function dt_sc_toggle_framed($attrs, $content = null)
 {
     extract(shortcode_atts(array('title' => ''), $attrs));
     $out = '<div class="dt-sc-toggle-frame">';
     $out .= "\t<h5 class='dt-sc-toggle'><a href='#'>{$title}</a></h5>";
     $out .= '	<div class="dt-sc-toggle-content" style="display: none;">';
     $out .= '		<div class="block">';
     $out .= DTCoreShortcodesDefination::dtShortcodeHelper($content);
     $out .= '		</div>';
     $out .= '	</div>';
     $out .= '</div>';
     return $out;
 }