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


PHP ale_get_option函数代码示例

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


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

示例1: ale_add_opengraph_namespace

/**
 * Add OpenGraph attributes to html tag
 * @param type $output
 * @return string 
 */
function ale_add_opengraph_namespace($output)
{
    if (ale_get_option('og_enabled')) {
        if (!stristr($output, 'xmlns:og')) {
            $output = $output . ' xmlns:og="http://ogp.me/ns#"';
        }
        if (!stristr($output, 'xmlns:fb')) {
            $output = $output . ' xmlns:fb="http://ogp.me/ns/fb#"';
        }
    }
    return $output;
}
开发者ID:BMNTeam,项目名称:myFirstThemeToTf,代码行数:17,代码来源:front.php

示例2: ale_part

    ?>
>
            <a id="rel-top"></a>
            <?php 
    if (ale_get_option('switcher') == 1) {
        ale_part('switcher');
    }
    ?>
        </div>
    <?php 
} else {
    ?>
        <div class="topline" <?php 
    if (ale_get_option('switcher') == 1) {
        echo 'style="min-height:35px; line-height:35px;"';
    }
    ?>
>
            <a id="rel-top"></a>
            <?php 
    if (ale_get_option('switcher') == 1) {
        ale_part('switcher');
    }
    ?>
        </div>
    <?php 
}
?>

        <div id="content-main" role="main">
开发者ID:serdimoa,项目名称:wordpress,代码行数:30,代码来源:header.php

示例3: foreach

            <?php 
    include 'templates/sidebar-right-blog.php';
    ?>
        </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebarblog') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <?php 
if (ale_get_option('topblogbox') == 1) {
    ?>
            <div class="postnavigation cf">
                <div class="categoriesbox">
                    <div class="title"><?php 
    _e('BLOG CATEGORIES', 'aletheme');
    ?>
:</div>
                    <div class="scrollcategory">
                        <ul class="categorieslist">
                            <?php 
    $catlist = get_categories();
    echo '<li><a href="' . home_url() . '/blog" >' . __('All') . '</a></li>';
    foreach ($catlist as $cat) {
        echo '<li><a href="' . get_category_link($cat->term_id) . '">' . $cat->cat_name . '</a></li>';
    }
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:index.php

示例4: ale_get_option

                    <p>
                        <?php 
    echo ale_get_option('mainpageabouttext');
    ?>
                    </p>
                </div>
            </div>
            <div class="threemainboxes">
                <?php 
    if (ale_get_option('homepagebottom') == 'blogposts') {
        include 'templates/home_bottom_posts.php';
    } elseif (ale_get_option('homepagebottom') == 'customboxes') {
        include 'templates/home_bottom_boxes.php';
    } elseif (ale_get_option('homepagebottom') == 'recentposts') {
        include 'templates/home_bottom_recent.php';
    } elseif (ale_get_option('homepagebottom') == 'customcontent') {
        echo '<div class="homecustomcontent">';
        the_content();
        echo '</div>';
    }
    ?>
            </div>
        <?php 
}
?>
    </section>
    <div class="cf"></div>
        <div class="homeonebottomgal">
            <?php 
if (have_posts()) {
    while (have_posts()) {
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:page-home.php

示例5: str_replace

if ($socha_h6['style']) {
    echo "font-style:" . $socha_h6['style'] . ";";
}
if ($socha_h6['color']) {
    echo "color:" . $socha_h6['color'] . ";";
}
if ($socha_h6['face']) {
    $h6family = str_replace('+', ' ', $socha_h6['face']);
    echo "font-family:" . $h6family . ";";
}
?>
    }

    <?php 
if (!isset($_COOKIE["sochapat"])) {
    if (ale_get_option('sitepat')) {
        if ($socha_background['image']) {
            echo "background-image: url(" . $socha_background['image'] . ");";
        }
        ?>
        <?php 
    }
} else {
    ?>
        body { background:transparent url(<?php 
    echo get_template_directory_uri();
    ?>
/css/images/patterns/<?php 
    echo $_COOKIE["sochapat"];
    ?>
.png); }
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:css-option.php

示例6: __

            echo '<strong>' . __('Date') . ':</strong> ' . date("d M-Y", strtotime(ale_get_meta('inspirationdate'))) . "<br />";
        }
        ?>
                                <?php 
        if (ale_get_meta('impress')) {
            echo '<strong>' . __('Impression & Feelings') . ':</strong> ' . ale_get_meta('impress');
        }
        ?>
                            </blockquote>
                        </div>
                        <?php 
        wp_link_pages(array('before' => '<section class="story-pages"><p>' . __('Pages:', 'aletheme'), 'after' => '</p></section>'));
        ?>
                    </section>
                    <?php 
        if (ale_get_option('commentoninspiration') == 1) {
            comments_template();
        }
        ?>
                </section>
            </article>
            <?php 
    }
} else {
    ?>
            <?php 
    ale_part('notfound');
    ?>
            <?php 
}
?>
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:single-inspiration.php

