Skip to content

institutotim/wp-theme-mapasculturais

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Photonauta 35
Feb 19, 2018
015c260 · Feb 19, 2018
Aug 21, 2017
May 8, 2017
Aug 8, 2017
Aug 8, 2017
Aug 8, 2017
Aug 21, 2017
Aug 2, 2017
Aug 21, 2017
Mar 23, 2017
Jan 24, 2018
Apr 13, 2017
Mar 21, 2017
Aug 2, 2017
Feb 19, 2018
Aug 21, 2017
May 11, 2017
May 11, 2017
May 11, 2017
Mar 22, 2017
May 18, 2017
Apr 12, 2017
Jan 24, 2018
May 30, 2017
May 30, 2017
May 11, 2017
Aug 21, 2017
Aug 2, 2017
Aug 2, 2017
May 9, 2017
Aug 21, 2017
Mar 21, 2017
May 11, 2017
Aug 8, 2017
May 11, 2017
May 11, 2017
Mar 21, 2017
Aug 21, 2017
Jan 19, 2018

Repository files navigation

Portal do Mapas Culturais is a website that gathers information about Mapas Culturais platform, providing institutional information about the project as well serving as plataform for development and support of the project. This repository holds the Wordpress theme used by the website.

Install

  • Copy this repository to wp-content/themes/ directory of your Wordpress install;
  • Activate this theme at the menu 'Apperance/Themes';
  • Install suggested plugins (ACF and others) at the menu 'Plugins';
  • Create the following pages:
    • Homepage, using model 'Homepage';
    • News;

Development

Base dependencies:

Clone locally and install modules

git clone <this repository git url>
cd wp-theme-mapasculturais
yarn
bower install
grunt build
# or just "grunt" to watch for changes

Start services:

  docker-compose up

Visit http://localhost:8080 to configure your Wordpress install.

Activate "Portal do Mapas Culturais" theme at http://localhost:8080/wp-admin/themes.php.

Install "Advanced Custom Fields" at the plugins page.

Add the following line to <repository_root>/.data/wp/wp-config.php, changing <your-key> to ACF PRO key:

define("ACF_PRO_KEY", "<your-key>");

Populating statistics

This step is needed only when running the server with Docker. To use system cron instead of WP Cron, add cron.conf to your crontab.

This cron task will add to every user with role "maintainer" and defined "instance_url" the following meta properties, which contain time series of elements count: events_count, spaces_count, projects_count and agents_count.

Run the following command to update statistics manually:

  docker exec -it wpthememapasculturais_wordpress_1 /usr/local/bin/php /var/www/html/wp-cron.php

Debuging

Enable debug at wp-config.php:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

To watch debug log file, run:

  tail -f .data/wp/wp-content/debug.log

Translations

Run grunt pot to update the languages/pmc.pot and then translate the strings with Poedit.

Changelog

No releases yet.

License

AGPL-3.0+

Copyright (C) 2017 Instituto TIM