當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ThemexCore類代碼示例

本文整理匯總了PHP中ThemexCore的典型用法代碼示例。如果您正苦於以下問題:PHP ThemexCore類的具體用法?PHP ThemexCore怎麽用?PHP ThemexCore使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ThemexCore類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: WP_Query

$pause = ThemexCore::getOption('slider_pause', '0');
$speed = ThemexCore::getOption('slider_speed', '1000');
$query = new WP_Query(array('post_type' => 'slide', 'showposts' => -1, 'orderby' => 'menu_order', 'order' => 'ASC'));
if ($query->have_posts()) {
    if ($type == 'boxed') {
        ?>
<div class="row">
	<div class="boxed-slider themex-slider">			
		<ul>
		<?php 
        while ($query->have_posts()) {
            ?>
			<?php 
            $query->the_post();
            $video = ThemexCore::getPostMeta($post->ID, 'slide_video');
            $link = ThemexCore::getPostMeta($post->ID, 'slide_link');
            ?>
			<li>
			<?php 
            if (!empty($video)) {
                ?>
				<div class="embedded-video">
					<?php 
                echo themex_html($video);
                ?>
				</div>
			<?php 
            } else {
                ?>
				<?php 
                if (!empty($link)) {
開發者ID:rinodung,項目名稱:wordpress-demo,代碼行數:31,代碼來源:module-slider.php

示例2: date

    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer')) {
    }
    ?>
					</div>
				<?php 
}
?>
				</div>
			</div>
			<!-- /content -->
			<div class="footer-wrap">
				<footer class="site-footer">
					<div class="row">
						<div class="copyright left">
							<?php 
echo ThemexCore::getOption('copyright', 'Academy Theme &copy; ' . date('Y'));
?>
						</div>
						<nav class="footer-navigation right">
							<?php 
wp_nav_menu(array('theme_location' => 'footer_menu'));
?>
						</nav>
						<!-- /navigation -->				
					</div>			
				</footer>				
			</div>
			<!-- /footer -->			
		</div>
		<!-- /site wrap -->
	<?php 
開發者ID:rinodung,項目名稱:wordpress-demo,代碼行數:31,代碼來源:footer.php

示例3:

		</header>
		<?php 
if (!ThemexCore::checkOption('course_popularity') || !ThemexCore::checkOption('course_rating')) {
    ?>
		<footer class="course-footer clearfix">
			<?php 
    if (!ThemexCore::checkOption('course_popularity')) {
        ?>
			<div class="course-users left">
				<?php 
        echo ThemexCore::getPostMeta($post->ID, 'course_popularity', '0');
        ?>
			</div>
			<?php 
    }
    ?>
			<?php 
    if (!ThemexCore::checkOption('course_rating')) {
        ?>
			<?php 
        get_template_part('module', 'rating');
        ?>
			<?php 
    }
    ?>
		</footer>
		<?php 
}
?>
	</div>
</div>
開發者ID:rinodung,項目名稱:wordpress-demo,代碼行數:31,代碼來源:content-course-grid.php

示例4: getAnswerStatistics

 /**
  * Gets answer statistics
  *
  * @access public
  * @param int $ID
  * @param int $user
  * @return array
  */
 public static function getAnswerStatistics($ID, $user)
 {
     $answers = array();
     $quiz = ThemexCore::getPostRelations(0, $ID, 'quiz_lesson', true);
     if (!empty($quiz)) {
         $relations = explode(' ; ', ThemexCore::getUserRelations($user, $quiz, 'answers', true) . ' ');
         foreach ($relations as $relation) {
             $answer = array();
             $relation = explode(' , ', $relation);
             if (count($relation) == 3) {
                 $answer['question'] = themex_value($relation, 0);
                 $answer['answer'] = themex_value($relation, 1);
                 $answer['result'] = themex_value($relation, 2);
                 $answers[] = $answer;
             }
         }
     }
     return $answers;
 }
開發者ID:rinodung,項目名稱:wordpress-demo,代碼行數:27,代碼來源:themex.course.php

示例5: get_sidebar

    ?>
<aside class="sidebar column fourcol">
	<?php 
    get_sidebar('lesson');
    ?>
</aside>
<div class="column eightcol last">
<?php 
} else {
    ?>
<div class="column eightcol lesson-content">
<?php 
}
?>
	<?php 
if (ThemexLesson::$data['prerequisite']['progress'] == 0 && ThemexLesson::$data['status'] != 'free' && ThemexCore::checkOption('lesson_hide') && !ThemexCourse::isAuthor()) {
    printf(__('Complete "%s" lesson before taking this lesson.', 'academy'), '<a href="' . get_permalink(ThemexLesson::$data['prerequisite']['ID']) . '">' . get_the_title(ThemexLesson::$data['prerequisite']['ID']) . '</a>');
} else {
    the_content();
    comments_template('/questions.php');
}
?>
</div>
<?php 
if ($layout == 'right') {
    ?>
<aside class="sidebar fourcol column last">
	<?php 
    get_sidebar('lesson');
    ?>
</aside>
開發者ID:xiangruiprince,項目名稱:esw,代碼行數:31,代碼來源:single-lesson.php

示例6: _e

    _e('Password', 'academy');
    ?>
" />
			</div>
		</div>
		<div class="sixcol column last">
			<div class="field-wrapper">
				<input type="password" name="user_password_repeat" placeholder="<?php 
    _e('Repeat Password', 'academy');
    ?>
" />
			</div>
		</div>
		<div class="clear"></div>			
		<?php 
    if (ThemexCore::checkOption('user_captcha')) {
        ?>
		<div class="form-captcha">
			<img src="<?php 
        echo THEMEX_URI;
        ?>
assets/images/captcha/captcha.php" alt="" />
			<input type="text" name="captcha" id="captcha" size="6" value="" />
		</div>
		<div class="clear"></div>
		<?php 
    }
    ?>
		<a href="#" class="element-button submit-button left"><span class="button-icon register"></span><?php 
    _e('Register', 'academy');
    ?>
開發者ID:rinodung,項目名稱:wordpress-demo,代碼行數:31,代碼來源:form-login.php

示例7: wp_title

>
<head>
<title><?php 
wp_title('|', true, 'right');
?>
</title>
<?php 
wp_head();
?>
</head>
<body <?php 
body_class('single-certificate');
?>
>
<?php 
$ID = ThemexCore::getRewriteRule('certificate');
$certificate = ThemexCourse::getCertificate(themex_decode($ID), themex_decode($ID, true));
if (isset($certificate['user'])) {
    ?>
	<div class="certificate-wrap">
		<?php 
    if (!empty($certificate['background'])) {
        ?>
		<div class="substrate">
			<img src="<?php 
        echo $certificate['background'];
        ?>
" class="fullwidth" alt="" />
		</div>
		<?php 
    }
開發者ID:haythameyd,項目名稱:powrly,代碼行數:31,代碼來源:template-certificate.php

示例8:

					<?php 
                    }
                }
                ?>
			</tbody>
		</table>
		<div class="profile-description">
			<?php 
                ThemexInterface::renderEditor('content', ThemexWoo::$data['product']['content']);
                ?>
		</div>
		<?php 
                if (ThemexWoo::$data['product']['status'] == 'draft') {
                    ?>
			<?php 
                    if (ThemexCore::checkOption('shop_approve')) {
                        ?>
			<a href="#" class="element-button element-submit primary"><?php 
                        _e('Save Changes', 'makery');
                        ?>
</a>
			<?php 
                    } else {
                        ?>
			<a href="#" class="element-button element-submit primary"><?php 
                        _e('Submit for Review', 'makery');
                        ?>
</a>
			<?php 
                    }
                    ?>
開發者ID:qhuit,項目名稱:UrbanPekor,代碼行數:31,代碼來源:template-shop-product.php

示例9: _e

				<?php 
    if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] == 'publish') {
        ?>
				<tr>
					<th><?php 
        _e('Current Rate', 'makery');
        ?>
</th>				
					<td><?php 
        echo ThemexShop::filterRate(ThemexShop::$data['ID'], ThemexShop::$data['rate']);
        ?>
%</td>
				</tr>
				<?php 
    }
    $methods = array_flip(ThemexCore::getOption('withdrawal_methods', array('paypal', 'skrill', 'swift')));
    $gateways = ThemexWoo::getPaymentMethods();
    if (count($gateways) > 1 || !isset($gateways['paypal-adaptive-payments'])) {
        foreach (ThemexCore::$components['forms']['withdrawal'] as $name => $field) {
            if (is_array(reset($field))) {
                if (isset($methods[$name])) {
                    foreach ($field as $key => $child) {
                        ?>
								<tr class="trigger-method-<?php 
                        echo $name;
                        ?>
">
									<th><?php 
                        echo $child['label'];
                        ?>
</th>
開發者ID:TheTypoMaster,項目名稱:wp_marketplace,代碼行數:31,代碼來源:template-profile-earnings.php

示例10: sprintf

            ?>
							<span class="fa fa-tags"></span>
							<span><?php 
            echo sprintf(_n('%d Sale', '%d Sales', ThemexShop::$data['sales'], 'makery'), ThemexShop::$data['sales']);
            ?>
</span>
							<?php 
        }
    }
}
?>
						</li>						
					</ul>
				</div>
				<?php 
if (!ThemexCore::checkOption('shop_rating')) {
    ?>
				<div class="shop-rating" title="<?php 
    echo sprintf(_n('%d Rating', '%d Ratings', ThemexShop::$data['ratings'], 'makery'), ThemexShop::$data['ratings']);
    ?>
">
					<div class="element-rating" data-score="<?php 
    echo ThemexShop::$data['rating'];
    ?>
"></div>
				</div>
				<?php 
}
?>
			</div>
		</div>
開發者ID:qhuit,項目名稱:UrbanPekor,代碼行數:31,代碼來源:content-shop.php

示例11: intval

<?php

$speed = intval(ThemexCore::getOption('slider_speed', '1000'));
$pause = intval(ThemexCore::getOption('slider_pause', '0'));
$query = new WP_Query(array('post_type' => 'slide', 'showposts' => -1, 'orderby' => 'menu_order', 'order' => 'ASC'));
if ($query->have_posts()) {
    ?>
<div class="slider-wrap">
	<div class="element-slider header-slider" data-effect="slide" data-pause="<?php 
    echo $pause;
    ?>
" data-speed="<?php 
    echo $speed;
    ?>
">
		<ul>
			<?php 
    while ($query->have_posts()) {
        $query->the_post();
        ?>
			<li>
				<div class="container">
					<?php 
        the_content();
        ?>
				</div>							
			</li>
			<?php 
    }
    ?>
		</ul>
開發者ID:qhuit,項目名稱:UrbanPekor,代碼行數:31,代碼來源:module-slider.php

示例12: esc_attr

    ?>
</th>
					<td>
						<div class="element-select">
							<span></span>
							<?php 
    echo ThemexInterface::renderOption(array('id' => 'category', 'type' => 'select_category', 'taxonomy' => 'shop_category', 'value' => esc_attr(themex_array('category', $_GET)), 'wrap' => false));
    ?>
						</div>
					</td>
				</tr>
				<?php 
}
?>
				<?php 
if (!ThemexCore::checkOption('profile_location')) {
    ?>
				<tr>
					<th><?php 
    _e('Country', 'makery');
    ?>
</th>
					<td>
						<div class="element-select">
							<span></span>
							<?php 
    echo ThemexInterface::renderOption(array('id' => 'country', 'type' => 'select_country', 'attributes' => array('class' => 'countries-list'), 'value' => esc_attr(themex_array('country', $_GET)), 'wrap' => false));
    ?>
						</div>
					</td>
				</tr>
開發者ID:TheTypoMaster,項目名稱:wp_marketplace,代碼行數:31,代碼來源:module-search.php

示例13: themex_url

<?php

/*
@version 3.0.0
*/
if (!defined('ABSPATH')) {
    exit;
}
$limit = ThemexCore::getOption('products_per_page', 9);
$extend = $limit * 2;
?>
<div class="items-order right">
	<form action="<?php 
echo themex_url();
?>
" method="GET" class="woocommerce-ordering">
		<a href="#limit" class="element-submit <?php 
if (themex_value('limit', $_GET, $limit) == $limit) {
    ?>
active<?php 
}
?>
" data-value="<?php 
echo $limit;
?>
"><?php 
echo $limit;
?>
</a>
		<a href="#limit" class="element-submit <?php 
if (themex_value('limit', $_GET) == $extend) {
開發者ID:TheTypoMaster,項目名稱:wp_marketplace,代碼行數:31,代碼來源:orderby.php

示例14: the_time

}
?>
			<?php 
if (!ThemexCore::checkOption('post_date')) {
    ?>
			<time class="post-date nomargin" datetime="<?php 
    the_time('Y-m-d');
    ?>
"><?php 
    the_time(get_option('date_format'));
    ?>
</time>
			<?php 
}
?>
			<?php 
if (!ThemexCore::checkOption('post_author')) {
    ?>
			<div class="post-author">&nbsp;<?php 
    _e('by', 'academy');
    ?>
 <?php 
    the_author_posts_link();
    ?>
</div>
			<?php 
}
?>
		</footer>
	</div>
</article>
開發者ID:haythameyd,項目名稱:powrly,代碼行數:31,代碼來源:content-post.php

示例15: _e

		<?php 
        if (!ThemexCore::checkOption('course_retake')) {
            ?>
		<a href="#" class="element-button secondary medium submit-button left"><?php 
            _e('Unsubscribe Now', 'academy');
            ?>
</a>
		<input type="hidden" name="course_action" value="remove_user" />
		<?php 
        }
        ?>
		<?php 
        if (ThemexCourse::hasCertificate()) {
            ?>
		<a href="<?php 
            echo ThemexCore::getURL('certificate', themex_encode(ThemexCourse::$data['ID'], ThemexUser::$data['user']['ID']));
            ?>
" target="_blank" class="element-button medium certificate-button"><?php 
            _e('View Certificate', 'academy');
            ?>
</a>
		<?php 
        }
        ?>
	<?php 
    }
}
?>
	<input type="hidden" name="course_id" value="<?php 
echo ThemexCourse::$data['ID'];
?>
開發者ID:haythameyd,項目名稱:powrly,代碼行數:31,代碼來源:module-form.php


注:本文中的ThemexCore類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。