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
/* regular */ | |
font-family: "HelveticaNeue", "Helvetica Neue", "HelveticaNeueRoman", "HelveticaNeue-Roman", "Helvetica Neue Roman", 'TeXGyreHerosRegular', "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; | |
font-weight:400; | |
font-stretch:normal; | |
/* condensed */ | |
font-family: "HelveticaNeueCondensed", "HelveticaNeue-Condensed", "Helvetica Neue Condensed", "HelveticaNeueRomanCondensed", "HelveticaNeue-Roman-Condensed", "Helvetica Neue Roman Condensed", "HelveticaNeue", "Helvetica Neue", "HelveticaNeueRoman", "HelveticaNeue-Roman", "Helvetica Neue Roman", 'TeXGyreHerosCnRegular', "Helvetica", "Tahoma", "Geneva", "Arial Narrow", "Arial", sans-serif; | |
font-weight:400; | |
font-stretch:condensed; |
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 | |
// Put into dcaconfig.php | |
// For news | |
$GLOBALS['TL_DCA']['tl_news']['fields']['start']['eval']['rgxp'] = 'datim'; | |
$GLOBALS['TL_DCA']['tl_news']['fields']['start']['eval']['maxlength'] = '16'; | |
$GLOBALS['TL_DCA']['tl_news']['fields']['stop']['eval']['rgxp'] = 'datim'; | |
$GLOBALS['TL_DCA']['tl_news']['fields']['stop']['eval']['maxlength'] = '16'; | |
// For articles |
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
$('#input_text').keyup(function(e) { | |
//alert(e.keyCode); | |
if(e.keyCode == 13) { | |
alert('Enter key was pressed.'); | |
} | |
}); |
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() { | |
$( "#mainnavopt" ).sortable({ | |
connectWith: ".mainnavconnect", | |
placeholder: "ui-state-highlight" | |
}); | |
$( "#subnavopt" ).sortable({ | |
connectWith: ".subnavconnect", | |
tolerance: 'intersect', |
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 jQuery and jQuery UI with the ui-lightness theme with this. | |
K |
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 | |
/** | |
* Get the first or the last day of last month or the current month | |
* @parameter can be "first day" or "last day" | |
* @parameter can be true or false. Will use the current month when false. | |
*/ | |
function get_tstamp_lastmonth($first_or_last_day, $last_month = true) | |
{ |
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 | |
class LeagueTable extends Frontend | |
{ | |
public function getData() | |
{ | |
// curl_init | |
// regexp & DOM | |
$this->Database->prepare("UPDATE tl_leagueinfo SET tstamp=?, table_info=?, WHERE id=1")->execute(time(), $arrTable); | |
} |
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->Config->update("\$GLOBALS['TL_CONFIG']['myVar']", 'myValue'); |
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
# ....other stuff here | |
paginate: 10 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundColor</key> | |
<string>rgba(0.000000,0.000000,0.000000,1.000000)</string> | |
<key>CommentsColor</key> | |
<string>rgba(0.569157,0.569091,0.569188,1.000000)</string> | |
<key>CtagsIdentifierColor</key> | |
<string>rgba(0.6,0.0,0.4,1.0)</string> |