2017 © Pedro Pelรกez
 

wordpress-theme fg-theme-master

Basic Twig template theme

image

sturple/fg-theme-master

Basic Twig template theme

  • Friday, September 1, 2017
  • by sturple
  • Repository
  • 2 Watchers
  • 1 Stars
  • 125 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 28 Versions
  • 0 % Grown

The README.md

FG Wordpress Template With Twig

Installation

  • Install wordpress
  • Install Timber plugin (twig)
  • Install Metabox plugin (http://metabox.io)
  • run composer update on the root of the theme (this install symfony yaml parser for reading settings)
  • Select theme.
  • On local machine run npm install to install grunt task runner.
  • Select google fonts, update Gruntifile.js, and run grunt googlefonts
  • Run grunt watch and update css or js to upload assets.

File Structure

โ”œโ”€โ”€ 404.php
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ functions.php
โ”œโ”€โ”€ include
โ”‚ย ย  โ”œโ”€โ”€ shortcodes
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ accordion.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ajax.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ carousel.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ custom-template.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ email.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ tabs.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ twig.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ gallery.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ link.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ page-gallery.php
|   |    
โ”‚ย ย  โ”œโ”€โ”€ shortcodes.php
โ”‚ย ย  โ””โ”€โ”€ theme-settings.php
โ”œโ”€โ”€ index.php
โ”œโ”€โ”€ page-templates
โ”‚ย ย  โ”œโ”€โ”€ blank.php
โ”‚ย ย  โ”œโ”€โ”€ contact.php
โ”‚ย ย  โ”œโ”€โ”€ full-width.php
โ”‚ย ย  โ”œโ”€โ”€ landingpage.php
โ”‚ย ย  โ”œโ”€โ”€ listings.php
โ”‚ย ย  โ””โ”€โ”€ modular.php
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ screenshot.png
โ”œโ”€โ”€ style.css
โ””โ”€โ”€ twig-templates
    โ”œโ”€โ”€ base.twig
    โ”œโ”€โ”€ footer.twig
    โ”œโ”€โ”€ header.twig
    โ”œโ”€โ”€ partials
    โ”‚ย ย  โ”œโ”€โ”€ article-list-element.twig
    โ”‚ย ย  โ”œโ”€โ”€ article.twig
    โ”‚ย ย  โ”œโ”€โ”€ awards.twig
    โ”‚ย ย  โ”œโ”€โ”€ blog-sidebar.twig
    โ”‚ย ย  โ”œโ”€โ”€ blog-tags-cats.twig
    โ”‚ย ย  โ”œโ”€โ”€ bootstrap-carousel.twig
    โ”‚ย ย  โ”œโ”€โ”€ breadcrumbs.twig
    โ”‚ย ย  โ”œโ”€โ”€ contact-sidebar.twig
    โ”‚ย ย  โ”œโ”€โ”€ gallery.twig
    โ”‚ย ย  โ”œโ”€โ”€ modal-inner.twig
    โ”‚ย ย  โ”œโ”€โ”€ navigation.twig
    โ”‚ย ย  โ”œโ”€โ”€ realtor-directory.twig
    โ”‚ย ย  โ”œโ”€โ”€ responsive-list.twig
    โ”‚ย ย  โ”œโ”€โ”€ social-sharing.twig
    โ”‚ย ย  โ””โ”€โ”€ specials.twig
    โ””โ”€โ”€ wp
        โ”œโ”€โ”€ archive.twig
        โ”œโ”€โ”€ index.twig
        โ”œโ”€โ”€ page-404.twig
        โ”œโ”€โ”€ page-blank.twig
        โ”œโ”€โ”€ page-contact.twig
        โ”œโ”€โ”€ page-full-width.twig
        โ”œโ”€โ”€ page-landing-twig
        โ”œโ”€โ”€ page-listings.twig
        โ”œโ”€โ”€ page-modular.twig
        โ”œโ”€โ”€ page.twig
        โ””โ”€โ”€ single.twig


Shortcodes

[accordion] & [panel]

Creates Bootstrap accordions., (*1)

The [accordion] shortcode does not accept any attributes. All content of an [accordion] shortcode which is not a [panel] shortcode (or content nested therein) is ignored., (*2)

The [panel] shortcode accepts the following attributes:, (*3)

Attribute Description
id An HTML ID which shall be used for the panel (one will be automatically generated if this is not supplied)
title A title for the panel
active default false, opens accordion if true

The content of the [panel] shortcode shall be used as the content of the panel in the accordion., (*4)

[collapse] & [panel]

Creates Bootstrap collapse., (*5)

The [collapse] shortcode accepts these attributes. All content of an [collapse] shortcode which is not a [panel] shortcode (or content nested therein) is ignored., (*6)

Attribute Description
iconup the icon that is shown next to text to indicate up, the down arrow is same but rotated 90deg
fontfamily for the icon default is FontAwsome

The [panel] shortcode accepts the following attributes:, (*7)

Attribute Description
id An HTML ID which shall be used for the panel (one will be automatically generated if this is not supplied)
title A title for the panel
active default false, opens accordion if true

The content of the [panel] shortcode shall be used as the content of the panel in the accordion., (*8)

Creates Bootstrap carousels., (*9)

The [carousel] shortcode accepts the following attributes:, (*10)

Attribute Default Description
controls true If "false" then the carousel shall not have controls for moving between the slides
id myCarousel An HTML ID which shall be used for the carousel (one will be automatically generated if this is not supplied)
indicators true If "false" then the carousel shall not have indicators indicating which slide is currently active (and how many slides there are)
innerclass An HTML class (or list of classes) which shall be applied to the inner container of the generated Bootstrap carousel
outerclass An HTML class (or list of classes) which shall be applied to the outer container of the generated Bootstrap carousel

All content of a [carousel] shortcode which is not a [slide] shortcode is ignored., (*11)

The [slide] shortcode accepts the following attributes:, (*12)

Attribute Description
alt The alt text for the image which appears on the slide
caption A caption which shall appear on the slide (defaults to no caption)
title The title of the slide (defaults to no title)
url The URL of the image which shall appear on the slide

All content of a [slide] shortcode is ignored., (*13)

[custom-template] & [custom-item]

Allows a specified Twig template to be rendered., (*14)

The [custom-template] shortcode accepts one attribute explicitly:, (*15)

Attribute Description
template Specifies the file name of the template which shall be rendered

Any other attributes of the shortcode have their values passed through as variables in the template., (*16)

Note that if you specify the "data" attribute it will be overwritten and its value will therefore be inaccessible (see below)., (*17)

The [custom-item] shortcode creates an entry in the array passed through to the rendered template as the "data" variable. The entry shall have a property corresponding to each attribute of the [custom-item] shortcode in addition to a "content" property which contains a string containing the contents of the shortcode. Note that because of this if you use the "content" attribute of a [custom-item] shortcode it will be overwritten and therefore its value will be inaccessible., (*18)

[tabs] & [tab]

Creates Bootstrap tabs., (*19)

The [tabs] shortcode does not accept any attributes. All content of a [tabs] shortcode which is not a [tab] shortcode (or content nested therein) is ignored., (*20)

The [tab] shortcode accepts the following attirbutes:, (*21)

Attribute Description
active If "true" then the tab-in-question shall be the default active tab, if no tab is marked as active the first tab shall be active by default
id An HTML ID which shall be used for the panel (one will be automatically generated if this is not supplied)
title A title for the tab

The content of the [tab] shortcode shall be used as the content of the tab., (*22)

[pills] & [pill]

Creates [Bootstrap pills]., (*23)

The [pills] shortcode does not accept any attributes. All content of a [pills] shortcode which is not a [pil] shortcode (or content nested therein) is ignored., (*24)

The [pill] shortcode accepts the following attirbutes:, (*25)

Attribute Description
active If "true" then the tab-in-question shall be the default active tab, if no tab is marked as active the first tab shall be active by default
id An HTML ID which shall be used for the panel (one will be automatically generated if this is not supplied)
title A title for the tab

The content of the [tab] shortcode shall be used as the content of the tab., (*26)

[ajax]

The [ajax] shortcode is used to load page content via ajax. The page that the ajax code is on requires you to use No Template or the blank template., (*27)

The [ajax] shortcode accepts the following attribute., (*28)

Attribute Description
template is used to load the twig template it is going to wrap the content around

The [link] shortcode accepts the following attribute., (*29)

Attribute Description
id The post id which will convert it to url (preferred method)
href The complete url
attr use any attribute ie class="myclass" target="_blank"

[link id="2"]contact us[/link] --> contact us, (*30)

[link href="https://google.com" attr="target=_blank" ]Search Engine[/link]  --> <a href="https://google.com" target="_blank">Search Engine</a>

[email]

Attribute Description
label If you require the label to be something different

[email label="email"]webmaster@example.com[/email], (*31)

[twig]

Allows you to add twig functions, as well as obtain global twig variables., (*32)

[twig]{{config.company.booking.url}}[/twig], (*33)

The Versions

01/09 2017

dev-pdion

dev-pdion https://github.com/fgms/wp-theme-twig

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

31/08 2017

dev-master

9999999-dev https://github.com/fgms/wp-theme-twig

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

26/08 2017

0.4.3

0.4.3.0 https://github.com/fgms/wp-theme-twig

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

31/07 2017

0.4.2

0.4.2.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

25/07 2017

0.4.1

0.4.1.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

07/07 2017

0.4.0

0.4.0.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

30/06 2017

dev-dev_vip

dev-dev_vip https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

30/06 2017

0.3.2

0.3.2.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

30/06 2017

0.3.1

0.3.1.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

28/06 2017

0.3.0

0.3.0.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

08/11 2016

dev-yvdm

dev-yvdm https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

16/09 2016

0.2.0

0.2.0.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

16/09 2016

dev-codeanywhere

dev-codeanywhere https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

08/07 2016

dev-rleahy

dev-rleahy https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

14/06 2016

0.1.1

0.1.1.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

14/06 2016

0.1.0

0.1.0.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

09/06 2016

0.0.13

0.0.13.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

09/06 2016

0.0.12

0.0.12.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

08/06 2016

0.0.11

0.0.11.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

03/06 2016

0.0.9

0.0.9.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

02/06 2016

0.0.8

0.0.8.0 https://github.com/sturple/fg-theme-master

Basic Twig template theme

  Sources   Download

GPL-3.0

The Requires

 

wordpress twig theme fgms

31/05 2016

0.0.7

0.0.7.0

Basic Twig template theme

  Sources   Download

The Requires

 

31/05 2016

0.0.6

0.0.6.0

Basic Twig template theme

  Sources   Download

The Requires

 

30/05 2016

0.0.5

0.0.5.0

Basic Twig template theme

  Sources   Download

The Requires

 

30/05 2016

0.0.4

0.0.4.0

Basic Twig template theme

  Sources   Download

The Requires

 

30/05 2016

0.0.3

0.0.3.0

Basic Twig template theme

  Sources   Download

The Requires

 

29/05 2016

0.0.2

0.0.2.0

Basic Twig template theme

  Sources   Download

The Requires

 

29/05 2016

0.0.1

0.0.1.0

Basic Twig template theme

  Sources   Download

The Requires