Download the PHP package sturple/fg-theme-master without Composer

On this page you can find all versions of the php package sturple/fg-theme-master. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fg-theme-master

FG Wordpress Template With Twig

Installation

File Structure

Shortcodes

[accordion] & [panel]

Creates Bootstrap accordions.

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.

The [panel] shortcode accepts the following attributes:

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.

[collapse] & [panel]

Creates Bootstrap collapse.

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

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:

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.

[carousel] & [slide]

Creates Bootstrap carousels.

The [carousel] shortcode accepts the following attributes:

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.

The [slide] shortcode accepts the following attributes:

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.

[custom-template] & [custom-item]

Allows a specified Twig template to be rendered.

The [custom-template] shortcode accepts one attribute explicitly:

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.

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

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.

[tabs] & [tab]

Creates Bootstrap tabs.

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.

The [tab] shortcode accepts the following attirbutes:

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.

[pills] & [pill]

Creates [Bootstrap pills].

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.

The [pill] shortcode accepts the following attirbutes:

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.

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

The [ajax] shortcode accepts the following attribute.

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

[link]

The [link] shortcode accepts the following attribute.

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

[email]

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

[email label="email"][email protected][/email]

[twig]

Allows you to add twig functions, as well as obtain global twig variables.

[twig]{{config.company.booking.url}}[/twig]


All versions of fg-theme-master with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
composer/installers Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sturple/fg-theme-master contains the following files

Loading the files please wait ....