Giter Site home page Giter Site logo

danferth / dj-wp-theme Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18.5 MB

Thomson (Day Job) WP theme based off foundation press with added angular integration for product and other data

Home Page: https://htslabs.com

License: MIT License

PHP 32.20% JavaScript 31.81% CSS 29.61% HTML 5.93% Roff 0.01% Hack 0.44%

dj-wp-theme's Introduction

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

dj-wp-theme's People

Contributors

adamchlan avatar alexbohariuc avatar alexpetroni avatar clearsitedesigns avatar cyberscribe avatar danferth avatar dependabot[bot] avatar dloranc avatar eleirgulen avatar grantnorwood avatar htslabs avatar jmotes avatar larzans avatar linuxbastard avatar megane9988 avatar mnuhell avatar modlife avatar nejcdraganjec avatar olefredrik avatar pixelbareupen avatar pourcentage avatar radel avatar randmanrjr avatar rebekahmonson avatar skoldin avatar thebrandyman avatar themestechnology avatar tormjens avatar tralapo avatar wlanni avatar

Watchers

 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.