Code Evidence
Plugin Code and API Evidence
This page displays the real plugin and must-use plugin code created for this WordPress portfolio, with English comments and a safe Google Calendar API integration example using environment variables.
API Integration Pattern
Google Calendar scheduling example
This example shows how the scheduler or CRM layer can create a Calendar event with Google Meet. Secrets are represented by environment variables only; no private key or token is printed on this page.
<?php
declare(strict_types=1);
use GoogleClient;
use GoogleServiceCalendar;
use GoogleServiceCalendarEvent;
$client = new Client();
$client->setApplicationName('Lucas Bacellar Portfolio Scheduler');
$client->setAuthConfig([
'type' => 'service_account',
'client_email' => getenv('GOOGLE_CLIENT_EMAIL'),
'private_key' => str_replace('n', "n", (string) getenv('GOOGLE_PRIVATE_KEY')),
]);
$client->addScope(Calendar::CALENDAR_EVENTS);
$calendar = new Calendar($client);
$event = new Event([
'summary' => 'Portfolio follow-up call',
'description' => 'Assessment follow-up scheduled from the portfolio.',
]);
plugins/lago-process-toolkit/lagoprocess-toolkit.php
Lago Process Toolkit Plugin
Registers portfolio custom post types, admin menu entries, ACF-like fields, classic editor behavior, REST fields and the editable page field layers.
Code not provided.
mu-plugins/lago-runtime-optimization.php
Lago Runtime Optimization MU Plugin
Runs automatically as a must-use plugin and handles conservative performance optimizations, delayed trackers, image dimensions, sitemap output and vendor request hardening.
Code not provided.
mu-plugins/lago-page-cache.php
Lago Page Cache MU Plugin
Runs automatically as a must-use plugin and provides a small full-page cache for anonymous visitors with safe bypass and invalidation rules.
Code not provided.
themes/lago-process/functions.php
Theme Functions
Bootstraps the custom theme, SEO helpers, project helpers and the bridge between theme rendering and structured admin fields.
Code not provided.
themes/lago-process/front-page.php
Theme Home Template
Renders the homepage hero, proof sections, projects, served brands and supporting content from wp-admin fields and CPT queries.
Code not provided.
themes/lago-process/single.php
Theme Project Single Template
Shows the technical case-study layout for each project CPT, including stack, APIs, credentials, documentation and outcomes.
Code not provided.
themes/lago-process/page-documentation.php
Theme Documentation Template
Builds the technical documentation page and turns admin-managed JSON into structured sections and navigation.
Code not provided.
themes/lago-process/header.php
Theme Header Template
Renders the global header, branding and navigation CTA from site settings and WordPress menus.
Code not provided.
themes/lago-process/footer.php
Theme Footer Template
Outputs the shared footer text and sitemap link using the global settings layer.
Code not provided.
themes/lago-process/assets/css/screen.css
Theme Screen Stylesheet
Main stylesheet for layout, typography, cards, directories, project detail pages and documentation/code layouts.
Code not provided.