-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
671f71a
commit 5e729ad
Showing
11 changed files
with
1,036 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* Template Name: Archive Equipe | ||
* Description: A full-width template with no sidebar | ||
* | ||
* @package Tema Brasa | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="full-width"> | ||
<div id="content" role="main"> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="entry-header intro"> | ||
<h1 class="entry-title"><?php echo get_option('team_title'); ?></h1> | ||
<p class="lead"><?php echo get_option('team_subtitle'); ?></p><!-- .lead --> | ||
</header><!-- .entry-header --> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php get_template_part( 'content', 'team' ); ?> | ||
|
||
<?php endwhile; ?> | ||
|
||
</article><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php comments_template( '', true ); ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer('simples'); ?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/* | ||
* Content equipe | ||
*/ | ||
global $post; | ||
$thumb_src = null; | ||
if ( has_post_thumbnail($post->ID) ) { | ||
$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail' ); | ||
$thumb_src = $src[0]; | ||
} | ||
?> | ||
<article class="col-sm-6 profile"> | ||
<div class="profile-header"> | ||
<?php if ( $thumb_src ): ?> | ||
<img src="<?php echo $thumb_src; ?>" alt="<?php the_title(); ?>" class="img-circle"> | ||
<?php endif; ?> | ||
</div> | ||
|
||
<div class="profile-content"> | ||
<h3><?php the_title(); ?></h3> | ||
<p class="lead position"><?php the_field('team_position'); ?></p> | ||
<?php the_content(); ?> | ||
</div> | ||
|
||
<div class="profile-footer"> | ||
<a href="tel:<?php the_field('team_phone'); ?>"><i class="genericon genericon-handset"></i></a> | ||
<a href="mailto:<?php echo antispambot( get_field('team_email') ); ?>"><i class="genericon genericon-mail"></i></a> | ||
<?php if ( $twitter = get_field('team_twitter') ): ?> | ||
<a href="<?php echo $twitter; ?>"><i class="genericon genereicon-twitter"></i></a> | ||
<?php endif; ?> | ||
<?php if ( $linkedin = get_field('team_linkedin') ): ?> | ||
<a href="<?php echo $linkedin; ?>"><i class="genericon genericon-linkedin"></i></a> | ||
<?php endif; ?> | ||
<?php if ( $github = get_field('team_github') ): ?> | ||
<a href="<?php echo $github; ?>"><i class="genericon genericon-github"></i></a> | ||
<?php endif; ?> | ||
</div> | ||
</article> |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/* | ||
* Register post types | ||
*/ | ||
// Register Custom Post Type | ||
function custom_post_type() { | ||
|
||
$labels = array( | ||
'name' => _x( 'Equipe', 'Post Type General Name', 'tema-brasa' ), | ||
'singular_name' => _x( 'Equipe', 'Post Type Singular Name', 'tema-brasa' ), | ||
'menu_name' => __( 'Equipe', 'tema-brasa' ), | ||
'parent_item_colon' => __( 'Item parente', 'tema-brasa' ), | ||
'all_items' => __( 'Todos membros', 'tema-brasa' ), | ||
'view_item' => __( 'Ver membro', 'tema-brasa' ), | ||
'add_new_item' => __( 'Adicionar novo membro', 'tema-brasa' ), | ||
'add_new' => __( 'Adicionar novo', 'tema-brasa' ), | ||
'edit_item' => __( 'Editar item', 'tema-brasa' ), | ||
'update_item' => __( 'Atualizar item', 'tema-brasa' ), | ||
'search_items' => __( 'Buscar membro', 'tema-brasa' ), | ||
'not_found' => __( 'Não encontrado', 'tema-brasa' ), | ||
'not_found_in_trash' => __( 'Não encontrado na lixeira', 'tema-brasa' ), | ||
); | ||
$args = array( | ||
'labels' => $labels, | ||
'supports' => array( 'title', 'editor', 'thumbnail', ), | ||
'hierarchical' => false, | ||
'public' => true, | ||
'show_ui' => true, | ||
'show_in_menu' => true, | ||
'show_in_nav_menus' => true, | ||
'show_in_admin_bar' => true, | ||
'menu_position' => 5, | ||
'menu_icon' => 'dashicons-groups', | ||
'can_export' => true, | ||
'has_archive' => true, | ||
'exclude_from_search' => false, | ||
'publicly_queryable' => true, | ||
'capability_type' => 'page', | ||
); | ||
register_post_type( 'equipe', $args ); | ||
|
||
} | ||
|
||
// Hook into the 'init' action | ||
add_action( 'init', 'custom_post_type', 0 ); |
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.