Example #1
0
/**
 * 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;
}
Example #2
0
    ?>
>
            <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">
Example #3
0
            <?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>';
    }
Example #4
0
                    <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()) {
Example #5
0
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); }
            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 
}
?>
Example #7
0
            <?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 
}
?>
Example #8
0
?>
<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']) {
Example #9
0
            ?>
                            <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');
Example #10
0
                    <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'] . '">';
                }
Example #11
0
$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']) {
Example #12
0
        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 
}
?>
Example #13
0
}
?>
    </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;
?>
Example #14
0
    ?>
    <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()
Example #15
0
/**
 * 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;
}
Example #16
0
?>
    </div>
    <div class="rightboxdesc">
        <?php 
echo ale_get_option('right_second_desc');
?>
    </div>
</div>

<div class="inforight">
    <div class="rightboxtitle">
        <?php 
if (ale_get_option('right_third_link')) {
    echo '<a href="' . ale_get_option('right_third_link') . '" >';
}
?>
        <?php 
echo ale_get_option('right_third_title');
?>
        <?php 
if (ale_get_option('right_third_link')) {
    echo '</a>';
}
?>
    </div>
    <div class="rightboxdesc">
        <?php 
echo ale_get_option('right_third_desc');
?>
    </div>
</div>
Example #17
0
}
?>
    </div>
    <?php 
if (ale_get_option('rightsidebarshop') == 1) {
    ?>
        <div class="rightsidebar">
            <?php 
    include THEME_PATH . '/templates/sidebar-right-shop.php';
    ?>
        </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebarshop') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <div class="pagelayout cf">

            <?php 
if (apply_filters('woocommerce_show_page_title', true)) {
    ?>
                <header class="page-title"><h2 class="a"><?php 
    woocommerce_page_title();
    ?>
</h2></header>
            <?php 
Example #18
0
/**
 * Get twitter URL
 * @return string
 */
function ale_get_twitter()
{
    return ale_get_option('twi') ? 'http://twitter.com/#!/' . ale_get_option('twi') : '';
}
Example #19
0
        echo ale_get_share('twi');
        ?>
" class="twiicon" onclick="window.open(this.href, 'Share on Twitter', 'width=600,height=300'); return false">Twitter</a>
                            <a href="<?php 
        echo ale_get_share('goglp');
        ?>
" class="gooplus" onclick="window.open(this.href, 'Share on Google+', 'width=600,height=300'); return false">Google+</a>
                        </div>
                    </div>
                </div>
                <section class="full">
                    <?php 
        ale_part('postcontent');
        ?>
                    <?php 
        if (ale_get_option('commentonvideo') == 1) {
            comments_template();
        }
        ?>
                </section>
            </article>
            <?php 
    }
} else {
    ?>
            <?php 
    ale_part('notfound');
    ?>
            <?php 
}
?>
}
?>
    </div>
    <?php 
if (ale_get_option('rightsidebartestimonial') == 1) {
    ?>
    <div class="rightsidebar">
        <?php 
    include 'templates/sidebar-right-testimonial.php';
    ?>
    </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebartestimonial') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <header class="page-title">
                <h2 class="a"><?php 
_e('Testimonials', 'aletheme');
?>
</h2>
                <div class="toppagination">
                    <div class="pagpages">
                        <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
?>
Example #21
0
}
?>
        </div>
        <?php 
if (ale_get_option('rightsidebarblog') == 1) {
    ?>
            <div class="rightsidebar">
                <?php 
    include 'templates/sidebar-right-blog.php';
    ?>
            </div>
        <?php 
}
?>
        <div class="rightside <?php 
if (ale_get_option('rightsidebarblog') == 1) {
    echo 'centerside';
}
?>
">
            <div class="margincontentbox">
                <div class="pagelayout new-blog-3 cf">
                    <?php 
if (ale_get_meta('itemblogcategory')) {
    $showcategoriesitems = '&cat=' . ale_get_meta('itemblogcategory');
} else {
    $showcategoriesitems = '';
}
query_posts('&post_type=post' . $showcategoriesitems . '&posts_per_page=' . ale_get_meta('itemblogpage', 'true', $blog_page_id) . '&paged=' . $paged);
?>
                    <header class="page-title">
Example #22
0
/**
 * Get custom RSS url
 */
function ale_get_favicon()
{
    $favicon = ale_get_option('favicon');
    return $favicon ? $favicon : THEME_URL . '/aletheme/assets/favicon.ico';
}
Example #23
0
    <div class="soclikesline cf">
        <div class="lefticons">
            <div class="couintbox"><?php 
    echo getPostLikeLink($post->ID);
    ?>
</div><div class="soctext"> &nbsp;<?php 
    _e('likes', 'aletheme');
    ?>
 / <?php 
    printf(_n('One comment', '%1$s Comments', get_comments_number(), 'aletheme'), number_format_i18n(get_comments_number()));
    ?>
