| Server IP : 68.178.247.200 / Your IP : 216.73.217.50 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/www/wp-content/plugins/content_timeline/pages/ |
Upload File : |
<?php
include_once($this->path . '/pages/default_settings.php');
$tpreview = true;
$title = $tname;
$cats = "[";
$catArray = array();
$ccNumbers = array();
$catNumber = 0;
foreach(explode('||',$tsettings) as $val) {
$expl = explode('::',$val);
if(substr($expl[0], 0, 8) == 'cat-name') {
if($cats != "[") $cats .= ",";
$cc = get_cat_name(intval(substr($expl[0], 9)));
$cats .= "'".$cc."'";
array_push ($catArray,$cc);
array_push ($ccNumbers, 0);
$catNumber++;
}
else {
$settings[$expl[0]] = $expl[1];
}
}
$cats .= "]";
if($settings['read-more'] == 'whole-item') {
$read_more = "'.item'";
$swipeOn = 'false';
}
else if ($settings['read-more'] == 'button') {
$read_more = "'.read_more'";
$swipeOn = 'true';
}
else {
$read_more = "'none'";
$swipeOn = 'true';
}
if($settings['cat-type'] == 'categories') {
$cats = ',
categories : '.$cats . ',
numberOfSegments : [';
$cats .= $settings['number-of-posts'];
for ($i = 1; $i < $catNumber; $i++) {
$cats .= ', '. $settings['number-of-posts'];
}
$cats .= ']';
}
else {
$cats = '';
}
if ($titems != '') {
$explode = explode('||',$titems);
$open_content_height = intval($settings['item-height']) - intval($settings['item-open-image-height']) - 2*intval($settings['item-open-content-padding']) -intval($settings['item-open-image-border-width']) - 6;
$itemsArray = array();
foreach ($explode as $it) {
$ex2 = explode('::', $it);
$key = substr($ex2[0],0,strpos($ex2[0],'-'));
$subkey = substr($ex2[0],strpos($ex2[0],'-')+1);
$itemsArray[$key][$subkey] = $ex2[1];
}
}
include_once($this->path . '/pages/front_html.php');
echo $frontHtml;
?>