当前位置: 首页>>代码示例>>PHP>>正文


PHP modality_get_options函数代码示例

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


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

示例1: modality_theme_wrapper_start

/**
 * Load start of theme wrapper function	
*/
function modality_theme_wrapper_start()
{
    $modality_theme_options = modality_get_options('modality_theme_options');
    ?>
	<div id="main" class="<?php 
    echo $modality_theme_options['layout_settings'];
    ?>
">
		<div class="content-posts-wrap">
			<div class="woocommerce">
				<div id="content-box">
					<div id="post-body">
						<div class="post-single">
<?php 
}
开发者ID:olechka1505,项目名称:hungrylemur,代码行数:18,代码来源:modality-woocommerce.php

示例2: modality_get_options

<?php

/**
 * Template Name: Page With Right Sidebar
 *
 * @package Modality
 */
$modality_theme_options = modality_get_options('modality_theme_options');
get_header();
?>
	<div id="main" class="col2-l">
	<?php 
// Start the Loop.
while (have_posts()) {
    the_post();
    ?>

<div class="content-posts-wrap">
	<div id="content-box">
		<div id="post-body">
			<div <?php 
    post_class('post-single');
    ?>
>
				<h1 id="post-title" <?php 
    post_class('entry-title');
    ?>
><?php 
    the_title();
    ?>
 </h1>
开发者ID:olechka1505,项目名称:hungrylemur,代码行数:31,代码来源:page-right-sidebar.php

示例3: company_unslider_slider

function company_unslider_slider()
{
    global $post;
    $modality_theme_options = modality_get_options('modality_theme_options');
    $slider_cat = $modality_theme_options['image_slider_cat'];
    $num_of_slides = $modality_theme_options['slider_num'];
    $button_text = $modality_theme_options['caption_button_text'];
    $modality_slider_query = new WP_Query(array('posts_per_page' => $num_of_slides, 'cat' => $slider_cat));
    ?>
	<div class="clear"></div>
	<div class="banner">
		<div class="big_text">О КОМПАНИИ</div>


		<ul>
		<?php 
    while ($modality_slider_query->have_posts()) {
        $modality_slider_query->the_post();
        ?>
			<?php 
        $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
        ?>
			<li style="background: url(<?php 
        //echo esc_url($image[0]);
        ?>
) 50% 0 no-repeat;">
			<?php 
        if ($modality_theme_options['captions_on'] == '1') {
            ?>
	
				<div class="inner">
					<a class="post-title" href="<?php 
            the_permalink();
            ?>
"><h1><?php 
            the_title();
            ?>
</h1></a>
					<?php 
            the_excerpt();
            ?>
				</div>
				<?php 
            if ($modality_theme_options['captions_button'] == '1') {
                ?>
					<a href="<?php 
                the_permalink();
                ?>
" class="btn"><?php 
                echo $button_text;
                ?>
</a>
				<?php 
            }
            ?>
			<?php 
        }
        ?>
			
			</li>
		<?php 
    }
    wp_reset_query();
    ?>
		</ul>
	</div>
	<div class="clear"></div>

<?php 
}
开发者ID:nezzo,项目名称:privat_oplata,代码行数:70,代码来源:modality-image-sliders.php

示例4: modality_excerpt_length

/** 
 * Load function to change excerpt length
 * 
 */
function modality_excerpt_length($length)
{
    $modality_theme_options = modality_get_options('modality_theme_options');
    if ($modality_theme_options['blog_excerpt'] != "") {
        $excrpt = $modality_theme_options['blog_excerpt'];
        return $excrpt;
    } else {
        $excrpt = '50';
        return $excrpt;
    }
}
开发者ID:nezzo,项目名称:privat_oplata,代码行数:15,代码来源:modality-functions.php

示例5: modality_localize_scripts

function modality_localize_scripts()
{
    wp_enqueue_script('slides', get_template_directory_uri() . '/js/slides.js', array('jquery'), '', true);
    $modality_theme_options = modality_get_options('modality_theme_options');
    $animation_speed = $modality_theme_options['animation_speed'];
    $slideshow_speed = $modality_theme_options['slideshow_speed'];
    $datatoBePassed = array('slideshowSpeed' => $slideshow_speed, 'animationSpeed' => $animation_speed);
    wp_localize_script('slides', 'php_vars', $datatoBePassed);
}
开发者ID:Roma48,项目名称:quiz-maker,代码行数:9,代码来源:modality-image-sliders.php

示例6: modality_theme_custom_styling

/**
 * Sets up theme custom styling
 * 
 */
