?> <div id="primary" class="content-area"> <main id="portifolio-details" class="site-main" role="main"> <?php while (have_posts()) { the_post(); ?> <div class="description"> <?php echo Portifolio::getText(); ?> </div> <div class="gallery"> <?php $images = Portifolio::getImagens(); if ($images) { ?> <?php foreach ($images as $image) { ?> <div class="gallery-item"> <img src="<?php echo $image['url']; ?> " alt="<?php echo $image['alt']; ?> " /> </div> <?php
/** * Template part for displaying page content in page.php. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package GB_Design */ ?> <a href="<?php echo Portifolio::getLink(); ?> " class="portifolio-item" style="background-image: url(<?php echo Portifolio::getImageDestaque_url('large'); ?> );"> <article id="post-<?php echo Portifolio::getID(); ?> " <?php post_class(); ?> > <div class="portifolio-item__overlay"> <div class="portifolio-item__label"><?php echo Portifolio::getTitle(); ?> </div> </div> </article><!-- #post-## --> </a>
* This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package GB_Design */ get_header(); ?> <div id="portifolio" class="content-area"> <main id="portifolio-list" class="site-main" role="main"> <a name="#protifolio"></a> <?php $works = Portifolio::getLastWorks(-1); ?> <?php if ($works->have_posts()) { ?> <?php while ($works->have_posts()) { $works->the_post(); ?> <?php get_template_part('template-parts/content', 'portifolio'); ?>
<?php /** * GB Design functions and definitions. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package GB_Design */ require get_template_directory() . '/app/config/constants.php'; require get_template_directory() . '/app/config/admin.php'; require get_template_directory() . '/app/config/assets.php'; require get_template_directory() . '/app/config/clean.php'; require get_template_directory() . '/app/config/email.php'; require get_template_directory() . '/app/config/lazyload.php'; require get_template_directory() . '/app/config/nav.php'; require get_template_directory() . '/app/config/theme.php'; require get_template_directory() . '/app/config/sidebar.php'; require get_template_directory() . '/app/config/pagination.php'; require get_template_directory() . '/app/Model/Portifolio.php'; Portifolio::create(); /** * Custom template tags for this theme. */ require get_template_directory() . '/app/template-tags.php'; if (function_exists('acf_add_options_page')) { acf_add_options_page(array('page_title' => 'Theme General Settings', 'menu_title' => 'Theme Settings', 'menu_slug' => 'theme-general-settings', 'capability' => 'edit_posts', 'redirect' => false)); acf_add_options_sub_page(array('page_title' => 'Theme Header Settings', 'menu_title' => 'Header', 'parent_slug' => 'theme-general-settings')); acf_add_options_sub_page(array('page_title' => 'Theme Footer Settings', 'menu_title' => 'Footer', 'parent_slug' => 'theme-general-settings')); }