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
<div class="post-area"> | |
<div class="post-container row small-up-2 medium-up-4 large-up-5"> | |
<div id="post-{{post.id}}" class="post post-{{post.id}} column" ng-repeat="post in posts"> | |
<a href="{{post.link}}"> | |
<img ng-src="{{post.featured_image}}" /> | |
<div class="post-overlay"> | |
<span class="day">{{ post.date | date:"dd" }}</span> | |
<span class="month">{{ post.date | date:"MMMM" }}</span> | |
</div> | |
</a> |
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
<div class="post-container row small-up-2 medium-up-4 large-up-5"> | |
<div id={{post.id}} class="post column" ng-repeat="post in new_archive_posts"> | |
<a href="{{post.link}}"> | |
<img ng-src="{{post.featured_image}}" /> | |
<div class="post-overlay"> | |
<span class="day">{{ post.date | date:"dd" }}</span> | |
<span class="month">{{ post.date | date:"MMMM" }}</span> | |
</div> | |
</a> | |
</div> |
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
.directive('archiveLoadMore', ['$compile', '$http', function($compile, $http) { | |
return { | |
restrict: 'E', | |
replace: true, | |
templateUrl: quotidiano.partials + 'loaded-archive-post.html', | |
link: function($scope, element, attrs) { | |
$scope.paged = 2; | |
$scope.loadMorePosts= function() { | |
jQuery('.post').each( function() { | |
jQuery(this).removeAttr("ng-repeat"); |
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 | |
/** | |
* Template Name: Player | |
*/ | |
get_header(); ?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> | |
<?php |
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 if ( class_exists( 'Sports_Bench_Player' ) ) { ?> | |
<?php if ( get_query_var( 'player_slug' ) ) { ?> | |
<?php } else { ?> | |
<?php } ?> | |
<?php } ?> |
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
<div class="player-info-top clearfix"> | |
<div class="player-photo" style="width: 23%; padding: 0 1%; float: left; position: relative"> | |
<?php $photo = $player->get_player_photo(); ?> | |
<?php if ( $photo == null ) { ?> | |
<img src="<?php echo plugins_url( 'sports-bench/images/mystery-person.jpg' ); ?>" /> | |
<?php } else { ?> | |
<?php echo $photo; ?> | |
<?php } ?> | |
</div> |
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
<div class="player-info-bottom clearfix"> | |
<h4>Career Stats</h4> | |
<?php echo sports_bench_get_season_stats( $player ); ?> | |
</div> |
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
<div id="team-select" class="row"> | |
<select name="player-page-select" id="player-page-select"> | |
<option value=""><?php _e( '--- Select a Team ---', 'sports-bench' ); ?></option> | |
<option value="0"><?php _e( 'Free Agent', 'sports-bench' ); ?></option> | |
<?php | |
$teams = sports_bench_get_teams( true ); | |
foreach ( $teams as $team_id => $team_name ) { | |
echo '<option value="' . $team_id . '">' . $team_name . '</option>'; | |
} | |
?> |
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 | |
/** | |
* Template Name: Player | |
*/ | |
if ( get_query_var( 'player_slug' ) ) { | |
$player = new Sports_Bench_Player(get_query_var('player_slug')); | |
$team = new Sports_Bench_Team((int)$player->team_id); | |
} |
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 | |
/** | |
* Template Name: Team | |
*/ | |
get_header(); ?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> | |
<?php |