current-theme's Introduction
Welcome to Current Theme! This is the framework I use to get up and running. All my main wordpress template files are located in the root of the folder. All my page templates are placed in templates, thanks to Wordpress 3.4's capability of putting page templates into subdirectories. ASSETS Inside the assets folder you'll find all the static assets you'd be using in the theme. It's broken down into css, fonts, img, js, and less. Inside of less you'll find base, bootstrap, media, and theme. Base includes a bunch of stylings I like to use over and over. Bootstrap is Twitter Bootstrap, version 2.0.4 at the time of this writing. Media includes all the media queries you'll be using. Theme is where I place the theme specific stylings as well as the theme specific LESS mixins. Style.less is just an import file. That way, if something breaks, I can turn off segments of the code off one at a time. I came to LESS from SASS, so I'm used to precompiling. I compile assets/less/style.less into assets/css/style.css. That's also what style.css imports, for reference. INC Inc is where I place all the php code that I'll be using outside of template files. It's organized like so: functions, lang, loops, models, plugins, and widgets. Inside functions I place any theme functions that I'll be using such as things that are run on theme-setup, activation, etc. It's also where I define all my sidebars, menus and such. Lang is the language folder. Loops is where I place any and all loops that I'll be using throughout the theme. Models is similar to loops in that it's chunks of code that I use and reuse, but it's not performing any real tasks. It's just where I place meta blocks or other chunks of code that are used often. Plugins is where I define what plugins are required for the theme to work. Thanks to Thomas Griffin's plugin activation class (http://tgmpluginactivation.com/), we can tell the user which plugins are required and let them install and activate right there. Pretty awesome. Plugins are defined in inc/plugins/plugins.php. Widgets is where I place all my widgets.
current-theme's People
Forkers
sharibettyRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.