Exemplo n.º 1
1
function show_links($items)
{
    if ($items->have_posts()) {
        while ($items->have_posts()) {
            $items->the_post();
            $url = carbon_get_post_meta(get_the_ID(), 'crb_sponsor_link');
            ?>
          <div class="brand"
               data-brand-name="<?php 
            the_title();
            ?>
"
               data-brand-link="<?php 
            echo $url;
            ?>
"
               data-brand-desc="<?php 
            echo wp_filter_nohtml_kses(get_the_content());
            ?>
">
              <div class="brand__controls">
                  <div class="brand__more">
                      <a title="Dowiedz się więcej" href="" class="link link--controls" target="_blank">
                          <i class="icon-dot-3"></i>
                      </a>
                  </div>
                  <div class="brand__link">
                      <a title="Odwiedź stronę" href="<?php 
            echo $url;
            ?>
" class="link link--controls" target="_blank">
                          <i class="icon-link"></i>
                      </a>
                  </div>
              </div>
              <img class="brand__logo blazy" alt=""
              src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
              data-src="<?php 
            echo wp_get_attachment_image_src(get_post_thumbnail_id(), 'card', true)[0];
            ?>
" />
          </div>
<?php 
        }
    } else {
        echo 'Nic a nic';
    }
}
Exemplo n.º 2
1
<?php

/*
* Content Page
*
*/
$wise_page_feat = carbon_get_post_meta(get_the_ID(), 'wise_page_feat');
$wise_page_share = carbon_get_post_meta(get_the_ID(), 'wise_page_share');
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<div class="top-meta">
			<?php 
wise_breadcrumbs();
?>
		</div><!-- End of .top-meta -->
		
		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>
		<?php 
if ($wise_page_share == 'enable') {
    ?>
			<div class="share-entry-meta">
				<?php 
function carbon_get_the_post_meta($name, $type = null)
{
    return carbon_get_post_meta(get_the_id(), $name, $type);
}
Exemplo n.º 4
1
/*
* Template Name: Page Single
*
*/
get_header();
$wise_page_feat = carbon_get_post_meta(get_the_ID(), 'wise_page_feat');
$wise_page_share = carbon_get_post_meta(get_the_ID(), 'wise_page_share');
?>
<div class="content-wrapper-outer">
	<div class="content-wrapper" data-sticky_parent>
	
		<div id="primary" class="content-area">
			<main id="main" class="site-main single-page">
				<?php 
$wise_endis_home = carbon_get_post_meta(get_the_ID(), 'wise_endis_homepage');
if ($wise_endis_home == 'enable') {
    echo '<div class="page-singles">';
    echo get_sidebar('home');
    echo '</div>';
} else {
    while (have_posts()) {
        the_post();
        ?>

							<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('page-singles');
        ?>
Exemplo n.º 5
1
<?php

/*
* Template to Display Page Sidebar
*
*/
$wise_sidebar = carbon_get_post_meta(get_the_ID(), 'wise_custom_sidebar');
$sidebar_opt = array('before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<div class="widget-title"><h2>', 'after_title' => '</h2></div>');
?>
<div class="sidebar-wrapper-outer">
	<div id="sidebarright" class="widget-area-right" data-sticky_column>		
		<?php 
wise_dynamic_sidebar($wise_sidebar, $sidebar_opt);
?>
	</div><!-- End of #sidebarright -->
</div>
function rb_resume_intro_shortcode($atts, $content = null)
{
    shortcode_atts(array('id' => false), $atts);
    if ($atts['id'] === false) {
        return '';
    }
    $resume = get_post($atts['id']);
    if (!$resume) {
        return '';
    }
    $sections = carbon_get_post_meta($atts['id'], 'rb_resume_sections', 'complex');
    if (!$sections) {
        return;
    }
    // Sort the sections by key (for those servers that are messing with the order for some reason)
    ksort($sections);
    foreach ($sections as $section) {
        if ($section['_type'] == '_introduction_block') {
            $output = '<div class="rb-resume-block"><div class="rb-about">' . rb_render_resume_intro($section, false) . '</div></div>';
        }
    }
    return $output;
}
Exemplo n.º 7
1
<?php

/*
* Template to Display Dynamic Homepage
*
*/
$wise_homepage = carbon_get_post_meta(get_the_ID(), 'wise_custom_homepage');
$homepage_opt = array('before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '');
?>
	
<?php 
wise_dynamic_sidebar($wise_homepage);