</div>
        </div>
        <div class="righticons">
            <?php 
    if (ale_get_option('social_sharing')) {
        ?>
            <div class="righticonstext">
                <?php 
        _e('Share this post:', 'aletheme');
        ?>
            </div>
            <div class="righticonsbuttons">
                <a href="<?php 
        echo ale_get_share('fb');
        ?>
" class="fbicon" onclick="window.open(this.href, 'Share on Facebook', 'width=600,height=300'); return false">Facebook</a>
                <a href="<?php 
        echo ale_get_share('twi');
        ?>
" class="twiicon" onclick="window.open(this.href, 'Share on Twitter', 'width=600,height=300'); return false">Twitter</a>
    echo ale_get_meta('conemailtwo');
    ?>
"><?php 
    echo ale_get_meta('conemailtwo');
    ?>
</a></span><?php 
}
?>
                            <?php 
if (ale_get_option('twi')) {
    ?>
<span class="twiico"><a href="http://twitter.com/#!/<?php 
    echo ale_get_option('twi');
    ?>
"><?php 
    echo ale_get_option('twi');
    ?>
</a></span><?php 
}
?>
                        </div>
                    </div>
                    <div class="boxcontwo">
                        <div class="title">
                            <?php 
_e('Phone number', 'aletheme');
?>
:
                        </div>
                        <div class="phoneconsbox">
                            <?php 
Example #25
0
    </div>
	<footer id="footer-main" role="contentinfo">
		<?php 
if (ale_get_option('copyrights')) {
    ?>
			<p class="copy"><?php 
    echo ale_option('copyrights');
    ?>
</p>
		<?php 
} else {
    ?>
			<p class="copy">&copy; <?php 
    _e('2014. Socha Responsive Theme. ALL RIGHTS RESERVED.', 'aletheme');
    ?>
</p>
		<?php 
}
?>
        <div class="topbutton">
            <a href="#top" id="gotop"><?php 
_e('TOP', 'aletheme');
?>
</a>
        </div>
        <div class="cf"></div>
	</footer>
<?php 
wp_footer();
?>
Example #26
0
    if (ale_get_option('inta')) {
        echo '<li><a href="' . ale_get_option('inta') . '" rel="external" class="instaicon" >Instagram</a></li>';
    }
    ?>
                        <?php 
    if (ale_get_option('liin')) {
        echo '<li><a href="' . ale_get_option('liin') . '" rel="external" class="liinicon" >Linked in</a></li>';
    }
    ?>
                        <?php 
    if (ale_get_option('pica')) {
        echo '<li><a href="' . ale_get_option('pica') . '" rel="external" class="picaicon" >Picassa</a></li>';
    }
    ?>
                        <?php 
    if (ale_get_option('rssicon')) {
        ?>
<li><a href="<?php 
        echo home_url();
        ?>
/feed" rel="external" class="rssicon">RSS</a></li><?php 
    }
    ?>
                    </ul>
                </div>
            </div>
            <?php 
}
?>
        </nav>
    </header>
Example #27
0
if (ale_get_option('thirdbottomitemlink')) {
    echo '</a>';
}
?>
            <figcaption><?php 
if (ale_get_option('thirdbottomitemlink')) {
    echo '<a href="' . ale_get_option('thirdbottomitemlink') . '"></a>';
}
?>
</figcaption>
        </figure>
        <div class="whitebox">
            <div class="title">
                <?php 
if (ale_get_option('thirdbottomitemlink')) {
    echo '<a href="' . ale_get_option('thirdbottomitemlink') . '">';
}
echo ale_get_option('thirdbottomitemtitle');
if (ale_get_option('thirdbottomitemlink')) {
    echo '</a>';
}
?>
            </div>
            <div class="category">
                <?php 
echo ale_get_option('thirdbottomitemcategory');
?>
            </div>
        </div>
    </div>
</div>
Example #28
0
}
?>
    </div>
    <?php 
if (ale_get_option('rightsidebarcustom') == 1) {
    ?>
    <div class="rightsidebar">
        <?php 
    include 'templates/sidebar-right-custom.php';
    ?>
    </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebarcustom') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <div class="pagelayout cf">
                <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
                <?php 
        ale_part('pagehead');
        ?>
                <section class="story cf">
get_sidebar('mainmenu');
?>
    </div>
    <?php 
if (ale_get_option('rightsidebargallery') == 1) {
    ?>
        <div class="rightsidebar">
            <?php 
    include 'templates/sidebar-right-gallery.php';
    ?>
        </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebargallery') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <header class="page-title">
                <h2 class="a"><?php 
_e('Gallery', 'aletheme');
?>
</h2>
                <div class="toppagination">
                    <?php 
posts_nav_link(' / ', __('NEWER'), __('OLDER'));
?>
                </div>
Example #30
0
}
?>
    </div>
    <?php 
if (ale_get_option('rightsidebarpress') == 1) {
    ?>
        <div class="rightsidebar">
            <?php 
    include 'templates/sidebar-right-press.php';
    ?>
        </div>
    <?php 
}
?>
    <div class="rightside <?php 
if (ale_get_option('rightsidebarpress') == 1) {
    echo 'centerside';
}
?>
">
        <div class="margincontentbox">
            <header class="page-title">
                <h2 class="a"><?php 
_e('Press', 'aletheme');
?>
</h2>
                <div class="toppagination">
                    <div class="pagpages">
                        <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
?>