示例7: wp_nav_menu

            <?php 
if (has_nav_menu('header_left_menu')) {
    wp_nav_menu(array('theme_location' => 'header_left_menu', 'menu' => 'Header Left Menu', 'menu_class' => 'menu menu-left cf', 'walker' => new Aletheme_Nav_Walker(), 'container' => ''));
}
?>

            <!-- Logo -->
            <ul class="logo">
                <?php 
if (ale_get_option('sitelogo')) {
    ?>
                    <a href="<?php 
    echo home_url();
    ?>
/" class="customlogo"><img src="<?php 
    echo ale_get_option('sitelogo');
    ?>
" /></a>
                <?php 
} else {
    ?>
                    <a href="<?php 
    echo home_url();
    ?>
/" class="alelogo"><?php 
    echo bloginfo('name');
    ?>
</a>
                <?php 
}
?>
开发者ID:BMNTeam,项目名称:myFirstThemeToTf,代码行数:31,代码来源:header.php

示例8: get_sidebar

?>
<section class="singlepage">
    <div class="leftside">
        <?php 
get_sidebar('mainmenu');
?>
    </div>
    <div class="rightside">
        <div class="margincontentbox">
            <div class="slider-wrapper theme-default">
                <?php 
//If the Advanced Template slider is not selected, the theme will get the Default Template slider.
if (ale_get_option('sliderslug2')) {
    $gettheslider = ale_get_option('sliderslug2');
} else {
    $gettheslider = ale_get_option('sliderslug');
}
$slider = ale_sliders_get_slider($gettheslider);
?>
                <?php 
if ($slider) {
    ?>
                <div id="slider" class="nivoSlider">
                    <?php 
    $i = 0;
    ?>
                    <?php 
    foreach ($slider['slides'] as $slide) {
        ?>
                        <?php 
        if ($slide['url']) {
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:template-home-one.php

示例9: the_content

            ?>
                            <div class="gallerycontent cf">
                                <?php 
            the_content();
            ?>
                            </div>
                        <?php 
        }
        ?>

                        <?php 
        if (!post_password_required()) {
            ?>
                        <section class="full">
                            <?php 
            if (ale_get_option('commentongallery') == 1) {
                comments_template();
            }
            ?>
                        </section>
                        <?php 
        }
        ?>
                    </div>
                </article>
                <?php 
    }
} else {
    ?>
                <?php 
    ale_part('notfound');
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:single-gallery.php

示例10: woocommerce_page_title

                    <header class="page-title"><h2 class="a"><?php 
    woocommerce_page_title();
    ?>
</h2></header>
                <?php 
}
?>

                <?php 
