Giter Site home page Giter Site logo

zeekinteractive / heisenberg Goto Github PK

View Code? Open in Web Editor NEW
74.0 38.0 17.0 3.85 MB

Zeek WordPress starter theme based on _s and Foundation

PHP 29.92% CSS 0.96% JavaScript 4.36% SCSS 64.67% Shell 0.09%
wordpress starter-theme sass php foundation foundation-site css theme webpack

heisenberg's Introduction

Heisenberg - Zeek Starter Theme

A minimalistic WordPress starter theme, based on Underscores and Foundation for Sites, version ^6.4.3.

Prerequisites

  • Node.js 9.x and npm 5.x

How to get started

  1. Clone or download the project onto your themes directory (./wp-content/themes)
  2. Run a find for the string/slug heisenberg throughout the theme and replace it with your project name.
  3. Run npm install
  4. (optional) Copy the variables.sample.env file and name it variables.env to override some development variables
  5. Run npm start.

Webpack

The theme uses Webpack as its bundler with ES6 modules for JavaScript files.

Deployment

npm run build

This will run both a production and development set of webpack tasks. The enqueue hook will load the correct version of the JS file, based on whether your development/staging server contains the SCRIPT_DEBUG set to true.

Foundation

How to use the Foundation JS files

The theme uses ES6 Modules, so use the existing foundation.js file as a guide to bring in additional Foundation JS modules. There is an existing module included as an example (Tabs).

How to use the Foundation Sass files

Using the _settings.scss file, you can overwrite a Foundation default style before things get compiled, thereby making your final CSS lighter. To do so, find the variable in the file, uncomment it, and set the value you desire. The file is located in ./assets/sass.

Also, in the app.scss file, you can remove a Foundation CSS module by commenting out the associated mixin. For instance, if your project doesn't use Foundation's Orbit module, simply comment out the @include foundation-orbit mixin and the code will never reach your final app.css file.

Be sure to check Foundation’s docs on using Sass and their mixins for custom control on styles.

heisenberg's People

Contributors

aaronholbrook avatar australiansteve avatar bradp avatar cjkoepke avatar darcmattr avatar jacobarriola avatar jasongottschalk avatar jeffreyzinn avatar michaelbeil avatar stevezehngut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heisenberg's Issues

errors running npm install

From within the theme folder at the command prompt, ran npm install and received the errors shown in the attached two screenshots:

It is beyond my knowledge to understand what these errors are, how they might impact the development and/or how to resolve.

Any insight would be greatly appreciated.

Running windows 8.1.

screenshot 8
screenshot 9

Fix PHP parse error with autoload_static script

Hosts (WP Engine, for instance) that don't offer support for PHP 5.6.x are getting a syntax error.

vendor/composer/autoload_static.php ...         
PHP Parse error:  syntax error, unexpected '.', expecting ')' in - on line 10        

Problem with top bar in heisenberg

I have used the heisenberg starter theme in the past and really liked it. I recently installed the latest version from GitHub. I tried to modify it by adding a top bar to the file header.php. Instead of drop down menus on the top bar I got fully expanded lists. I am using wamp64 server on my Windows 10 PC. Here is the code I used

<div data-sticky-container>
 <div id="widemenu" class="top-bar" data-sticky data-options="marginTop:0;">
   <div class="top-bar-left">
     <ul class="menu dropdown" data-dropdown-menu data-close-on-click-inside="false">
       <li><a href="http://ladle/index.html">Home</a></li>
       <li><a href="#">About</a>
         <ul class="menu">
	         <li><a href="http://ladle/ministries.html">Ministries</a></li>
	         <li><a href="http://ladle/times.html">Times</a></li>
	         <li><a href="http://ladle/lhttp://ladle/ocation.html">Directions</a></li>
	         <li><a href="http://ladle/LadleHistory.html">History</a></li>
	         <li><a href="http://ladle/LadleStories.html">Stories</a></li>
         </ul>
       </li>
       <li><a href="volunteers.html">Volunteer</a></li>
       <li><a href="# ">Donate</a>
         <ul class="menu">
	         <li><a href="http://ladle/DonateMoney.html">Donate Money</a></li>
	         <li><a href="http://ladle/DonateGoods.html">Donate Goods</a></li>
         </ul>
       </li>
       <li class="active"><a href="http://localhost/ladleBlog/wp-content/themes/heisenberg">Blog</a></li>
       <li><a href="#">Contact</a>
         <ul class="menu">
	         <li><a href="http://ladle/Attn_Ladle.php">Contact Us</a></li>
	         <li><a href="http://ladle/Attn_Ladle1.php">Join Prayer Team</a></li>
         </ul>
       </li>
       <li>
         <a href="http://ladle/assets/zoom_search/search.php">Search</a>
       </li>
     </ul>
   </div>
 [</div>]
</div>

I am only using wordpress for the Blog. Everything else was built using the Zurb template and is working fine. . Any suggestions would be appreciated. The Blog using an old version of heisenberg can be seen at ladlefellowship.org/blog.

Sync with current Underscores

I have a big diff I'm working through, which includes changes made to Underscores through commit f6ddaaa21ef562fe85881f7e3cc5bdd1e592bb0e

Update to Foundation 6

With Foundation 6 rolling out, it would be good to update our repo as well to keep in line.

Error running gulp for the first time

I got the theme installed, ran npm install and everything installed correctly.

When I went to run gulp for the first time I got the following error

Error: File to import not found or unreadable:  ../../components/foundation/scss/foundation/functions

The import is located in the base/_base.scss file on line 2

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.