Mike Koro / Toronto Web Design http://mikekoro.com/blog Thu, 06 Feb 2014 04:56:25 +0000 en-US hourly 1 iOS7 Terminal icon LOL:) http://mikekoro.com/blog/ios7-terminal-icon-lol/ http://mikekoro.com/blog/ios7-terminal-icon-lol/#comments Thu, 06 Feb 2014 04:52:35 +0000 http://mikekoro.com/blog/?p=57 You can use LiteIcon to replace your Mac’s standard icons. Make it look like iOS7:)

iosterminalicon

]]>
http://mikekoro.com/blog/ios7-terminal-icon-lol/feed/ 0
940 Responsive Grid for Bootstrap http://mikekoro.com/blog/940-responsive-grid-for-bootstrap/ http://mikekoro.com/blog/940-responsive-grid-for-bootstrap/#comments Sun, 12 Jan 2014 22:00:28 +0000 http://mikekoro.com/blog/?p=46 If you think that the standard responsive Bootstrap grid is too large (1200px for desktop displays) then you might consider adding these line to your CSS file:

]]>
http://mikekoro.com/blog/940-responsive-grid-for-bootstrap/feed/ 0
Contact Form 7 bootstrap-styled submit buttons http://mikekoro.com/blog/contact-form-7-bootstrap-styled-submit-buttons/ http://mikekoro.com/blog/contact-form-7-bootstrap-styled-submit-buttons/#comments Tue, 05 Nov 2013 22:55:03 +0000 http://mikekoro.com/blog/?p=38 Read More]]> Normally you would use this short-code to create a submit button for your contact form:

[submit class:classname "Contact Us"]

Unfortunately if you add class:btn btn-primary to the sort-code above it’s not going to work properly. The button will be rendered like this:

‹input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit btn" /›

As you can see the “btn-primary” part will be omitted. One of the ways to fix it is to use jQuery’s addClass() function. To do so, simply add this code to your WordPress theme head template:

And your submit button short-code will be:

[submit "Contact Us"]

]]>
http://mikekoro.com/blog/contact-form-7-bootstrap-styled-submit-buttons/feed/ 0
Laravel 4: Active Class For Navigational Menu http://mikekoro.com/blog/laravel-4-active-class-for-navigational-menu/ http://mikekoro.com/blog/laravel-4-active-class-for-navigational-menu/#comments Sat, 14 Sep 2013 05:06:04 +0000 http://mikekoro.com/blog/?p=29 Read More]]> This example utilizes Laravel’s HTML::macro() method. Open up your current application’s routes.php file and paste this snippet:

 

Your blade template for navigational menu should be something like this:

<ul>
    <li>{{ HTML::clever_link("/", 'Home' ) }}</li>
    <li>{{ HTML::clever_link("blog", 'Blog' ) }}</li>
</ul>
]]>
http://mikekoro.com/blog/laravel-4-active-class-for-navigational-menu/feed/ 0
Pinterest API: Getting 25 Most Recent Pins http://mikekoro.com/blog/pinterest-api-getting-25-most-recent-pins/ http://mikekoro.com/blog/pinterest-api-getting-25-most-recent-pins/#comments Sat, 14 Sep 2013 03:27:52 +0000 http://mikekoro.com/blog/?p=11 body[$i]->src; // path to pin's image]]>
  • Signup for an account at Mashape and get your API key;
  • Download your copy of Unirest PHP;
  • Use this snippet to retrieve 25 most recent pins:

  •  

    You can use these strings within the For loop:

    $pins->body[$i]->src; // path to pin's image 
    $pins->body[$i]->href; // link to pin's url, eg. /pin/48343395973529582/
    $pins->body[$i]->desc; // pin's description
    $pins->body[$i]->board->href // link to this pin's board
    $pins->body[$i]->board->name // corresponding board's name
    
    ]]>
    http://mikekoro.com/blog/pinterest-api-getting-25-most-recent-pins/feed/ 0