if (ale_get_option('shopslider')) {
    ?>
                <div class="shopsliderbox">
                    <div class="shopslider cf">
                        <ul class="slides cf">
                            <?php 
    $slider = ale_sliders_get_slider(ale_get_option('shopslider'));
    ?>
                            <?php 
    if ($slider) {
        ?>
                                <?php 
        foreach ($slider['slides'] as $slide) {
            ?>
                                    <li>
                                        <?php 
            if ($slide['image']) {
                ?>
                                            <?php 
                if ($slide['url']) {
                    echo '<a href="' . $slide['url'] . '">';
                }
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:archive-product.php

示例11: ale_get_option

$ale_h3 = ale_get_option('h3sty');
$ale_h4 = ale_get_option('h4sty');
$ale_h5 = ale_get_option('h5sty');
$ale_h6 = ale_get_option('h6sty');
if (ale_get_option('headerfontex')) {
    $headerfontex = ":" . ale_get_option('headerfontex');
} else {
    $headerfontex = "";
}
if (ale_get_option('mainfontex')) {
    $mainfontex = ":" . ale_get_option('mainfontex');
} else {
    $mainfontex = "";
}
if (ale_get_option('headerfont')) {
    echo "<link href='http://fonts.googleapis.com/css?family=" . ale_get_option('headerfont') . $headerfontex . "|" . ale_get_option('mainfont') . $mainfontex . "' rel='stylesheet' type='text/css'>";
}
?>
<style type='text/css'>
    body {
        <?php 
if ($ale_font['size']) {
    echo "font-size:" . $ale_font['size'] . ";";
}
if ($ale_font['style']) {
    echo "font-style:" . $ale_font['style'] . ";";
}
if ($ale_font['color']) {
    echo "color:" . $ale_font['color'] . ";";
}
if ($ale_font['face']) {
开发者ID:BMNTeam,项目名称:myFirstThemeToTf,代码行数:31,代码来源:css-option.php

示例12: the_title

        echo $post->ID;
        ?>
" data-post-id="<?php 
        echo $post->ID;
        ?>
">
                <header class="page-title"><h2 class="a"><?php 
        the_title();
        ?>
</h2></header>
                <section class="full">
                    <?php 
        ale_part('postcontent');
        ?>
                    <?php 
        if (ale_get_option('commentonpress') == 1) {
            comments_template();
        }
        ?>
                </section>
            </article>
            <?php 
    }
} else {
    ?>
            <?php 
    ale_part('notfound');
    ?>
            <?php 
}
?>
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:single-press.php

示例13:

}
?>
    </div>
    <?php 
if (ale_get_option('rightsidebarvideo') == 1) {
    ?>
        <div class="rightsidebar">
            <?php 
    include 'templates/sidebar-right-video.php';
    ?>
        </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebarvideo') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <header class="page-title">
                <h2 class="a"><?php 
_e('Videos', 'aletheme');
?>
</h2>
                <div class="toppagination">
                    <div class="pagpages">
                        <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
?>
开发者ID:serdimoa,项目名称:wordpress,代码行数:31,代码来源:archive-video.php

示例14: _e

    ?>
    <section class="disqus-comments">
        <?php 
    _e('Please download the DISQUS plugin from Wordpress Repository and install it.', 'aletheme');
    ?>
    </section>
<?php 
} elseif (ale_get_option('comments_style') == 'lf') {
    ?>
    <section class="disqus-comments">
        <?php 
    _e('Please download the Livefyre Realtime Comments plugin from Wordpress Repository and install it.', 'aletheme');
    ?>
    </section>
<?php 
} elseif (ale_get_option('comments_style') == 'ws') {
    ?>
    <section class="defaultwp">
        <?php 
    if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) {
        ?>
            <p class="comments-closed"><?php 
        _e('Comments are closed.', 'aletheme');
        ?>
</p>
        <?php 
    }
    ?>
        <div id="comments">
            <?php 
    //wp_list_comments()
开发者ID:BMNTeam,项目名称:myFirstThemeToTf,代码行数:31,代码来源:comments.php

示例15: ale_create_vimeo_player

/**
 * Vimeo Player
 *
 * Creates the necessary iframe structure for Vimeo
 * Gets custom theme options and adds to iframe src.
 *
 * @return string
 */
function ale_create_vimeo_player($media_source = '', $width = 640, $height = 360, $allow_autoplay = 1)
{
    if (preg_match('~^http://(?:www\\.)?vimeo\\.com/(?:clip:)?(\\d+)~', $media_source, $matches)) {
        /* Give player a unique ID */
        $player_id = 'player_' . $matches[1] . '_' . ale_get_random_number();
        $color = ale_get_option('primary_2');
        $video_color = 1 == ale_get_option('enable_styles') && $color ? ltrim($color, '#') : '252A31';
        $defaults = array('wmode' => 'transparent', 'api' => 1, 'player_id' => $player_id, 'title' => 0, 'byline' => 0, 'portrait' => 0, 'autoplay' => null, 'loop' => null, 'rel' => null, 'color' => $video_color);
        $params = wp_parse_args(parse_url($media_source, PHP_URL_QUERY), $defaults);
        if (0 == $allow_autoplay || !is_singular()) {
            $params['autoplay'] = 0;
        }
        $url = 'http://player.vimeo.com/video/' . $matches[1] . '/?' . http_build_query(array_filter($params), '', '&');
        $output = '<' . 'iframe width="' . $width . '" height="' . $height . '" src="' . $url . '" id="' . $player_id . '" class="vimeo-player" frameborder="0" data-playcount="0" webkitAllowFullScreen allowFullScreen></iframe>';
    } else {
        $output = __('Sorry that seems to be an invalid <strong>Vimeo</strong> URL. Please check it again. Make sure there is a string of numbers at the end (e.g. http://vimeo.com/1234567).', 'aletheme');
    }
    return $output;
}
开发者ID:BMNTeam,项目名称:myFirstThemeToTf,代码行数:27,代码来源:images_media.php


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