Last active
August 29, 2015 14:11
-
-
Save badah/e925ab0a03f2bd68721f to your computer and use it in GitHub Desktop.
Wordpress: Remove Jetpack CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<div id="inner-content" class="wrap cf"> | |
<div id="main" class="m-all t-all d-all cf" role="main"> | |
<!-- TODO: O que é? O que faz (tagline, descrição curta) --> | |
<!-- TODO: Serviços; Métodos, Diferenciais --> | |
<section class="section-portfolio"> | |
<h1 class="h1">Portfolio</h1> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="t-all d-all"> | |
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article"> | |
<header class="article-header"> | |
<h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> | |
<p class="byline vcard"> | |
<?php | |
//PHP > 5.3 | |
//$date = DateTime::createFromFormat('Ymd', get_field('date')); | |
//echo $date->format('d/m'); | |
//PHP < 5.3 | |
$date = get_field('project-release'); | |
// extract d/m | |
$y = substr($date, 0, 4); | |
$m = substr($date, 4, 2); | |
$d = substr($date, 6, 2); | |
// create UNIX | |
$time = strtotime("{$d}-{$m}-{$y}"); | |
// format date (23/11/1988) | |
//echo date('d/m/y', $time); | |
printf( __( 'Released: <time class="updated" datetime="%1$s">%2$s</time>', 'bonestheme' ), date('y-m-d', $time), date('d/m/y', $time) ); | |
?> | |
</p> | |
</header> | |
<section class="entry-content cf"> | |
<?php the_content(); ?> | |
<?php if ( get_field('project-url') ) : ?> | |
<p class="project-url"><a href="<?php the_field('project-url') ; ?>"><?php echo __('Visit', 'bonestheme'); ?></a></p> | |
<?php endif; ?> | |
<p class="project-colaboration"><a href="<?php the_field('project-collaboration-url') ?>"><?php the_field('project-collaboration'); ?></a></p> | |
</section> | |
<footer class="article-footer cf"> | |
<?php printf( '<p class="footer-category">' . __('Category', 'bonestheme' ) . ': %1$s</p>' , get_the_term_list( get_the_ID(), 'custom_cat_dev', "", ", ", "" ) ); ?> | |
<?php printf( '<p class="footer-tags">' . __('Tags', 'bonestheme' ) . ': %1$s</p>' , get_the_term_list( get_the_ID(), 'custom_tag_feat', "", ", ", "" ) ); ?> | |
</footer> | |
</article> | |
</div> <?php // end .card ?> | |
<?php endwhile; ?> | |
<?php bones_page_navi(); ?> | |
<?php endif; ?> | |
</section> <?php // end .section-portfolio ?> | |
<!-- TODO: Quem é Daniel? Breve curriculo. Avatar. Link para visualização de currículo em PDF --> | |
<!-- | |
<section class="section-profile"> | |
<h1><?php echo __('Profile', 'bonestheme') ?></h1> | |
<div class="card m-all t1of2 d-1of2"> | |
<?php echo get_avatar( '[email protected]', 64 ); ?> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laboriosam at delectus dolor ex minus quis in, cupiditate odit, illo vel voluptas hic aspernatur sint nobis iusto officia recusandae. Sit, aperiam?</p> | |
<p><a href="#" class="blue-btn"><?php echo __('curriculum') ?></a></p> | |
</div> | |
</section> | |
--> | |
<section> | |
<h1></h1> | |
</section> | |
</div> <?php // end #main ?> | |
</div> <?php // end #inner-content ?> | |
</div> <?php // end #content ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment