add: block theme files
This commit is contained in:
67
functions.php
Normal file
67
functions.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* Carta Campinas Wordpress Theme
|
||||
*
|
||||
* This file is executed everytime the theme is loaded (always the site
|
||||
* is acessed)
|
||||
* PHP VERSION 8
|
||||
*
|
||||
* @package CartaCampinas
|
||||
* @author Hackeamos.Org <contato@hackeamos.org>
|
||||
* @license GPL-3 https://www.gnu.org/licenses/gpl-3.0.pt-br.html
|
||||
* @link https://github.com/Carta-Campinas/wordpress-theme
|
||||
*/
|
||||
namespace HackeamosOrg;
|
||||
|
||||
/**
|
||||
* Composer Autoload
|
||||
*/
|
||||
require implode(
|
||||
DIRECTORY_SEPARATOR,
|
||||
[
|
||||
__DIR__,
|
||||
'vendor',
|
||||
'autoload.php'
|
||||
]
|
||||
);
|
||||
|
||||
use \HackeamosOrg\HackeamosWP\MediaSizes;
|
||||
|
||||
|
||||
/**
|
||||
* Set site's media sizes
|
||||
*/
|
||||
MediaSizes::setMediaSizes(
|
||||
[
|
||||
'thumbnail' => [
|
||||
'size_w' => 300,
|
||||
'size_h' => 300,
|
||||
'crop' => true
|
||||
],
|
||||
'medium' => [
|
||||
'size_w' => 540,
|
||||
'size_h' => 540,
|
||||
'crop' => true
|
||||
],
|
||||
'medium_large' => [
|
||||
'size_w' => 720,
|
||||
'size_h' => 540,
|
||||
'crop' => true
|
||||
],
|
||||
'medium_vertical' => [
|
||||
'size_w' => 720,
|
||||
'size_h' => 540,
|
||||
'crop' => true
|
||||
],
|
||||
'large' => [
|
||||
'size_w' => 1280,
|
||||
'size_h' => 720,
|
||||
'crop' => true
|
||||
],
|
||||
'post-thumbnail' => [
|
||||
# null sizes avoid actually changing size, but this will add support to featured-images
|
||||
'size_w' => null,
|
||||
'size_h' => null
|
||||
]
|
||||
]
|
||||
);
|
||||
0
parts/cabe-alho.html
Normal file
0
parts/cabe-alho.html
Normal file
19
parts/footer.html
Normal file
19
parts/footer.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column {"width":"100%","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"backgroundColor":"highlight","textColor":"base"} -->
|
||||
<div class="wp-block-column has-base-color has-highlight-background-color has-text-color has-background has-link-color" style="flex-basis:100%"><!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">Carta Campinas é uma plataforma colaborativa de jornalismo. </p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">O envio de conteúdo para publicação implica cessão de todos os direitos. </p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">O material publicado na Carta Campinas pode ser reproduzido na web com crédito e link.</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:image {"align":"center"} -->
|
||||
<figure class="wp-block-image aligncenter"><img src="http://localhost/wp-content/uploads/2024/10/cc-by.svg" alt="" class=""/></figure>
|
||||
<!-- /wp:image --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->
|
||||
35
parts/header-2.html
Normal file
35
parts/header-2.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","width":""} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:social-links {"openInNewTab":true,"size":"has-small-icon-size","align":"center","className":"is-style-logos-only","style":{"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","justifyContent":"center"}} -->
|
||||
<ul class="wp-block-social-links aligncenter has-small-icon-size is-style-logos-only"><!-- wp:social-link {"url":"https://www.facebook.com/cartacampinas/","service":"facebook"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://twitter.com/CartaCampinas","service":"twitter"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://www.youtube.com/channel/UCEwSIg5a9hAL2M75zT4U5Eg","service":"youtube"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://www.instagram.com/cartacampinas/","service":"instagram"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://twitter.com/CartaCampinas","service":"pinterest"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://vk.com/cartacampinas","service":"vk"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://twitter.com/CartaCampinas","service":"linkedin"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://twitter.com/CartaCampinas","service":"tumblr"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"https://bsky.app/profile/cartacampinas.bsky.social","service":"bluesky"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"center","width":""} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":300,"shouldSyncIcon":true,"align":"center"} /--></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"center","width":""} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
|
||||
<div class="wp-block-group"><!-- wp:navigation {"ref":4,"overlayMenu":"always","icon":"menu","fontSize":"small","layout":{"type":"flex","justifyContent":"right"}} /-->
|
||||
|
||||
<!-- wp:search {"label":"Search","showLabel":false,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-only","buttonUseIcon":true,"isSearchFieldHidden":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|black"}}}},"backgroundColor":"white","textColor":"black"} /--></div>
|
||||
<!-- /wp:group --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->
|
||||
0
parts/header.html
Normal file
0
parts/header.html
Normal file
17
style.css
Normal file
17
style.css
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
Theme Name: Carta Campinas
|
||||
Theme URI: https://github.com/Carta-Campinas/wordpress-theme
|
||||
Author: Hackeamos.Org
|
||||
Author URI: https://hackeamos.org/
|
||||
Description: Cartacampinas 2025 Wordpress Theme.
|
||||
Tags: news
|
||||
Version: 0.1
|
||||
Requires at least: 6.6.2
|
||||
Tested up to: 6.6.2
|
||||
Requires PHP: 8.0
|
||||
License: GNU General Public License v3 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
Text Domain: carta-campinas
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
||||
3
templates/index.html
Normal file
3
templates/index.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!-- wp:template-part {"slug":"header-2"} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer"} /-->
|
||||
31
theme.json
Normal file
31
theme.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"color": "#ae1600",
|
||||
"name": "Highlight",
|
||||
"slug": "highlight"
|
||||
},
|
||||
{
|
||||
"color": "#fffff8",
|
||||
"name": "Base",
|
||||
"slug": "base"
|
||||
},
|
||||
{
|
||||
"color": "#222222",
|
||||
"name": "Contrast",
|
||||
"slug": "contrast"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"color": {
|
||||
"background": "var(--wp--preset--color--base)",
|
||||
"text": "var(--wp--preset--color--contrast)"
|
||||
}
|
||||
},
|
||||
"version": 3,
|
||||
"$schema": "https://schemas.wp.org/wp/6.6/theme.json"
|
||||
}
|
||||
Reference in New Issue
Block a user