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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// esse é um exemplo de como exibir o conteúdo do minicck de cada artigo na view blog | |
// faça um override da view blog de categoria copiando /components/com_content/views/category/blog_item.php para /teutemplate/html/com-content/category/blog_item.php | |
// depois insira o código abaixo diretamente mudando os campos que julgar necessário. | |
// também resolve colocando ---- require 'minicck_view.php'; ---- dentro do blog_item.php e inserindo este arquivo na mesma pasta . | |
<?php | |
defined('_JEXEC') or die; | |
$db = JFactory::getDbo(); | |
$query = $db->getQuery(true); | |
//seleciona as colunas da tabela |
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 | |
// THIS IS A BASIC MODIFICATION OF BLANK TEMPLATE TO SUPPORT AUTOMATIC, CUSTOM OR BOOTSTRAPPED DYNAMIC WIDTHS FOR MODULE POSITIONS | |
// WORKS IN ANY TEMPLATE :) | |
// SAY GOOD BYE TO FIXED WIDTH IN MODULE POSITIONS | |
defined('_JEXEC') or die; | |
include_once JPATH_THEMES . '/' . $this->template . '/logic.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="generator" content="PSPad editor, www.pspad.com"> | |
<title></title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<!-- Optional theme --> |
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 | |
//Change the default Logout button in JomSocial Toolbar in components/com_community/templates/jomsocial/layouts/toolbar/base.php line 441 | |
//Delete the entire code bettween <a> and </a> in the lines 441 at 449 | |
//Put the code bellow instead | |
?> | |
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="logoutForm"> | |
<span style="cursor:pointer;" name="Submit" class="joms-js--logout" onclick="document.logoutForm.submit()"> | |
<svg viewBox="0 0 16 16" class="joms-icon"> |
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
[Default Text] | |
FileNameExtensions=txt; text; wtx; log; asc; doc | |
Default Style=font:Helvetica; size:11; fore:#DDDDDD; back:#222222 | |
Margins and Line Numbers=size:-3; fore:#AAAAAA; back:#444444 | |
Matching Braces=size:+1; bold; fore:#FF0000 | |
Matching Braces Error=size:+1; bold; fore:#000080 | |
Control Characters (Font)=size:-1 | |
Indentation Guide (Color)=fore:#A0A0A0 | |
Selected Text (Colors)=back:#144AD8; eolfilled; alpha:95 | |
Whitespace (Colors, Size 0-5)=fore:#FF4000 |
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
[Default Text] | |
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo | |
Default Style=font:Consolas; size:11; fore:#93a1a1; back:#002b36 | |
Margins and Line Numbers=size:-1; fore:#657b83; back:#073642 | |
Matching Braces=size:+1; bold; fore:#dc322f; back:#073642 | |
Matching Braces Error=size:+1; underline; fore:#dc322f; back:#073642 | |
Control Characters (Font)=size:-1 | |
Indentation Guide (Color)=fore:#073642 | |
Selected Text (Colors)=eolfilled; fore:#eee8d5; back:#586e75 | |
Whitespace (Colors, Size 0-5)=fore:#d33682 |
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
[Custom Colors] | |
01=#000000 | |
02=#0A246A | |
03=#3A6EA5 | |
04=#52A5F8 | |
05=#0D8206 | |
06=#608020 | |
07=#648000 | |
08=#A46000 | |
09=#54EDBF |
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 | |
/*Gallery from any article based on custom category | |
(can be used in any other categories for Joomla) --- put this override in /html/com_content/article in your template*/ | |
/** | |
* @package Joomla.Site | |
* @subpackage com_content | |
* | |
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt |
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
<? | |
header('Content-Type: text/plain'); | |
/** | |
* Changes permissions on files and directories within $dir and dives recursively | |
* into found subdirectories. | |
*/ | |
function chmod_r($dir) | |
{ |
OlderNewer