diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..5c3d6eb --- /dev/null +++ b/functions.php @@ -0,0 +1,67 @@ + + * @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 + ] + ] +); \ No newline at end of file diff --git a/parts/cabe-alho.html b/parts/cabe-alho.html new file mode 100644 index 0000000..e69de29 diff --git a/parts/footer.html b/parts/footer.html new file mode 100644 index 0000000..aeb03d6 --- /dev/null +++ b/parts/footer.html @@ -0,0 +1,19 @@ + +
+ +
+ \ No newline at end of file diff --git a/parts/header-2.html b/parts/header-2.html new file mode 100644 index 0000000..fe3d760 --- /dev/null +++ b/parts/header-2.html @@ -0,0 +1,35 @@ + +
+
+ +
+ + + +
+ + + +
+
+ +
+
+
+ \ No newline at end of file diff --git a/parts/header.html b/parts/header.html new file mode 100644 index 0000000..e69de29 diff --git a/style.css b/style.css new file mode 100644 index 0000000..dd28a8c --- /dev/null +++ b/style.css @@ -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. +*/ \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..4c5290c --- /dev/null +++ b/templates/index.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/theme.json b/theme.json new file mode 100644 index 0000000..033f6f4 --- /dev/null +++ b/theme.json @@ -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" +} \ No newline at end of file