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 | |
/* | |
* Předpokládá ACL následujícího tvaru: | |
* resource: Jméno presenteru / komponenty (PHP, včetně namespace) | |
* privilege: Jméno akce / signálu | |
*/ | |
public function userAllowed($component, $destination = NULL) | |
{ | |
if($destination === NULL) // No destination specified, can cause unexpected results when used with n:if-allowed as it would check for previous link! |
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
- MOVED - | |
Can now be found in a repository incl. license, readme, styles and plugin php file: https://github.com/franz-josef-kaiser/Easy-Pagination-Deamon |
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
<IfModule mod_deflate.c> | |
#The following line is enough for .js and .css | |
AddOutputFilter DEFLATE js css | |
AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html | |
#The following lines are to avoid bugs with some browsers | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> |
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 | |
/** | |
* @author Filip Procházka <[email protected]> | |
*/ | |
abstract class BasePresenter extends Nette\Application\UI\Presenter | |
{ | |
/** | |
* @var \Img\ImagePipe |
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 muj_add_post_type() { | |
register_post_type( 'muj_document', | |
array( | |
'labels' => array( | |
'name' => 'Dokument', | |
'singular_name' => 'Dokument', | |
'add_new' => 'Přidat dokument', | |
'add_new_item' => 'Přidat nový dokument', | |
'edit' => 'Upravit', | |
'edit_item' => 'Upravit dokument', |
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 namespace PaintedCloud\WP\Classes; | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
class CustomPost { | |
protected $textdomain; | |
protected $posts; | |
public function __construct( $textdomain ) |
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 | |
function __nette($version = NULL) { | |
if ($version) { | |
require "/var/www/lib/nette/$version/Nette/loader.php"; | |
} else { | |
require '/var/www/dev/nette/Nette/loader.php'; | |
} | |
} |
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
.form-alert { | |
position: relative; | |
top: 0; | |
left: 0; | |
z-index: 1010; | |
max-width: 276px; | |
padding: 1px; | |
text-align: left; | |
white-space: normal; | |
color: #b94a48; |
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
var searchBox = new google.maps.places.SearchBox(document.getElementById('searchinput')); | |
google.maps.event.addListener(searchBox, 'places_changed', function() { | |
var place = searchBox.getPlaces()[0]; | |
if (!place.geometry) return; | |
if (place.geometry.viewport) { | |
map.fitBounds(place.geometry.viewport); | |
} else { |
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 ($) { | |
$.nette.ext('overlay', { | |
before: function (xhr, settings) { | |
if (!settings.nette || !settings.nette.el) { | |
return; | |
} | |
var tar = $(settings.nette.el); | |
var container = tar.closest('.ajax-overlay'); |
OlderNewer