Skip to content
Thomson (Day Job) WP theme based off foundation press with added angular integration for product and other data
PHP JavaScript CSS HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
form-parse
images
languages
library
parts
templates
.gitignore
.sass-lint.yml
404.php
MIT-LICENSE.txt
README.md
archive.php
comments.php
content-none.php
content.php
footer.php
functions.php
gulpfile.js
header.php
index.php
package-lock.json
package.json
page.php
screenshot.png
search.php
searchform.php
shortcode_cheats.txt
sidebar-left.php
sidebar.php
single.php
style.css
woocommerce.php

README.md

TIC Wordpress Theme

1. While you're working on your project, run:

$ npm run watch

2. For building all the assets, run:

$ npm run build

3. Compress all files required for deployment:

It is not recommended that you deploy the entire theme folder to your webserver. There is no danger associated with doing this, but it is a waste of disk space and bandwidth. The node_modules and components for instance is only required during theme development.

By executing the command below, you will compress only the files that are required for deployment. The file will be available as a .zip inside the folder named '/package'.

$ npm run package

How to structure your styles

  • style.css: Do not worry about this file. (For some reason) it's required by WordPress. All styling are handled in the Sass files described below

  • assets/scss/foundation.scss: Imports for Foundation components and your custom styles.

  • assets/scss/config/_settings.scss: Original Foundation 5 base settings

  • assets/scss/config/_custom-settings.scss: Copy the settings you will modify to this file. Make it your own

  • assets/scss/site/*.scss: Unleash your creativity. Create the files you need (and remember to make import statements for all your files in assets/scss/foundation.scss)

Please note that you must run $npm run build in your terminal for the styles to be copied and concatinated. See Gruntfile.js for details

How to structure your scripts

  • assets/javascript/custom: This is the folder where you put all your custom scripts. Every .js file you put in this directory will be minified and concatinated one single .js file. (This is good for site speed and performance)

Please note that you must run npm run build in your terminal for the scripts to be copied and concatinated. See Gruntfile.js for details

The styles and scripts generated by the build

Version control on these files are turned off because they are automatically generated as part of the build process.

  • assets/stylesheets/foundation.css: All Sass files are minified and compiled to this file

  • assets/stylesheets/foundation.css.map: CSS source maps

  • assets/javascript/vendor: Vendor scripts are copied from assets/javascript/components/ to this directory. We use this path for enqueing the vendor scripts in WordPress.

Shortcodes

 ///////////////////////////////////////////////////////////
   _____ __               __                 __         
  / ___// /_  ____  _____/ /__________  ____/ /__  _____
  \__ \/ __ \/ __ \/ ___/ __/ ___/ __ \/ __  / _ \/ ___/
 ___/ / / / / /_/ / /  / /_/ /__/ /_/ / /_/ /  __(__  ) 
/____/_/ /_/\____/_/   \__/\___/\____/\__,_/\___/____/  
//////////////////////////////////////////////////////////                                                        

//*******Main block modules for roadmap and tech library*******
//this needs to be placed inside ( div.row>div.column.small-12 ) at the minimum
[mainblock title='title' class='addedclass' img='src' link='href']
<p> or <ul>
[/mainblock]

//*******<select> of all sub products*******
//used ONLY in tech library
[tech_select]

  _____                                 
 |_   _|                                
   | |  _ __ ___   __ _  __ _  ___  ___ 
   | | | '_ ` _ \ / _` |/ _` |/ _ \/ __|
  _| |_| | | | | | (_| | (_| |  __/\__ \
 |_____|_| |_| |_|\__,_|\__, |\___||___/
                         __/ |          
                        |___/           


//*******ANGULAR IMAGES*******
[ng_product_image src='' width='' height='']

//*******JUST AN IMAGES TAG*******
[img class='myClass' src='folder/in/uploads/image.jpg' width='100' height='100' alt='alt-text']

 _______  _______  _______  _______    ___      _______  __   __  _______  __   __  _______ 
|       ||   _   ||       ||       |  |   |    |   _   ||  | |  ||       ||  | |  ||       |
|    _  ||  |_|  ||    ___||    ___|  |   |    |  |_|  ||  |_|  ||   _   ||  | |  ||_     _|
|   |_| ||       ||   | __ |   |___   |   |    |       ||       ||  | |  ||  |_|  |  |   |  
|    ___||       ||   ||  ||    ___|  |   |___ |       ||_     _||  |_|  ||       |  |   |  
|   |    |   _   ||   |_| ||   |___   |       ||   _   |  |   |  |       ||       |  |   |  
|___|    |__| |__||_______||_______|  |_______||__| |__|  |___|  |_______||_______|  |___|  


//******info module*********
//at top of page DO NOT add class="first" to it
[info_module faq=" " product=" "]


//***hero image with select for industry*****
[hero_select src="folder/image.jpg" class="" placeholder="placeholder" product="for industry in app.js"]


//*******full page width image******
[image_full src=“image.jpg]


//******centered block********
//!!!!! MUST CLOSE THIS TAG !!!!!!!!
[centered class=" " src=" " caption=" " title=" "][/centered]


//**********intro paragraph and inquiry module
[intro_quiry title="header" product="for emails sent"]
	<p>content</p>
[/intro_quiry]


//******text on the left image on the right***********
[text_image src="image" caption="caption" title="header"]
	<p>text</p>
[/text_image]


//******text on the left image on the right***********
[image_text src="image" caption="caption" title="header"]
	<p>text</p>
[/image_text]


//**********dual images*************
[dual_image
l_title=”left title”
l_src=”left image”
l_caption=”left caption”
r_title=”right title”
r_src=”right image”
r_caption=”right caption”]


//********column text just text***************************
[column_text title="header"]
	<p>ONLY P TAGS ALLOWD</p>
[/column_text]


//******video row with descriptive paragraph**************
[product_video src='video file name.mp4' title='title of video']
	<p>content for paragraph next to video</p>
[/product_video]


//**********comparison********************
[comparison class=" " title=" "]
	[comparison_left l_title=" "]
		<ul></ul>
	[/comparison_left]
	[comparison_right r_title=" "]
		<ul></ul>
	[/comparison_right]
[/comparison]


▓█████  ███▄    █ ▓█████▄     ▒█████    █████▒    ██▓███   ▄▄▄        ▄████ ▓█████ 
▓█   ▀  ██ ▀█   █ ▒██▀ ██▌   ▒██▒  ██▒▓██   ▒    ▓██░  ██▒▒████▄     ██▒ ▀█▒▓█   ▀ 
▒███   ▓██  ▀█ ██▒░██   █▌   ▒██░  ██▒▒████ ░    ▓██░ ██▓▒▒██  ▀█▄  ▒██░▄▄▄░▒███   
▒▓█  ▄ ▓██▒  ▐▌██▒░▓█▄   ▌   ▒██   ██░░▓█▒  ░    ▒██▄█▓▒ ▒░██▄▄▄▄██ ░▓█  ██▓▒▓█  ▄ 
░▒████▒▒██░   ▓██░░▒████▓    ░ ████▓▒░░▒█░       ▒██▒ ░  ░ ▓█   ▓██▒░▒▓███▀▒░▒████▒
░░ ▒░ ░░ ▒░   ▒ ▒  ▒▒▓  ▒    ░ ▒░▒░▒░  ▒ ░       ▒▓▒░ ░  ░ ▒▒   ▓▒█░ ░▒   ▒ ░░ ▒░ ░
 ░ ░  ░░ ░░   ░ ▒░ ░ ▒  ▒      ░ ▒ ▒░  ░         ░▒ ░       ▒   ▒▒ ░  ░   ░  ░ ░  ░
   ░      ░   ░ ░  ░ ░  ░    ░ ░ ░ ▒   ░ ░       ░░         ░   ▒   ░ ░   ░    ░   
   ░  ░         ░    ░           ░ ░                            ░  ░      ░    ░  ░
                   ░                                                               


//******related product module*********
[related_product_module_wrap title="" module_count=""]
	[related_product_module src="" title="" link=""]
		<p>content</p>
	[/related_product_module]
	....
[/related_product_module_wrap]


//*******Display tech library link*******
//used in tech link module
[tech_link]


//*****tech link module**********
[tech_link_module
title=""
key1=""
value1=""
key2=""
value2=""]


//*******display part numbers for a given series*******
[parts title='' series='' line='' filter='']


//*******Prefooter modules*******
//somewhat complicated but better to
//adjust it a year later here than on every page latter
//still in development and not used yet
[prefooterwrap class='added class']
	[prefooter class='' link='link for prefooter']
		content for prefooter
	[/prefooterleft]
	[prefooter class='' link='link for prefooter']
		content for prefooter
	[/prefooterleft]
[/prefooter]


Unit Testing With Travis-CI

FoundationPress is completely ready to be deployed to and tested by Travis-CI for WordPress Coding Standards and best practices. All you need to do to activate the test is sign up and follow the instructions to point Travis-CI towards your repo. Just don't forget to update the status badge to point to your repositories unit test. Travis-CI

UI toolkits for rapid prototyping

Tutorials

You can’t perform that action at this time.