Skip to content

Instantly share code, notes, and snippets.

Enhance Joomla 2.5 Pagination with Font Awesome Icons

The Implamantation of the Html in Joomla 2.5 is described in this gist.

A Pen by Hans Spieß. License.

@hansspiess
hansspiess / index.html
Created July 2, 2014 22:52
Multiple google maps with centered marker in foundation reveal modals on one page
<!DOCTYPE html>
<html>
<head>
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/normalize.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/foundation.min.css" rel="stylesheet" type="text/css" />
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/vendor/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/foundation.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDEbRv070GUYNDHSrK8FzNPakJKl3wBmeg&amp;sensor=TRUE"></script>
<meta charset="utf-8">
<title>JS Bin</title>
@hansspiess
hansspiess / 01 eloquentjavascript.net
Last active August 29, 2015 14:16
Collecting my solutions for a great tutorial...
Every chapter of eloquentjavascript.net has some exercises, which i keep here for reference.
@hansspiess
hansspiess / setup-wordpress-with-sage.bash
Last active August 29, 2015 14:16
These commands come in handy when setting up new wp installs with the successor of roots, https://roots.io/sage/.
# download & unzip latest, to be executed in /sites folder
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && rm latest.tar.gz
# move to theme directory
cd wordpress/wp-content/themes/
# clone sage theme: https://roots.io/sage/
git clone https://github.com/roots/sage.git theme-name
# delete standard themes
@hansspiess
hansspiess / Skewed full width menu with scss.markdown
Created June 25, 2015 15:33
Skewed full width menu with scss
@hansspiess
hansspiess / Preferences.sublime-settings
Last active August 29, 2015 14:27
My current Sublime Text 3 User Settings
{
"enable_tab_scrolling": true,
"ignored_packages":
[
"Vintage"
],
// theming & colors
"color_scheme": "Packages/Base16 Color Schemes/base16-ocean.dark.tmTheme",
curl -L http://npmjs.org/install.sh | sudo sh
@hansspiess
hansspiess / terminal.ini
Last active October 30, 2016 10:10
useful terminal commands
# find all php.ini files on machine from terminal.
mdfind php.ini | grep php.ini
# copy local file to remote machine via scp
scp -P 92 /path/filename.ext [email protected]:~/path
# delete non-empty directory
rm -rf <dirname>
# unzip zip file in current dir
@hansspiess
hansspiess / mail.php
Last active February 25, 2016 10:19
Script for sending E-Mails from Localhost for testing purposes. More (german language) at http://www.hansspiess.de/html-e-mail-entwicklung-und-testing-mit-foundation-for-emails-gmail-und-postfix/698/
<?php
// get args from command line
// http://stackoverflow.com/questions/6826718/pass-variable-to-php-script-running-from-command-line
if ( defined('STDIN') ) {
$dir = $argv[1] ? $argv[1] : './';
$ext = $argv[2] ? $argv[2] : 'html';
} else {
die( 'not on a local machine.' );
}
<?php
define'ABSPATH', dirname__FILE__ ;
require_onceABSPATH '../path/to/wp-config.php';