Skip to content

Instantly share code, notes, and snippets.

View awps's full-sized avatar
🎯
Focusing

Andrei Surdu awps

🎯
Focusing
View GitHub Profile
<?php
return array(
'EUR' => [ 'Euro', '&euro;' ],
'USD' => [ 'US dollar', '&#36;' ],
'JPY' => [ 'Japanese yen', '&yen;' ],
'BGN' => [ 'Bulgarian lev', '&#1083;&#1074;.' ],
'CZK' => [ 'Czech koruna', '&#75;&#269;' ],
'DKK' => [ 'Danish krone', 'DKK' ],
'GBP' => [ 'Pound sterling', '&pound;' ],
@awps
awps / money.php
Created March 7, 2018 17:31
Currency symbols PHP ARRAY(probably all that exists)
<?php
return [
'AED' => '&#x62f;.&#x625;',
'AFN' => '&#x60b;',
'ALL' => 'L',
'AMD' => 'AMD',
'ANG' => '&fnof;',
'AOA' => 'Kz',
'ARS' => '&#36;',
// Source: https://gist.github.com/Smartik89/c6b096d82956c777079ba04a3d14d12d/
function smk_menu_sticky( _menu, _sticky_class, _container, _top ){
_container = _container || window;
_sticky_class = _sticky_class || 'sticky-menu';
_menu = _menu || '.main-menu';
_top = _top || 300;
$( _container ).scroll(function () {
if ($(this).scrollTop() > _top) {
$( _menu ).addClass( _sticky_class );
@awps
awps / wgt.php
Created December 19, 2013 23:27
<?php
/*-----------------------------------------------------------
- Name: Options Widget
- Description: Test SMK Toolkit
- Version: 1.0
-------------------------------------------------------------*/
if( ! class_exists('Options_Widget') && class_exists('SMK_Toolkit_Widget') ) {
class Options_Widget extends SMK_Toolkit_Widget {
/*-----------------------------------------------------------