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 @@ + +
Carta Campinas é uma plataforma colaborativa de jornalismo.
+ + + +O envio de conteúdo para publicação implica cessão de todos os direitos.
+ + + +O material publicado na Carta Campinas pode ser reproduzido na web com crédito e link.
+ + + +