Giter VIP home page Giter VIP logo

wordpress-fast-forward's Introduction

#FastForward

DevApp for Wordpress Theme.

#Installation

Upload app folder with all files into your theme folder.

#Quick start

Add these lines in top of functions.php.

require_once(TEMPLATEPATH. '/app/fastforward.php');

so you can access static methods:

  • FastForward::Options()
  • FastForward::Menus()
  • FastForward::Posts();
  • FastForward::Post();
  • FastForward::Widgets()
  • FastForward::PostTypes()
  • FastForward::Shortcodes()

#Example configuration

You can add some custom features:

require_once(TEMPLATEPATH. '/app/fastforward.php');
require_once(TEMPLATEPATH. '/app/clipboard.php');

global $FF;

$FF['options'] = FastForward::Options()
    ->setTimeZone('Europe/Warsaw')
    ->setTextDomain('FastForwardTextDomain')
    ->addThemeSupport('post-thumbnails')
    ->addThemeSupport('html5')
    ->registerCss(array(
        'vendors/bootstrap.min',
        'assets/main'
    ))
    ->addGoogleFont(array(
        'family' => 'Open+Sans:400,600,700|Roboto+Slab',
        'subset' => 'latin,latin-ext'
    ))
    ->registerJs(array(
        'bootstrap.min',
        'angular'
    ), true) // place scripts in footer
    ->addTagsToPages()
    ->addCategoriesToPages()
    ->allowUnattach();


$FF['menus'] = FastForward::Menus()
    ->registerMenus(array(
        'top_menu' => 'Menu Główne',
        'sidebar_menu' => 'Menu boczne',
        'footer_menu' => 'Menu w stopce',
    ));


$FF['posts'] = FastForward::Posts();
$FF['post'] = FastForward::Post();

$FF['widgets'] = FastForward::Widgets()
    ->registerSidebar('footer-3-cols')
    ->registerWidget('foot-column');    

$FF['posttypes'] = FastForward::PostTypes()
    ->registerPostType('product');

$FF['shortcodes'] = FastForward::Shortcodes()
    ->registerShortcode('googlemap/googlemap');

wordpress-fast-forward's People

Contributors

rendfall avatar

Stargazers

Bartłomiej Sobczuk avatar

Watchers

James Cloos avatar  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.