• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP themex_value函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: renderSettings

 /**
  * Renders module settings
  *
  * @access public
  * @return string
  */
 public static function renderSettings()
 {
     $out = '<input type="hidden" name="' . __CLASS__ . '[]" value="" />';
     $out .= ThemexInterface::renderOption(array('name' => __('Show Country', 'academy'), 'id' => __CLASS__ . '[billing_country]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_country')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show City', 'academy'), 'id' => __CLASS__ . '[billing_city]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_city')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show State', 'academy'), 'id' => __CLASS__ . '[billing_state]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_state')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show Address', 'academy'), 'id' => __CLASS__ . '[billing_address]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_address')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show Postcode', 'academy'), 'id' => __CLASS__ . '[billing_postcode]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_postcode')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show Company', 'academy'), 'id' => __CLASS__ . '[billing_company]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_company')));
     $out .= ThemexInterface::renderOption(array('name' => __('Show Phone', 'academy'), 'id' => __CLASS__ . '[billing_phone]', 'type' => 'checkbox', 'default' => themex_value(self::$data, 'billing_phone')));
     return $out;
 }
开发者ID:haythameyd,项目名称:powrly,代码行数:18,代码来源:themex.woo.php


示例2: _e

		<a href="#view" title="<?php 
    _e('Grid View', 'makery');
    ?>
" class="element-submit <?php 
    if (themex_value('view', $_GET) == 'grid') {
        ?>
active<?php 
    }
    ?>
" data-value="grid"><span class="fa fa-th-large"></span></a>
		<?php 
}
?>
		
		<input type="hidden" name="view" id="view" value="<?php 
echo themex_value('view', $_GET, $view);
?>
" />
		<?php 
foreach ($_GET as $key => $value) {
    if (!in_array($key, array('submit', 'view'))) {
        if (is_array($value)) {
            foreach ($value as $item) {
                echo '<input type="hidden" name="' . esc_attr($key) . '[]" value="' . esc_attr($item) . '" />';
            }
        } else {
            echo '<input type="hidden" name="' . esc_attr($key) . '" value="' . esc_attr($value) . '" />';
        }
    }
}
?>
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:31,代码来源:result-count.php


示例3: get_header

<?php

get_header();
?>
<div class="woocommerce">
	<?php 
$woocommerce_loop['single'] = true;
$woocommerce_loop['columns'] = 4;
$products = array_merge(ThemexShop::$data['products'], array(0));
$limit = intval(themex_value('limit', $_GET, ThemexCore::getOption('products_per_page', 9)));
$order = ThemexWoo::getSorting();
query_posts(array('post_type' => 'product', 'post_status' => 'publish', 'paged' => themex_paged(), 'posts_per_page' => $limit, 'post__in' => $products, 'orderby' => $order['orderby'], 'order' => $order['order'], 'meta_key' => $order['meta_key']));
$layout = 'full';
$shop = $post->ID;
ThemexWoo::getTemplate('archive-product.php');
?>
</div>
<?php 
get_footer();
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:19,代码来源:single-shop.php


示例4: array_intersect_key

                    ?>
								<div class="element-select">
									<span></span>
									<?php 
                    echo ThemexInterface::renderOption(array('id' => $field['name'], 'type' => $field['type'], 'options' => array_intersect_key(themex_array('options', $field), $methods), 'value' => themex_value($field['name'], $_POST), 'wrap' => false, 'attributes' => array('class' => 'element-trigger')));
                    ?>
								</div>
								<?php 
                } else {
                    ?>
								<div class="field-wrap">
									<input type="text" name="<?php 
                    echo esc_attr($field['name']);
                    ?>
" value="<?php 
                    echo esc_attr(themex_value($field['name'], $_POST));
                    ?>
" />
								</div>
								<?php 
                }
                ?>
							</td>
						</tr>
						<?php 
            }
            ?>
				
					<?php 
        }
    }
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:31,代码来源:template-profile-earnings.php


示例5: foreach

                    ?>
