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
<a href="[[~[[+id]]]]">[[+pagetitle]]</a></li> |
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 | |
$a = explode("\n", $input); | |
foreach ($a as $key => $line) | |
{ | |
$a[$key] = explode(",", $line); | |
}; | |
foreach ($a as $element) | |
{ $output .=" | |
<tr> |
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 getArrayFromCsv($file,$delimiter) { | |
if (($handle = fopen($file, "r")) !== FALSE) { | |
$i = 0; | |
while (($lineArray = fgetcsv($handle, 4000, $delimiter)) !== FALSE) { | |
for ($j=0; $j<count($lineArray); $j++) { | |
$data2DArray[$i][$j] = $lineArray[$j]; | |
} | |
$i++; | |
} |
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 | |
// Отвечаем ТОЛЬКО на ajax запросы | |
if ($_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') {return;} | |
// данный код можно расширить добавив другие действия и указать их в case | |
$action = filter_input(INPUT_POST,'action'); | |
// Если в массиве POST нет действия - выход | |
if (empty($action)) {return;} |
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
<meta property="og:image" content="[[++site_url]][[*title_post_image:phpthumbof=`w=200&h=200&rc=1`]]"/> | |
<meta property="og:site_name" content="[[++site_name:htmlent]]"/> | |
<meta property="og:title" content="[[*pagetitle]]"/> | |
<meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]"/> | |
<meta property="og:type" content="article"/> |
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
<meta property="og:image" content="[[++site_url]][[*title_post_image:phpthumbof=`w=90&h=90&q=80&zc=T`]]"/> | |
<meta property="og:site_name" content="[[++site_name:htmlent]]"/> | |
<meta property="og:title" content="[[*pagetitle]]"/> | |
<meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]"/> | |
<meta property="og:type" content="article"/> |
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 throttle( fn, time ) { | |
var t = 0; | |
return function() { | |
var args = arguments, ctx = this; | |
clearTimeout(t); | |
t = setTimeout( function() { | |
fn.apply( ctx, args ); | |
}, time ); | |
}; |
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
<html> | |
<body> | |
<h2 style="padding:5px; color:black">Custom Tpl, edit to suit your needs<br /> | |
<a href="http://modx.ws/notify.html">Notify</a> | |
MODX Webschool. | |
</h2> | |
<a href="http://modx.ws/notify.html">Check it out</a> | |
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
Ext.onReady(function() { | |
var myDiv1 = Ext.get('div1'); | |
myDiv1.insertFirst({ | |
tag : 'div', | |
html : 'Дочерний элемент вставленный перед контейнером div1', | |
}); | |
}); |