本文整理汇总了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)) {
示例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 © ' . 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
示例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>
示例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;
}
示例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>
示例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');
?>
示例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
}
示例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
}
?>
示例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>
示例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>
示例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>
示例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>
示例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) {
示例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"> <?php
_e('by', 'academy');
?>
<?php
the_author_posts_link();
?>
</div>
<?php
}
?>
</footer>
</div>
</article>
示例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'];
?>