Cornerstone a responsive starter theme based on Foundation 4

March 13th, 2013 by

Foundation FrameworkCornerstone is a free WordPress starter theme based on the Zurb Foundation Responsive Framework. Cornerstone aims to provide a lightweight starter theme (a parent theme) that is responsive and SEO friendly that web designers can build great looking website on.
Features:

  • Responsive design
  • Based on the ZURB Foundation Framework 4 – the most advanced responsive front-end framework in the world
  • A 12-column flexible grid that can scale out to an arbitrary size (defined by the max-width of the row) that’s also easily nested
  • Mobility – Foundation Framework 4 was built from the ground up to support any kind of device, any size screen, with any resolution
  • Includes the new Top Bar menu from Foundation Framework 4
  • Orbit slider

I’m just working on adding shortcodes for things like buttons, Orbit, etc.  I’ll also be adding some templates for different layouts and integrating ZURB’s responsive tables into the theme too.

How to use:

Cornerstone is not meant to be used as is. This theme is designed to be used as a parent theme to create a Child Theme from. If you’re unsure how to do this follow the guide at http://codex.wordpress.org/Child_Themes. You can download an example Child Theme at https://github.com/thewirelessguy/cornerstone-child-theme

Can I make themes from Cornerstone and sell them?

Sure, absolutely. The theme uses the MIT licence.

Where can I download it?

You can download it at https://github.com/thewirelessguy/cornerstone/archive/master.zip and/or check out the github repository at https://github.com/thewirelessguy/cornerstone

Where can you see it in action?

This site is using Cornerstone based Foundation Framework 4.

I’d welcome your thoughts on Cornerstone, especially if you spot any bugs. If you do create something cool, let me know. I’d love to see what people are creating with it.

6 Comments

Google release Android Studio based on IntelliJ for Android Development

May 16th, 2013 by

The new Android Studio based on the Community Edition of IntelliJ was released yesterday at Google IO. This replaces the ADT Bundle based on Eclipse released last year. It bring a new set of features and tools to make it easier to develop great Android apps. This video provides a walk through of the new features:

Key features include:

  • A ‘live layout’ which renders your app as you’re editing in real-time
  • Displaying different layouts and screen sizes such and phone and tablets side-by-side so you can quickly see what things look like without having to package up your app and viewing it on the emulator or device.
  • Better code completion.
  • Preview of assets such as icons within the IDE.

Android Studio is still in beta so expect issues when installing or using it. I had issues running it on both my Windows 7 and Windows 8 computers. This was solved by setting the path for Java. A guide for setting the path can be found at http://java.com/en/download/help/path.xml

The first time I tried to create a project I got an error saying that SDK 22 wasn’t found. I’m sure this will be resolved for the 0.2 release. The workaround I found was to open a Android project I’d already created using IntelliJ. If you’re coming from Eclipse then you can migrate your Eclipse projects if you have the updated ADT Plugin. I already had the Android SDK installed in a folder so I updated it to SDK 22 then went into File > Project Structure > Platform Settings > SDKs and changed the settings to point at my folder with SDK 22.

The Next Web have provided a guide to everything announced at the Google I/O 2013 keynote in one handy list.

Leave a comment


Using ZURB’s Foundation Framework 4 with WordPress jQuery

March 13th, 2013 by

Foundation FrameworkThe menu toggle in the Top Bar (on small screen sizes) on ZURB’s Foundation Framework 4 doesn’t work when you use the default jQuery that comes with WordPress, however it works when you use the standard jQuery from Google’s CDN.

You shouldn’t load a different jQuery in WordPress otherwise you could break some plugins. The Zepto library that comes with Foundation doesn’t support Internet Explorer so it’s best to just use jQuery and not load Zepto.

The issue is caused by jQuery.noConflict();

The solution I found was to wrap the foundation.min.js inside:

(function($) {
// the original content of foundation.min.js
}(jQuery));

and then initialize with: jQuery(document).foundation(); instead of $(document).foundation();

I’ve created a responsive starter theme based on Foundation Framework that uses this method. It can be found at https://github.com/thewirelessguy/cornerstone

7 Comments

Google release new ADT Bundle based on Eclipse for Android Development

November 15th, 2012 by

Android SDKNot long ago I was talking with a iOS developer friend of mine who told me that he had looked into Android development, but the installation process was confusing. To get started on developing for Android you had to separately download and install the Android SDK, Eclipse IDE and the ADT. By comparison Xcode the development suite for writing iPhone and iPad apps is available as a single download in the Mac App Store. I suspect there maybe be a lot of people, especially those just starting with programming, that are confused by the installation process.

With the latest release of the Android SDK, Google has solved this with the ADT Bundle – an integrated IDE based on Eclipse, which provides you all you need to get started building your app with just one download. You can find it at http://developer.android.com/sdk/index.html

ADT 21 has a new template mechanism which cleans up the existing templates, adds several new templates and allows developers to create their own custom templates. There’s a nice collection at https://github.com/jgilfelt/android-adt-templates which include templates that use ActionBarSherlock so you have everything you need to quickly build backwards compatible Android apps that use the Holo theme.

Hopefully this should make it easier for new developers to get started.

Update:  The ADT Bundle is now available in 32 and 64 bit versions.

Leave a comment

Enabling developer options in Android 4.2

November 15th, 2012 by

Google has hidden the developer options in Android 4.2. This is to ensure that regular users of Android devices don’t accidentally enable options that may impact the user experience that are only intended for developers testing apps. Here’s how to enable developer options in 4.2:

  1. Go to the settings menu, and scroll down to ‘About phone’. Tap it.
  2. Scroll down to the bottom, where you see ‘Build number’.
  3. Tap ‘Build number’ seven (7) times. After the third tap, you’ll see a toast notification that says “You are now 4 taps away from being a developer”. Keep on tapping and a toast notification will say “You are now a developer”. You now have the developer options back on the settings menu.
Leave a comment

Do Not Disturb Ringer Silencer 1.11 for Android released

October 9th, 2012 by

Added Holo/ICS Theme. Added 12, 24, 48 hour quick set buttons. Changed app permission to support a wider range of devices including tablets.

Update available on Google Play at https://play.google.com/store/apps/details?id=co.uk.thewirelessguy.donotdisturb

Leave a comment

Fixing Android “Debug certificate expired” error

March 24th, 2012 by

Upon installation, the Android SDK generates a “debug” signing certificate for you in a keystore called debug.keystore. A debug certificate is only valid for 365 days after which it generates a “Debug Certificate expired” error. To generate a new one you must delete the existing debug.keystore file. Its location is platform dependent.

Delete your debug certificate under ~/.android/debug.keystore on Linux and Mac OS X; in Windows the directory is %USERPROFILE%/.android eg in Windows 7 C:\Users\[username]\.android.  In Eclipse you can find it in Window – Preferences – Android – Build – Default debug keystore.

Eclipse will then generate a new certificate when you next try to build a debug package. You may need to clean and then build to generate the certificate.

An alternative solution is to create your own debug certificate in debug.keystore with whatever expiration you want. This solves the problem of having to delete all your development .apk files, because the new certificate doesn’t match and also having to get another development MAP-API key as well.

Do this in the .android folder under your HOME directory:

keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000

ADT sets the first and last name on the certificate as “Android Debug”, the organizational unit as “Android” and the two-letter country code as “US”. You can leave the organization, city, and state values as “Unknown”. This example uses a validity of 14000 days. You can use whatever value you like.

If the certificate expires in the middle of project debugging you’ll need to do manual uninstall from the emulator or device.

Leave a comment