Coder Social home page Coder Social logo

culturadf / wp-theme-mapasculturais Goto Github PK

View Code? Open in Web Editor NEW

This project forked from institutotim/wp-theme-mapasculturais

0.0 2.0 0.0 2.09 MB

Institucional and community website for the Mapas Culturais platform.

License: GNU Affero General Public License v3.0

JavaScript 6.81% PHP 68.90% CSS 13.91% HTML 10.38%

wp-theme-mapasculturais's Introduction

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 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

wp-theme-mapasculturais's People

Contributors

miguelpeixe avatar vgeorge avatar walisonjose avatar gustavovs avatar

Watchers

Valessio Soares de Brito avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.