예제 #1
0
<?php

get_header();
?>

<?php 
$has_sidebar = ss_framework_check_page_layout();
?>

<?php 
$page_title = ss_framework_get_custom_field('ss_page_title') ? ss_framework_get_custom_field('ss_page_title') : get_the_title();
?>

<section id="content" class="clearfix <?php 
echo ss_framework_check_sidebar_position();
?>
">

	<div class="container">

		<?php 
/*if ( !is_front_page() && ss_framework_get_custom_field('ss_disable_page_header') != '1' ): ?>

			<header class="page-header clearfix">

				<h1 class="page-title"><?php echo $page_title ?></h1>

				<?php if( ss_framework_get_custom_field('ss_page_description') ): ?>

					<hr />
예제 #2
0
<div class="entry-body">

	<a href="<?php 
echo ss_framework_get_custom_field('ss_link_src', $post->ID);
?>
" title="<?php 
printf(esc_attr__('External link to %s', 'ss_framework'), the_title_attribute('echo=0'));
?>
" target="_blank">
		<h1 class="title"><?php 
the_title();
?>
</h1>
	</a>

	<?php 
echo ss_framework_post_content();
?>

</div><!-- end .entry-body -->

<div class="entry-meta">

	<?php 
echo ss_framework_post_meta();
?>

</div><!-- end .entry-meta -->
예제 #3
0
	<div class="entry-audio">
	
	<?php 
if (ss_framework_get_custom_field('ss_audio_mp3', $post->ID) || ss_framework_get_custom_field('ss_audio_ogg', $post->ID)) {
    $shortcode = '[audio';
    if (ss_framework_get_custom_field('ss_audio_mp3', $post->ID) && !isset($GLOBALS['post-carousel'])) {
        $shortcode .= ' mp3="' . ss_framework_get_custom_field('ss_audio_mp3', $post->ID) . '"';
    }
    if (ss_framework_get_custom_field('ss_audio_ogg', $post->ID)) {
        $shortcode .= ' ogg="' . ss_framework_get_custom_field('ss_audio_ogg', $post->ID) . '"';
    }
    $shortcode .= ']';
    echo do_shortcode($shortcode);
} elseif (ss_framework_get_custom_field('ss_audio_external', $post->ID)) {
    echo do_shortcode(ss_framework_get_custom_field('ss_audio_external', $post->ID));
}
?>
		
	</div><!-- end .entry-audio -->

	<?php 
echo ss_framework_post_content();
?>

</div><!-- end .entry-body -->

<div class="entry-meta">

	<?php 
echo ss_framework_post_meta();
예제 #4
0
function ss_framework_team_member_sc($atts, $content = null)
{
    extract(shortcode_atts(array('id' => '', 'single_url' => '', 'single_target' => '_self', 'column' => 'one-fourth', 'last' => ''), $atts));
    global $post;
    $args = array('name' => esc_attr($id), 'post_type' => 'team', 'posts_per_page' => '1');
    $social_links = array('behance', 'delicious', 'deviantart', 'digg', 'dribbble', 'dropbox', 'facebook', 'flickr', 'forrst', 'github', 'google', 'googleplus', 'ichat', 'lastfm', 'linkedin', 'mobypicture', 'myspace', 'picasa', 'pinterest', 'plixi', 'skype', 'stumbleupon', 'tumblr', 'twitter', 'vimeo', 'youtube', 'email');
    query_posts($args);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $output = '<div class="team-member ' . ($column ? esc_attr($column) : null) . ' ' . ($last ? esc_attr($last) : null) . '">';
            $permalink = str_replace('team-member/', '', get_permalink($post->ID));
            $output .= '<a href="' . $permalink . '" target="' . esc_attr($single_target) . '">';
            $output .= get_the_post_thumbnail(get_the_ID(), 'full', array('class' => 'photo'));
            $output .= '</a>';
            $output .= '<div class="content">';
            $output .= '<h4 class="name">';
            $output .= $single_url ? '<a href="' . esc_url($single_url) . '" target="' . esc_attr($single_target) . '">' . get_the_title() . '</a>' : get_the_title();
            $output .= '</h4>';
            $output .= '<span class="job-title">' . ss_framework_get_custom_field('ss_job_title') . '</span>';
            $content = get_the_content();
            $content = apply_filters('the_content', $content);
            $content = str_replace(']]>', ']]&gt;', $content);
            $output .= $content;
            if (strpos(implode(' ', get_post_custom_keys()), 'ss_social_link_') !== false) {
                $output .= '<ul class="social-links">';
                foreach ($social_links as $social_link) {
                    $address = '';
                    if ($social_link == 'twitter') {
                        $address = 'http://twitter.com/';
                    }
                    if ($social_link == 'email') {
                        $address = 'mailto:';
                    }
                    if (ss_framework_get_custom_field('ss_social_link_' . $social_link)) {
                        $output .= '<li class="' . esc_attr($social_link) . '"><a href="' . $address . ss_framework_get_custom_field('ss_social_link_' . $social_link) . '" target="_blank">' . esc_attr(ucfirst($social_link)) . '</a></li>';
                    }
                }
                $output .= '</ul><!-- end .social-links -->';
            }
            $output .= '</div><!-- end .content -->';
            $output .= '</div><!-- end .team-member -->';
            if ($last) {
                $output .= '<div class="clear"></div>';
            }
        }
    }
    wp_reset_query();
    return $output;
}
예제 #5
0
<?php

get_header();
?>

<?php 
$has_sidebar = ss_framework_check_page_layout($single_project = true);
?>

<?php 
$page_title = ss_framework_get_custom_field('ss_page_title', of_get_option('ss_portfolio_parent')) ? ss_framework_get_custom_field('ss_page_title', of_get_option('ss_portfolio_parent')) : get_the_title(of_get_option('ss_portfolio_parent'));
?>

<section id="content" class="clearfix <?php 
echo ss_framework_check_sidebar_position($single_project = true);
?>
">

	<div class="container">

		<header class="page-header">

			<h1 class="page-title align-left"><?php 
echo $page_title;
?>
</h1>
			
			<a href="<?php 
echo get_permalink(of_get_option('ss_portfolio_parent'));
?>
" class="button no-bg medium align-right">
예제 #6
0
    function ss_framework_insert_sliders_scripts()
    {
        global $wpdb;
        $query = "SELECT post_id\n\t\t\t\t  FROM {$wpdb->postmeta}\n\t\t\t\t  WHERE meta_key = 'ss_slider_slides'";
        $sliders = $wpdb->get_results($query);
        foreach ($sliders as $slider) {
            $post_obj = get_post($slider->post_id);
            // Check that slider actually exist, so we don't insert unnecessary code
            if (!ss_framework_has_shortcode('slider') && get_post_type() != 'slider') {
                continue;
            }
            // Check that slider is published
            if ($post_obj->post_status != 'publish') {
                continue;
            }
            ?>

<script>

(function( $ ) {

	var $slider = $('#ss-<?php 
            echo $post_obj->post_name;
            ?>
');

	if( $slider.length ) {

		// Prevent multiple initialization
		if( $slider.data('init') === true )
			return false;
		
		$slider.data( 'init', true )
			   .smartStartSlider({
			   	   pos                : <?php 
            echo ss_framework_get_custom_field('ss_slider_first_slide', $slider->post_id);
            ?>
,
				   width              : <?php 
            echo ss_framework_get_custom_field('ss_slider_width', $slider->post_id);
            ?>
,
				   height             : <?php 
            echo ss_framework_get_custom_field('ss_slider_height', $slider->post_id);
            ?>
,
				   contentSpeed       : <?php 
            echo ss_framework_get_custom_field('ss_slider_content_speed', $slider->post_id);
            ?>
,
				   showContentOnhover : <?php 
            echo ss_framework_get_custom_field('ss_slider_show_content_onhover', $slider->post_id);
            ?>
,
				   hideContent        : <?php 
            echo ss_framework_get_custom_field('ss_slider_hide_content', $slider->post_id);
            ?>
,
				   contentPosition    : "<?php 
            echo ss_framework_get_custom_field('ss_slider_content_position', $slider->post_id);
            ?>
",
				   timeout            : <?php 
            echo ss_framework_get_custom_field('ss_slider_autoplay', $slider->post_id);
            ?>
,
				   pause              : <?php 
            echo ss_framework_get_custom_field('ss_slider_stop_on_click', $slider->post_id);
            ?>
,
				   pauseOnHover       : <?php 
            echo ss_framework_get_custom_field('ss_slider_pause_on_hover', $slider->post_id);
            ?>
,
				   hideBottomButtons  : <?php 
            echo ss_framework_get_custom_field('ss_slider_hide_bottom_buttons', $slider->post_id) ? ss_framework_get_custom_field('ss_slider_hide_bottom_buttons', $slider->post_id) : 0;
            ?>
,
				   type               : {
					   mode           : "<?php 
            echo ss_framework_get_custom_field('ss_slider_transition', $slider->post_id);
            ?>
",
					   speed          : <?php 
            echo ss_framework_get_custom_field('ss_slider_speed', $slider->post_id);
            ?>
,
					   easing         : "<?php 
            echo ss_framework_get_custom_field('ss_slider_easing', $slider->post_id);
            ?>
",
					   seqfactor      : <?php 
            echo ss_framework_get_custom_field('ss_slider_seq_factor', $slider->post_id);
            ?>
				   }
			   });

		// Detect swipe gestures support
		if( Modernizr.touch ) {

			function swipeFunc( e, dir ) {
			
				var $slider = $( e.currentTarget );
				
				if( dir === 'left' ) {
					$slider.find('.pagination-container .next').trigger('click');
				}
				
				if( dir === 'right' ) {
					$slider.find('.pagination-container .prev').trigger('click');
				}
				
			}
			
			$slider.swipe({
				swipeLeft       : swipeFunc,
				swipeRight      : swipeFunc,
				allowPageScroll : 'auto'
			});
			
		}

	}

})( jQuery );

</script>

		<?php 
        }
    }
예제 #7
0
function ss_framework_manage_team_columns($column, $post_id)
{
    global $post;
    switch ($column) {
        case 'thumbnail':
            echo '<a href="' . get_edit_post_link($post_id) . '">' . get_the_post_thumbnail($post_id, array(50, 50), array('title' => get_the_title($post_id))) . '</a>';
            break;
        case 'job_title':
            echo ss_framework_get_custom_field('ss_job_title', $post_id);
            break;
        case 'description':
            echo get_the_excerpt();
            break;
        case 'shortcode':
            echo '<span class="shortcode-field">[team_member id="' . $post->post_name . '"]</span>';
            break;
        default:
            break;
    }
}
예제 #8
0
<?php

$type = isset($GLOBALS['post-carousel']) ? ' type="simple"' : null;
?>

<div class="entry-body">

	<?php 
echo do_shortcode('[quote author="' . ss_framework_get_custom_field('ss_quote_author', $post->ID) . '"' . $type . ']' . ss_framework_get_custom_field('ss_quote', $post->ID) . '[/quote]');
?>

	<?php 
echo ss_framework_post_content();
?>
	

</div><!-- end .entry-body -->

<div class="entry-meta">

	<?php 
echo ss_framework_post_meta();
?>

</div><!-- end .entry-meta -->
예제 #9
0
<?php

get_header();
?>

<?php 
$has_sidebar = ss_framework_check_page_layout();
?>

<?php 
$page_title = ss_framework_get_custom_field('ss_page_title', get_option('page_for_posts')) ? ss_framework_get_custom_field('ss_page_title', get_option('page_for_posts')) : get_the_title(get_option('page_for_posts'));
?>

<section id="content" class="clearfix <?php 
echo ss_framework_check_sidebar_position();
?>
">

	<div class="container clearfix">

		<header class="page-header">

			<h3><?php 
echo $page_title;
?>
</h3>

		</header><!-- end .page-header -->
		

		<?php 
예제 #10
0
    echo ss_framework_get_custom_field('ss_page_description');
    ?>
</h2>

			<?php 
}
?>

			<?php 
if (ss_framework_get_custom_field('ss_page_subdescription')) {
    ?>

				<hr />

				<h2 class="page-subdescription"><?php 
    echo ss_framework_get_custom_field('ss_page_subdescription');
    ?>
</h2>

			<?php 
}
?>

		</header><!-- end .page-header -->
		
		<?php 
if ($has_sidebar) {
    ?>

			<section id="main">