TODO: Write a project description
TODO: Describe the installation process
//credit http://jamshidhashimi.com/2013/04/12/dynamically-add-javascript-and-css-files-in-codeigniter-header-page/ | |
// add to config | |
$config['header_css'] = array('style.css','prettyPhoto.css','nivo-slider.css'); | |
$config['header_js'] = array('core.js','core.js', | |
'jquery-1.4.1.min.js', | |
'jquery-slidedeck.pack.lite.js', | |
'jquery-prettyPhoto.js', | |
'jquery.nivo.slider.js'); | |
// add to function helper |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { | |
} | |
/* Small Devices, Tablets */ |
// https://www.mattcromwell.com/detecting-mobile-devices-javascript/ | |
var isMobile = { | |
Android: function() { return navigator.userAgent.match(/Android/i); }, | |
BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, | |
iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, | |
Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, | |
Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, | |
any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; |
'use strict'; | |
module.exports = function(grunt){ | |
// load all tasks | |
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'}); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
makepot: { | |
target: { |
#!/bin/bash | |
# fix wp-cli di cygwin | |
# save as php | |
# jika muncul error '\r' gunakan dos2unix php | |
# masukkan wp dan php ke /usr/local/bin | |
# chmod +x php | |
# chmod +x wp | |
# e.g. php="/cygdrive/c/Program Files (x86)/php/php.exe" | |
php="/cygdrive/c/xampp/php/php.exe" |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
<?php /* | |
Plugin Name: Boilerplate Widget | |
Description: Starting point for building widgets quickly and easier | |
Version: 1.0 | |
Author: Eddie Moya | |
/** | |
* IMPORTANT: Change the class name for each widget | |
*/ | |
class Boilerplate_Widget extends WP_Widget { |
doctype html | |
html(lang='en') | |
head | |
meta(charset='UTF-8') | |
title earning | |
style. | |
body { | |
font-family: sans-serif; | |
color: #333333; | |
} |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading | |
# slashes. | |
# If your page resides at | |
# http://www.example.com/mypage/test1 | |
# then use | |
# RewriteBase /mypage/test1/ | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f |