コード例 #1
0
 public function imprimir_single()
 {
     echo '<div class="entrada--single" data-id="' . $this->ID . '">';
     if ($this->imagen) {
         echo '<img src="' . $this->imagen . '" class="entrada--single--imagen"/>';
     }
     echo $this->cabecera_single() . $this->imprimir_galeria() . '<div class="entrada--single--texto">' . '<div class="cuerpo lekton">' . $this->imprimir_titulo() . $this->contenido . $this->playlist_spotify() . $this->pie_single() . '</div>' . '</div>' . '</div>';
     echo '<div class="entrada--single--relacionados">';
     loop_entradas(false, $this->categoria_principal(false), 3, 'print_loop', $this->ID);
     echo '</div>';
 }
コード例 #2
0
ファイル: index.php プロジェクト: GafaMX/bunchofmakers.com
<?php

get_header();
loop_entradas(true);
get_footer();
コード例 #3
0
ファイル: category.php プロジェクト: GafaMX/bunchofmakers.com
<?php

get_header();
$category = get_the_category();
$category = reset($category);
$cat_id = isset($category->term_id) ? $category->term_id : 0;
loop_entradas(true, $cat_id);
get_footer();