This file contains hidden or 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 | |
| // no direct access | |
| defined('_JEXEC') or die; | |
| // Variables | |
| $doc = JFactory::getDocument(); | |
| $user = JFactory::getUser(); | |
| $template = 'templates/' . $this->template; | |
| // get html head data |
This file contains hidden or 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 | |
| /** | |
| * @version $Id: router.php 1618 2012-09-21 11:23:08Z lefteris.kavadas $ | |
| * @package K2 | |
| * @author JoomlaWorks http://www.joomlaworks.net | |
| * @copyright Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved. | |
| * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html | |
| */ | |
| // no direct access |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
| <title>localhost</title> | |
| </head> | |
| <body> | |
| <h1>It Works!</h1> | |
| <ul> | |
| <?php |
This file contains hidden or 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 remove_category_prefix_from_archive_title( $title ) { | |
| if ( is_category() ) { | |
| $title = single_cat_title( '', false ); | |
| } elseif ( is_tag() ) { | |
| $title = single_tag_title( '', false ); | |
| } elseif ( is_author() ) { | |
| $title = '<span class="vcard">' . get_the_author() . '</span>' ; | |
| } |
This file contains hidden or 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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20160309 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
This file contains hidden or 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
| /* Based on https://github.com/kenwheeler/slick/issues/187#issuecomment-59123524 */ | |
| /* bootstrap hack: fix content width inside hidden tabs */ | |
| .tab-content > .tab-pane, | |
| .pill-content > .pill-pane { | |
| display: block; /* undo display:none */ | |
| height: 0; /* height:0 is also invisible */ | |
| overflow: hidden; /* no-overflow */ | |
| } | |
| .tab-content > .active, | |
| .pill-content > .active { |
This file contains hidden or 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
| $(window).load(function() { | |
| $('.slides').on('setPosition', function () { | |
| $(this).find('.slick-slide').height('auto'); | |
| var slickTrack = $(this).find('.slick-track'); | |
| var slickTrackHeight = $(slickTrack).height(); | |
| $(this).find('.slick-slide').css('height', slickTrackHeight + 'px'); | |
| }); | |
| }) |
This file contains hidden or 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
| // получаем URL параметры | |
| // var allVars = $.getUrlVars(); | |
| // получаем значение параметра по его имени | |
| // var byName = $.getUrlVar('name'); | |
| $.extend({ | |
| getUrlVars: function(){ | |
| var vars = [], hash; |
This file contains hidden or 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 | |
| /** | |
| * Core Post API | |
| * | |
| * @package WordPress | |
| * @subpackage Post | |
| */ | |
| // | |
| // Post Type Registration |
This file contains hidden or 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
| <div id="my_container"></div> <!-- Form container --> | |
| <!-- JS code from CRM Bitrix24 --> | |
| <!-- Added "node" parametr --> | |
| <script id="bx24_form_inline" data-skip-moving="true"> | |
| (function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u; | |
| (w[b].forms=w[b].forms||[]).push(arguments[0])}; | |
| if(w[b]['forms']) return; | |
| s=d.createElement('script');r=1*new Date();s.async=1;s.src=u+'?'+r; | |
| h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); | |
| })(window,document,'http://cp.silaev.bx/bitrix/js/crm/form_loader.js','b24form'); |
OlderNewer