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 myLoginLogo() { | |
?> | |
<style type="text/css"> | |
.login h1 a { | |
height: 82px; | |
background-size: auto; | |
background-image: url('<?=get_template_directory_uri();?>/img/logo-login.png'); | |
} | |
</style> | |
<?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
checkboxes = document.getElementsByName("checkableitems[]"); | |
for (i=0;i<checkboxes.length;i++) { | |
var checkbox = checkboxes[i]; | |
if (checkbox.type == "checkbox" && !checkbox.checked ) { | |
checkbox.click(); | |
} | |
}; |
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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ct %cr | %h %s" $branch | head -n 1` \| $branch; done | sort -r |
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 | |
return array( | |
'router' => array( | |
'routes' => array( | |
'contact' => array( | |
'type' => 'Literal', | |
'options' => array( | |
'route' => '/contacts', | |
'defaults' => array( |
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 | |
/** | |
* @author Stefano Torresi (http://stefanotorresi.it) | |
* @license See the file LICENSE.txt for copying permission. | |
* ************************************************ | |
*/ | |
namespace MySlideshow; | |
use MyBase\Entity\Entity; |
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 | |
use Zend\Filter\FilterChain; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
class FormFactory implements FactoryInterface | |
{ | |
public function createService(ServiceLocatorInterface $serviceLocator) | |
{ | |
$form = new Form(); |
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 | |
use Zend\Form\Fieldset; | |
use Zend\Form\Form; | |
use Zend\Form\View\Helper\Form as FormHelper; | |
use Zend\Form\View\HelperConfig; | |
use Zend\Stdlib\ArrayUtils; | |
use Zend\Stdlib\Hydrator\ObjectProperty; | |
use Zend\View\Renderer\PhpRenderer; |
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 | |
include '../zf2/vendor/autoload.php'; | |
$array = include 'config.php'; // ZendSkeletonApp merged configuration | |
$array2 = include 'config2.php'; // zf-apigility-skeleton merged configuration | |
$array3 = include 'config3.php'; // zf-apigility-skeleton merged configuration with a traversable | |
$cycle = isset($argv[1]) ? $argv[1] : 1000; | |
echo 'cycling '.$cycle.' times' . PHP_EOL; |
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 | |
return [ | |
'factories' => [ | |
'Db' => function ($sm) { | |
$dbConfig = $sm->get('db_config'); | |
$db = new PDO( | |
$dbConfig['dsn'], | |
$dbConfig['user'], |
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 | |
$serviceManager = $serviceLocator instanceof AbstractPluginManager ? | |
$serviceLocator->getServiceLocator() : $serviceLocator; |
OlderNewer