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
| static function urlAmigavel($nom_tag,$slug="-") { | |
| $string = strtolower($nom_tag); | |
| // Código ASCII das vogais | |
| $ascii['a'] = range(224, 230); | |
| $ascii['e'] = range(232, 235); | |
| $ascii['i'] = range(236, 239); | |
| $ascii['o'] = array_merge(range(242, 246), array(240, 248)); | |
| $ascii['u'] = range(249, 252); | |
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 ( $, window, document, undefined ) { | |
| // Create the defaults once | |
| var pluginName = "urlAmigavel", | |
| defaults = { | |
| alvo: ".recebe-url-amigavel" | |
| }; | |
| // The actual plugin constructor | |
| function Plugin ( element, options ) { |
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
| // Get the HTML contents of the currently active editor | |
| tinyMCE.activeEditor.getContent(); | |
| // Get the raw contents of the currently active editor | |
| tinyMCE.activeEditor.getContent({format : 'raw'}); | |
| // Get content of a specific editor: | |
| tinyMCE.get('content id').getContent() |
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
| $agora = time(); | |
| $mesQueVem = strtotime('+1 day', $agora); |
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
| error_reporting(0); | |
| ini_set('display_errors', 0 ); |
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
| $event = $this->getEvent(); | |
| $request = $event->getRequest(); | |
| $router = $event->getRouter(); | |
| $uri = $router->getRequestUri(); | |
| $caminho_novo = sprintf('%s://%s%s', $uri->getScheme(), $uri->getHost(), $request->getBaseUrl()); |
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 | |
| $url = $this->url()->fromRoute('route', array('action' => 'action', 'param1' => 'param1')); | |
| ?> |
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
| ######################################### | |
| # Tradutor de mensagens de erro do form # | |
| ######################################### | |
| $translator = $e->getApplication()->getServiceManager()->get('MvcTranslator'); | |
| $translator->addTranslationFile( | |
| 'phpArray', | |
| 'vendor/zendframework/zendframework/resources/languages/pt_BR/Zend_Validate.php', | |
| 'default' | |
| ); |
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
| 'translator' => array( | |
| 'locale' => 'pt_BR', | |
| 'translation_file_patterns' => array( | |
| array( | |
| 'type' => 'phpArray', | |
| 'base_dir' => __DIR__ . '/../../../vendor/zendframework/zendframework/resources/languages', | |
| 'pattern' => '%s/Zend_Validate.php', | |
| 'text_domain' => __NAMESPACE__, // Sem isso, o textDomain, usado pelo Zend\I18n\Translator\Translator fica 'default' e como o 'default' já foi definido quando foi adicionado no Application/config/module.config.php há um conflito e fica prevalecendo o do modulo Application | |
| ), | |
| ), |
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
| .video-container { | |
| position: relative; | |
| padding-bottom: 56.25%; | |
| padding-top: 30px; | |
| height: 0; | |
| overflow: hidden; | |
| border: solid 4px #f6e9d5; | |
| } | |
| .video-container iframe, |