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
Showing
8 changed files
with
176 additions
and
130 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
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
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,37 @@ | ||
<?php | ||
global $post; | ||
|
||
$image_url = get_the_post_thumbnail_url($post, "article-simple-thumb"); | ||
$class = dsi_get_post_types_color_class($post->post_type); | ||
$icon = dsi_get_post_types_icon_class($post->post_type); | ||
|
||
$excerpt = dsi_get_meta("descrizione", "", $post->ID); | ||
if(!$excerpt) | ||
$excerpt = get_the_excerpt($post); | ||
|
||
$argomenti = dsi_get_argomenti_of_post(); | ||
|
||
?> | ||
<article class="card card-bg card-article card-article-<?php echo $class; ?>"> | ||
<div class="card-body"> | ||
<a href="<?php the_permalink(); ?>"> | ||
<div class="card-article-img" <?php if($image_url) echo 'style="background-image: url(\''.$image_url.'\');"'; ?>> | ||
<?php if(!$image_url){ ?> | ||
<svg class="icon-<?php echo $class; ?> svg-<?php echo $icon; ?>"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-<?php echo $icon; ?>"></use></svg> | ||
<?php } ?> | ||
</div> | ||
</a> | ||
<div class="card-article-content"> | ||
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<p><?php echo $excerpt; ?></p> | ||
<?php if(count($argomenti)) { ?> | ||
<div class="badges"> | ||
<?php foreach ( $argomenti as $item ) { ?> | ||
<a href="<?php echo get_term_link($item); ?>" title="<?php _e("Vai all'argomento", "design_scuole_italia"); ?>: <?php echo $item->name; ?>" | ||
class="badge badge-sm badge-pill badge-outline-<?php echo $class; ?>"><?php echo $item->name; ?></a> | ||
<?php } ?> | ||
</div><!-- /badges --> | ||
<?php } ?> | ||
</div><!-- /card-avatar-content --> | ||
</div><!-- /card-body --> | ||
</article><!-- /card card-bg card-article --> |
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 | ||
global $post; | ||
|
||
$image_url = get_the_post_thumbnail_url($post, "article-simple-thumb"); | ||
$class = dsi_get_post_types_color_class($post->post_type); | ||
$icon = dsi_get_post_types_icon_class($post->post_type); | ||
|
||
|
||
$excerpt = dsi_get_meta("descrizione", "", $post->ID); | ||
if(!$excerpt) | ||
$excerpt = get_the_excerpt($post); | ||
|
||
$argomenti = dsi_get_argomenti_of_post(); | ||
|
||
?> | ||
<article class="card card-bg card-article card-article-<?php echo $class; ?>"> | ||
<div class="card-body"> | ||
<a href="<?php the_permalink(); ?>"> | ||
<div class="card-article-img" <?php if($image_url) echo 'style="background-image: url(\''.$image_url.'\');"'; ?>> | ||
<?php if(!$image_url){ ?> | ||
<svg class="icon-<?php echo $class; ?> svg-<?php echo $icon; ?>"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-<?php echo $icon; ?>"></use></svg> | ||
<?php } ?> | ||
</div> | ||
</a> | ||
<div class="card-article-content"> | ||
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<p><?php echo $excerpt; ?></p> | ||
<?php if(count($argomenti)) { ?> | ||
<div class="badges"> | ||
<?php foreach ( $argomenti as $item ) { ?> | ||
<a href="<?php echo get_term_link($item); ?>" title="<?php _e("Vai all'argomento", "design_scuole_italia"); ?>: <?php echo $item->name; ?>" | ||
class="badge badge-sm badge-pill badge-outline-<?php echo $class; ?>"><?php echo $item->name; ?></a> | ||
<?php } ?> | ||
</div><!-- /badges --> | ||
<?php } ?> | ||
</div><!-- /card-avatar-content --> | ||
</div><!-- /card-body --> | ||
</article><!-- /card card-bg card-article --> |
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 | ||
global $post; | ||
|
||
$image_url = get_the_post_thumbnail_url($post, "article-simple-thumb"); | ||
$class = dsi_get_post_types_color_class($post->post_type); | ||
$icon = dsi_get_post_types_icon_class($post->post_type); | ||
|
||
|
||
$excerpt = dsi_get_meta("descrizione", "", $post->ID); | ||
if(!$excerpt) | ||
$excerpt = get_the_excerpt($post); | ||
|
||
$argomenti = dsi_get_argomenti_of_post(); | ||
|
||
?> | ||
<article class="card card-bg card-article card-article-<?php echo $class; ?>"> | ||
<div class="card-body"> | ||
<a href="<?php the_permalink(); ?>"> | ||
<div class="card-article-img" <?php if($image_url) echo 'style="background-image: url(\''.$image_url.'\');"'; ?>> | ||
<?php if(!$image_url){ ?> | ||
<svg class="icon-<?php echo $class; ?> svg-<?php echo $icon; ?>"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-<?php echo $icon; ?>"></use></svg> | ||
<?php } ?> | ||
</div> | ||
</a> | ||
<div class="card-article-content"> | ||
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<p><?php echo $excerpt; ?></p> | ||
<?php if(count($argomenti)) { ?> | ||
<div class="badges"> | ||
<?php foreach ( $argomenti as $item ) { ?> | ||
<a href="<?php echo get_term_link($item); ?>" title="<?php _e("Vai all'argomento", "design_scuole_italia"); ?>: <?php echo $item->name; ?>" | ||
class="badge badge-sm badge-pill badge-outline-<?php echo $class; ?>"><?php echo $item->name; ?></a> | ||
<?php } ?> | ||
</div><!-- /badges --> | ||
<?php } ?> | ||
</div><!-- /card-avatar-content --> | ||
</div><!-- /card-body --> | ||
</article><!-- /card card-bg card-article --> |
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