This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"a462b7d97f600cfdc7be74827590f666": { | |
"theme": "modern", | |
"skin": "lightgray", | |
"language": "en", | |
"formats": { | |
"alignleft": [ | |
{ | |
"selector": "p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li", | |
"styles": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AndreiBday = '9-26-2016'; | |
if ( date("m-d-Y") == $AndreiBday ) { | |
echo 'HAPPY BDAY'; | |
} else { | |
echo 'Sh*t I\'m in trouble'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'FW' ) ) { | |
die( 'Forbidden' ); | |
} | |
/** | |
* Framework options | |
* | |
* @var array $options Fill this array with options to generate framework settings form in backend | |
*/ | |
$options = array( | |
'main' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('FW')) { | |
die('Forbidden'); | |
} | |
class FW_Option_Type_Thzanimation extends FW_Option_Type | |
{ | |
public function get_type() | |
{ | |
return 'thz-animation'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'FW' ) ) { die( 'Forbidden' ); } | |
/** | |
* @var string $id | |
* @var array $option | |
* @var array $data | |
* @var array $inner_option | |
*/ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//define('_JREQUEST_NO_CLEAN', 1); | |
define( '_JEXEC', 1 ); | |
define( 'DS', DIRECTORY_SEPARATOR ); | |
define('JPATH_BASE',str_replace(basename(dirname(__FILE__)),"",dirname(__FILE__))); | |
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); | |
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); | |
jimport( 'joomla.filesystem.file'); | |
jimport( 'joomla.filesystem.folder' ); | |
jimport( 'joomla.methods' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function thz_create_missing_attachment_size( $attachment_id = false , $handle = false ){ | |
if( !$handle ){ | |
return wp_get_attachment_url( $attachment_id ); | |
} | |
global $_wp_additional_image_sizes; | |
$default_image_sizes = get_intermediate_image_sizes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* GA | |
*/ | |
function _thz_action_add_ga(){ | |
$GAcode = 'XX-XXXXXX-X'; // change with your GA tracking code | |
echo '<script async src="https://www.googletagmanager.com/gtag/js?id=UA-63305981-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(\'js\', new Date()); gtag(\'config\', \''.$GAcode.'\'); </script>'; | |
} | |
add_action('wp_footer', '_thz_action_add_ga'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Thz Framework | |
* @author Themezly | |
* @websites http://www.themezly.com | http://www.youjoomla.com | http://www.yjsimplegrid.com | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // No direct access | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function($) { | |
$(document).ready(function($) { | |
$('.thz-grid-item-title').on('click',function(e){ | |
e.preventDefault(); | |
$(this).parents('.thz-grid-item-in').find('.thz-hover-icon').trigger('click'); | |
}); | |
}); |
OlderNewer