function modality_theme_custom_styling()
{
    $modality_theme_options = modality_get_options('modality_theme_options');
    /**
     * General Settings 
     */
    $theme_color = $modality_theme_options['theme_color'];
    $scrollup_color = $modality_theme_options['scrollup_color'];
    $scrollup_hover_color = $modality_theme_options['scrollup_hover_color'];
    /**
     * Logo Settings 
     */
    $logo_width = $modality_theme_options['logo_width'];
    $logo_height = $modality_theme_options['logo_height'];
    $logo_top_margin = $modality_theme_options['logo_top_margin'];
    $logo_left_margin = $modality_theme_options['logo_left_margin'];
    $logo_bottom_margin = $modality_theme_options['logo_bottom_margin'];
    $logo_right_margin = $modality_theme_options['logo_right_margin'];
    $logo_uppercase = $modality_theme_options['logo_uppercase'];
    $google_font_logo = $modality_theme_options['google_font_logo'];
    $logo_font_size = $modality_theme_options['logo_font_size'];
    $logo_font_weight = $modality_theme_options['logo_font_weight'];
    $text_logo_color = $modality_theme_options['text_logo_color'];
    $tagline_font_size = $modality_theme_options['tagline_font_size'];
    $tagline_color = $modality_theme_options['tagline_color'];
    $tagline_uppercase = $modality_theme_options['tagline_uppercase'];
    /**
     * Navigation Settings
     */
    $menu_sticky = $modality_theme_options['menu_sticky'];
    $menu_top_margin = $modality_theme_options['menu_top_margin'];
    $google_font_menu = $modality_theme_options['google_font_menu'];
    $nav_font_size = $modality_theme_options['nav_font_size'];
    $menu_uppercase = $modality_theme_options['menu_uppercase'];
    $nav_font_color = $modality_theme_options['nav_font_color'];
    $nav_border_color = $modality_theme_options['nav_border_color'];
    $nav_bg_color = $modality_theme_options['nav_bg_color'];
    $nav_bg_sub_color = $modality_theme_options['nav_bg_sub_color'];
    $nav_hover_font_color = $modality_theme_options['nav_hover_font_color'];
    $nav_bg_hover_color = $modality_theme_options['nav_bg_hover_color'];
    $nav_cur_item_color = $modality_theme_options['nav_cur_item_color'];
    /**
     * Typography Settings
     */
    $google_font_body = $modality_theme_options['google_font_body'];
    $body_font_size = $modality_theme_options['body_font_size'];
    $body_font_color = $modality_theme_options['body_font_color'];
    /**
     * Header Settings
     */
    $header_bg_color = $modality_theme_options['header_bg_color'];
    $header_opacity = $modality_theme_options['header_opacity'];
    $address_color = $modality_theme_options['address_color'];
    $top_head_color = $modality_theme_options['top_head_color'];
    /**
     * Image Slider 
     */
    $slider_height = $modality_theme_options['slider_height'];
    $captions_pos_left = $modality_theme_options['captions_pos_left'];
    $captions_pos_top = $modality_theme_options['captions_pos_top'];
    $captions_width = $modality_theme_options['captions_width'];
    $captions_title_color = $modality_theme_options['captions_title_color'];
    $captions_text_color = $modality_theme_options['captions_text_color'];
    $captions_button_color = $modality_theme_options['captions_button_color'];
    /**
     * Footer Settings
     */
    $footer_bg_color = $modality_theme_options['footer_bg_color'];
    $copyright_bg_color = $modality_theme_options['copyright_bg_color'];
    $footer_widget_title_color = $modality_theme_options['footer_widget_title_color'];
    $footer_widget_title_border_color = $modality_theme_options['footer_widget_title_border_color'];
    $footer_widget_text_color = $modality_theme_options['footer_widget_text_color'];
    $footer_widget_text_border_color = $modality_theme_options['footer_widget_text_border_color'];
    $footer_social_color = $modality_theme_options['footer_social_color'];
    /**
     * Blog Settings
     */
    $blog_posts_home_color = $modality_theme_options['blog_posts_home_color'];
    $blog_bg_color = $modality_theme_options['blog_bg_color'];
    $blog_title_color = $modality_theme_options['blog_title_color'];
    $blog_post_color = $modality_theme_options['blog_post_color'];
    $blog_meta_color = $modality_theme_options['blog_meta_color'];
    $blog_posts_top_color = $modality_theme_options['blog_posts_top_color'];
    $blog_posts_top_font_color = $modality_theme_options['blog_posts_top_font_color'];
    /**
     * Get Started Section
     */
    $getst_bg_color = $modality_theme_options['getst_bg_color'];
    $getst_header_color = $modality_theme_options['getst_header_color'];
    $getst_text_color = $modality_theme_options['getst_text_color'];
    $getst_button_color = $modality_theme_options['getst_button_color'];
    /**
     * Features Section
     */
    $features_bg_color = $modality_theme_options['features_bg_color'];
    $features_text_color = $modality_theme_options['features_text_color'];
//.........这里部分代码省略.........
开发者ID:ReConcepts,项目名称:mashariki,代码行数:101,代码来源:modality-customizer.php


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