">
								<span class="fa fa-upload"></span>
							</label>
							<input type="file" id="product_file" name="file" class="element-file shifted" />
						</div>
					</td>
				</tr>
				<?php 
                }
                ?>
				<?php 
                if (!ThemexCore::checkOption('product_attributes')) {
                    $attributes = ThemexWoo::getAttributes();
                    foreach ($attributes as $attribute) {
                        $value = themex_value($attribute['name'], ThemexWoo::$data['product']['attributes']);
                        ?>
					<tr>
						<th><?php 
                        echo $attribute['label'];
                        ?>
</th>
						<td>
							<?php 
                        if ($attribute['type'] == 'select') {
                            ?>
							<div class="element-select">
								<span></span>
								<select name="<?php 
                            echo esc_attr($attribute['name']);
                            ?>
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:31,代码来源:template-shop-product.php


示例6: 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


示例7: themex_array

</th>
					<td>
						<?php 
            echo ThemexInterface::renderOption(array('id' => 'local_delivery_countries[]', 'type' => 'select', 'options' => ThemexWoo::getShippingCountries(), 'value' => themex_array('countries', $shipping['local_delivery']), 'wrap' => false, 'attributes' => array('class' => 'element-chosen', 'multiple' => 'multiple', 'data-placeholder' => __('Select Options', 'makery'))));
            ?>
					</td>
				</tr>
				<tr>
					<th><?php 
            _e('Cost', 'makery');
            ?>
</th>
					<td>
						<div class="field-wrap">
							<input type="text" name="local_delivery_cost" value="<?php 
            echo ThemexWoo::formatPrice(themex_value('cost', $shipping['local_delivery'], '0'));
            ?>
" />
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<?php 
        }
        ?>
		<a href="#" class="element-button element-submit primary"><?php 
        _e('Save Changes', 'makery');
        ?>
</a>
		<input type="hidden" name="shop_id" value="<?php 
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:31,代码来源:template-shop-shipping.php


示例8: themex_value

<?php

/*
@version 3.0.0
*/
if (!defined('ABSPATH')) {
    exit;
}
global $woocommerce_loop, $layout;
$view = ThemexCore::getOption('products_view', 'grid');
if (!isset($layout)) {
    $layout = ThemexCore::getOption('products_layout', 'right');
}
$woocommerce_loop['view'] = themex_value('view', $_GET, $view);
$woocommerce_loop['columns'] = 4;
if ($layout != 'full') {
    $woocommerce_loop['columns'] = 3;
}
get_header('shop');
if ($layout == 'left') {
    ?>
<aside class="column fourcol">
	<?php 
    ThemexSidebar::renderSidebar('products', true);
    ?>
</aside>
<div class="column eightcol last">
<?php 
} else {
    if ($layout == 'right') {
        ?>
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:31,代码来源:archive-product.php


示例9: updateSettings

 /**
  * Updates user settings
  *
  * @access public
  * @param int $ID
  * @param array $data
  * @return void
  */
 public static function updateSettings($ID, $data)
 {
     $current = get_user_by('id', $ID);
     $required = false;
     $user = array('ID' => $ID);
     //password
     $new_password = trim(themex_value($data, 'new_password'));
     if (!empty($new_password)) {
         $confirm_password = trim(themex_value($data, 'confirm_password'));
         $user['user_pass'] = $new_password;
         $required = true;
         if (strlen($new_password) < 4) {
             ThemexInterface::$messages[] = __('Password must be at least 4 characters long', 'academy');
         } else {
             if (strlen($new_password) > 16) {
                 ThemexInterface::$messages[] = __('Password must be not more than 16 characters long', 'academy');
             } else {
                 if (preg_match("/^([a-zA-Z0-9@#-_\$%^&+=!?]{1,20})\$/", $new_password) == 0) {
                     ThemexInterface::$messages[] = __('Password contains invalid characters', 'academy');
                 } else {
                     if ($new_password != $confirm_password) {
                         ThemexInterface::$messages[] = __('Passwords do not match', 'academy');
                     }
                 }
             }
         }
     }
     //email
     $email = trim(themex_value($data, 'email'));
     if ($email != $current->user_email) {
         $user['user_email'] = $email;
         $required = true;
         if (!is_email($email)) {
             ThemexInterface::$messages[] = __('Email address is invalid', 'academy');
         }
     }
     $current_password = trim(themex_value($data, 'current_password'));
     if ($required && !wp_check_password($current_password, $current->user_pass, $current->ID)) {
         ThemexInterface::$messages[] = __('Current password is incorrect', 'academy');
     }
     if (empty(ThemexInterface::$messages)) {
         wp_update_user($user);
         ThemexInterface::$messages[] = __('Settings have been successfully saved', 'academy');
         $_POST['success'] = true;
     }
 }
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:54,代码来源:themex.user.php


示例10: submitMessage

 /**
  * Submits user message
  *
  * @access public
  * @param int $ID
  * @param array $data
  * @return void
  */
 public static function submitMessage($ID, $data)
 {
     $user = intval(themex_value('user_id', $data));
     if (!empty($user)) {
         $message = sanitize_text_field(themex_value('message', $data));
         if (empty($message)) {
             ThemexInterface::$messages[] = '"' . __('Message', 'makery') . '" ' . __('field is required', 'makery');
         }
         if (empty(ThemexInterface::$messages)) {
             $subject = __('New Message', 'makery');
             $content = ThemexCore::getOption('email_message', 'Sender: %user%<br />Message: %message%');
             $receiver = get_userdata($user);
             $sender = get_userdata($ID);
             $keywords = array('user' => '<a href="' . get_author_posts_url($sender->ID) . '">' . $sender->user_login . '</a>', 'message' => wpautop($message));
             $content = themex_keywords($content, $keywords);
             themex_mail($receiver->user_email, $subject, $content, $sender->user_email);
             ThemexInterface::$messages[] = __('Message has been successfully sent', 'makery');
             ThemexInterface::renderMessages(true);
         } else {
             ThemexInterface::renderMessages();
         }
     }
     die;
 }
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:32,代码来源:themex.user.php


示例11:

						<input type="hidden" name="product_id" value="<?php 
            echo ThemexWoo::$data['product']['ID'];
            ?>
" />
						<input type="hidden" name="woo_action" value="update_image" />
					</form>
				</div>
				<?php 
        }
    } else {
        if (ThemexUser::isShop()) {
            ThemexShop::refresh(ThemexUser::$data['current']['shop'], true);
            ?>
			<div class="image-wrap">
				<?php 
            echo ThemexCore::getImage(themex_value('ID', ThemexShop::$data), 200, THEME_URI . 'images/shop.png');
            ?>
			</div>
			<div class="profile-upload">
				<form action="" enctype="multipart/form-data" method="POST">
					<label for="shop_thumb" class="element-button square" title="<?php 
            _e('Upload Image', 'makery');
            ?>
">
						<span class="fa fa-upload"></span>
					</label>
					<input type="file" id="shop_thumb" name="shop_image" class="element-upload shifted" />
					<input type="hidden" name="shop_id" value="<?php 
            echo ThemexShop::$data['ID'];
            ?>
" />
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:31,代码来源:sidebar-profile-left.php


示例12: updateProductsLimit

 /**
  * Updates products limit
  *
  * @access public
  * @return int
  */
 public static function updateProductsLimit()
 {
     $limit = intval(themex_value('limit', $_GET, ThemexCore::getOption('products_per_page', 9)));
     return $limit;
 }
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:11,代码来源:themex.woo.php


示例13: submitReport

 /**
  * Submits shop report
  *
  * @access public
  * @param array $data
  * @return void
  */
 public static function submitReport($data)
 {
     $shop = intval(themex_value('shop_id', $data));
     if (!empty($shop)) {
         $reason = sanitize_text_field(themex_value('reason', $data));
         if (empty($reason)) {
             ThemexInterface::$messages[] = '"' . __('Reason', 'makery') . '" ' . __('field is required', 'makery');
         }
         if (empty(ThemexInterface::$messages)) {
             $subject = __('Shop Report', 'makery');
             $content = ThemexCore::getOption('email_shop_report', 'Sender: %user%<br />Shop: %shop%<br />Reason: %reason%');
             $user = get_userdata(get_current_user_id());
             $keywords = array('user' => '<a href="' . get_author_posts_url($user->ID) . '">' . $user->user_login . '</a>', 'shop' => '<a href="' . get_permalink($shop) . '">' . get_the_title($shop) . '</a>', 'reason' => wpautop($reason));
             $content = themex_keywords($content, $keywords);
             themex_mail(get_option('admin_email'), $subject, $content, $user->user_email);
             ThemexInterface::$messages[] = __('Report has been successfully sent', 'makery');
             ThemexInterface::renderMessages(true);
         } else {
             ThemexInterface::renderMessages();
         }
     }
     die;
 }
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:30,代码来源:themex.shop.php


示例14: renderData

 /**
  * Renders module data
  *
  * @access public
  * @param string $slug
  * @param array $optionst
  * @param array $values
  * @return void
  */
 public static function renderData($slug, $options = array(), $values = array())
 {
     $options = wp_parse_args($options, array('edit' => true, 'placeholder' => true, 'before_title' => '', 'after_title' => '', 'before_content' => '', 'after_content' => ''));
     $out = '';
     $counter = 0;
     if (self::isActive($slug)) {
         foreach (self::$data[$slug]['fields'] as $field) {
             if (!empty($field['name'])) {
                 $ID = themex_sanitize_key($field['name']);
                 $field['name'] = themex_get_string($ID, 'name', $field['name']);
                 $counter++;
                 if ($options['edit']) {
                     if (!empty($options['before_title']) || !empty($options['after_title'])) {
                         $out .= $options['before_title'] . $field['name'] . $options['after_title'];
                     }
                     if (!empty($options['before_content'])) {
                         $out .= $options['before_content'];
                     }
                     $args = array('id' => $ID, 'type' => $field['type'], 'value' => themex_value($values, $ID), 'wrap' => false);
                     if ($field['type'] == 'textarea') {
                         $out .= '<div class="clear"></div>';
                     } else {
                         $out .= '<div class="sixcol column ';
                         if ($counter % 2 == 0) {
                             $out .= 'last">';
                         } else {
                             $out .= '">';
                         }
                     }
                     if ($field['type'] == 'select') {
                         $field['options'] = themex_get_string($ID, 'options', $field['options']);
                         $args['options'] = array_merge(array('0' => $field['name']), explode(',', $field['options']));
                         $out .= '<div class="select-field">';
                     } else {
                         if ($options['placeholder']) {
                             $args['attributes'] = array('placeholder' => $field['name']);
                         }
                         $out .= '<div class="field-wrapper">';
                     }
                     if (in_array($field['type'], array('number', 'email'))) {
                         $args['type'] = 'text';
                     }
                     $out .= ThemexInterface::renderOption($args);
                     $out .= '</div>';
                     if ($field['type'] != 'textarea') {
                         $out .= '</div>';
                         if ($counter % 2 == 0) {
                             $out .= '<div class="clear"></div>';
                         }
                     }
                     if (!empty($options['after_content'])) {
                         $out .= $options['after_content'];
                     }
                 } else {
                     if (isset($values[$ID])) {
                         $out .= $options['before_title'] . $field['name'] . $options['after_title'] . $options['before_content'];
                         if ($field['type'] == 'select') {
                             $field['options'] = themex_get_string($ID, 'options', $field['options']);
                             $items = array_merge(array('0' => '&ndash;'), explode(',', $field['options']));
                             if (isset($items[$values[$ID]])) {
                                 $values[$ID] = $items[$values[$ID]];
                             }
                         }
                         if (empty($values[$ID])) {
                             $values[$ID] = '&ndash;';
                         }
                         $out .= $values[$ID];
                         $out .= $options['after_content'];
                     }
                 }
             }
         }
         if ($options['edit'] && isset(self::$data[$slug]['captcha'])) {
             $out .= '<div class="clear"></div>';
             $out .= '<div class="form-captcha clearfix">';
             $out .= '<img src="' . THEMEX_URI . 'assets/images/captcha/captcha.php" alt="" />';
             $out .= '<input type="text" name="captcha" id="captcha" size="6" value="" placeholder="' . __('Code', 'academy') . '" /></div>';
         }
     }
     echo $out;
 }
开发者ID:haythameyd,项目名称:powrly,代码行数:90,代码来源:themex.form.php


示例15: _e

		<a href="<?php 
    echo ThemexFacebook::getURL();
    ?>
" title="<?php 
    _e('Sign in with Facebook', 'academy');
    ?>
" class="element-button facebook-button left">
			<span class="button-icon facebook"></span>
		</a>
		<?php 
}
?>
		<div class="form-loader"></div>
		<input type="hidden" name="user_action" value="login_user" />
		<input type="hidden" name="user_redirect" value="<?php 
echo themex_value($_POST, 'user_redirect');
?>
" />
		<input type="hidden" name="nonce" class="nonce" value="<?php 
echo wp_create_nonce(THEMEX_PREFIX . 'nonce');
?>
" />
		<input type="hidden" name="action" class="action" value="<?php 
echo THEMEX_PREFIX;
?>
update_user" />
	</form>			
</div>
<div class="clear"></div>
<?php 
$query = new WP_Query(array('post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'template-register.php'));
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:31,代码来源:form-login.php


示例16: esc_attr

    echo esc_attr($id);
    ?>
" <?php 
    selected($orderby, $id);
    ?>
><?php 
    echo esc_html($name);
    ?>
</option>
				<?php 
}
?>
			</select>
		</div>
		<input type="hidden" name="limit" id="limit" value="<?php 
echo themex_value('limit', $_GET, $limit);
?>
" />
		<?php 
foreach ($_GET as $key => $value) {
    if (!in_array($key, array('orderby', 'submit', 'limit'))) {
        if (is_array($value)) {
            foreach ($value as $item) {
                echo '<input type="hidden" name="' . esc_attr($key) . '[]" value="' . esc_attr($item) . '" />';
            }
        } else {
            echo '<input type="hidden" name="' . esc_attr($key) . '" value="' . esc_attr($value) . '" />';
        }
    }
}
?>
开发者ID:TheTypoMaster,项目名称:wp_marketplace,代码行数:31,代码来源:orderby.php


示例17: renderOption


//.........这里部分代码省略.........
         //checkbox
         case 'checkbox':
             $checked = '';
             if ($option['value'] == 'true') {
                 $checked = 'checked="checked"';
             }
             $out .= '<input type="checkbox" id="' . $option['id'] . '" name="' . $option['id'] . '" value="true" ' . $checked . ' ' . $attributes . ' />';
             if (isset($option['name'])) {
                 $out .= '<label for="' . $option['id'] . '">' . $option['name'] . '</label>';
             }
             break;
             //colorpicker
         //colorpicker
         case 'color':
             $out .= '<input name="' . $option['id'] . '" id="' . $option['id'] . '" type="text" value="' . $option['value'] . '" class="themex-colorpicker" />';
             break;
             //uploader
         //uploader
         case 'uploader':
             $out .= '<input name="' . $option['id'] . '" id="' . $option['id'] . '" type="text" value="' . $option['value'] . '" ' . $attributes . ' />';
             $out .= '<a class="button themex-upload-button">' . __('Browse', 'academy') . '</a>';
             break;
             //multiple uploader
         //multiple uploader
         case 'attachments':
             if (empty($option['value']) || !is_array($option['value'])) {
                 $option['value'] = array('a' . uniqid() => array('title' => '', 'url' => '', 'type' => ''));
             }
             $out .= '<div class="themex-clone-pane"><input type="hidden" id="' . $option['id'] . '" name="' . $option['id'] . '" value="" />';
             foreach ($option['value'] as $key => $field) {
                 $out .= '<div class="themex-clone-item" id="' . $option['id'] . '_' . $key . '">';
                 $out .= '<a href="#" class="themex-button themex-remove-button themex-trigger" data-element="' . $option['id'] . '_' . $key . '" title="' . __('Remove', 'academy') . '"></a>';
                 $out .= '<a href="#" class="themex-button themex-clone-button themex-trigger" data-element="' . $option['id'] . '_' . $key . '" data-value="' . $key . '" title="' . __('Add', 'academy') . '"></a>';
                 $out .= ThemexInterface::renderOption(array('id' => $option['id'] . '[' . $key . '][title]', 'type' => 'text', 'value' => themex_value($field, 'title'), 'wrap' => false, 'attributes' => array('placeholder' => __('Title', 'academy'))));
                 $out .= ThemexInterface::renderOption(array('id' => $option['id'] . '[' . $key . '][type]', 'type' => 'select', 'value' => themex_value($field, 'type'), 'wrap' => false, 'options' => array('document' => __('Document', 'academy'), 'audio' => __('Audio', 'academy'), 'video' => __('Video', 'academy'))));
                 $out .= ThemexInterface::renderOption(array('id' => $option['id'] . '[' . $key . '][status]', 'type' => 'select', 'value' => themex_value($field, 'status'), 'wrap' => false, 'options' => array('file' => __('File', 'academy'), 'link' => __('Link', 'academy'))));
                 $out .= ThemexInterface::renderOption(array('id' => $option['id'] . '[' . $key . '][url]', 'type' => 'uploader', 'value' => themex_value($field, 'url'), 'attributes' => array('placeholder' => 'URL')));
                 $out .= '</div>';
             }
             $out .= '</div>';
             break;
             //images selector
         //images selector
         case 'select_image':
             foreach ($option['options'] as $name => $src) {
                 $out .= '<image src="' . $src . '" ';
                 if ($name == $option['value']) {
                     $out .= 'class="current"';
                 }
                 $out .= ' data-value="' . $name . '" />';
             }
             $out .= '<input type="hidden" name="' . $option['id'] . '" id="' . $option['id'] . '" value="' . $option['value'] . '" ' . $attributes . ' />';
             break;
             //custom dropdown
         //custom dropdown
         case 'select':
             $out .= '<select id="' . $option['id'] . '" name="' . $option['id'] . '" ' . $attributes . '>';
             if (isset($option['options'])) {
                 foreach ($option['options'] as $name => $title) {
                     $selected = '';
                     if ($option['value'] != '' && ($name == $option['value'] || is_array($option['value']) && in_array($name, $option['value']))) {
                         $selected = 'selected="selected"';
                     }
                     $out .= '<option value="' . $name . '" ' . $selected . '>' . $title . '</option>';
                 }
             }
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:67,代码来源:themex.interface.php


示例18: _e

		<a href="<?php 
    echo ThemexFacebook::getURL();
    ?>
" title="<?php 
    _e('Sign in with Facebook', 'academy');
    ?>
" class="element-button facebook-button left">
			<span class="button-icon facebook"></span>
		</a>
		<?php 
}
?>
		<div class="form-loader"></div>
		<input type="hidden" name="user_action" value="login_user" />
		<input type="hidden" name="user_redirect" value="<?php 
echo esc_url(themex_value($_POST, 'user_redirect'));
?>
" />
		<input type="hidden" name="nonce" class="nonce" value="<?php 
echo wp_create_nonce(THEMEX_PREFIX . 'nonce');
?>
" />
		<input type="hidden" name="action" class="action" value="<?php 
echo THEMEX_PREFIX;
?>
update_user" />
	</form>			
</div>
<div class="clear"></div>
<?php 
$query = new WP_Query(array('post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'template-register.php'));
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:31,代码来源:template-register.php


示例19: get_sidebar

get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Settings', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-settings');
?>
	<form action="" method="POST" class="site-form">
		<div class="message">
			<?php 
ThemexInterface::renderMessages(themex_value('success', $_POST, false));
?>
		</div>
		<table class="profile-fields">
			<tbody>
				<tr>
					<th><?php 
_e('Notifications', 'makery');
?>
</th>
					<td>
						<div class="element-select">
							<span></span>
							<?php 
echo ThemexInterface::renderOption(array('id' => 'notices', 'type' => 'select', 'value' => esc_attr(ThemexUser::$data['current']['settings']['notices']), 'options' => array('1' => __('Enabled', 'makery'), '0' => __('Disabled', 'makery')), 'wrap' => false));
?>
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:31,代码来源:template-profile-settings.php


示例20: themex_array

            $classes = ThemexWoo::getShippingClasses();
            $costs = themex_array('costs', $shipping['flat_rate']);
            foreach ($classes as $index => $class) {
                ?>
				<tr> 
					<td><?php 
                echo $class->name;
                ?>
</td>
					<td>
						<div class="field-wrap">
							<input type="text" name="flat_rate_cost[<?php 
                echo $index;
                ?>
]" value="<?php 
                echo themex_value($class->slug, $costs, '0');
                ?>
" />
							<input type="hidden" name="flat_rate_class[<?php 
                echo $index;
                ?>
]" value="<?php 
                echo $class->slug;
                ?>
" />
						</div>
					</td>
				</tr>
				<?php 
            }
            ?>
开发者ID:qhuit,项目名称:UrbanPekor,代码行数:31,代码来源:template-shop-shipping.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP themify_check函数代码示例发布时间:2022-05-23
下一篇:
PHP themes_path函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap