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> | |
<html> | |
<head> | |
<title>Moo test</title> | |
</head> | |
<body> | |
<h1>Moo</h1> | |
<p>Lorem ipsum..</p> | |
</body> | |
</html> |
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
<div class="block_content"> | |
<?php $c = 0; foreach ($dossiers as $k => $dossier): | |
if ($c % 4 == 0) print '<div class="clearfix">';?> | |
<div class="dossier <?php if ($k % 4 == 3) print 'last'; ?>"> | |
<?php if (!empty($dossier->article_image_filepath)): ?> | |
<a href="<?php print url('node/'.$dossier->nid); ?>"><?php print theme('imagecache', 'op_list', $dossier->article_image_filepath, '', '', array('class' => 'dossier_img')); ?></a> | |
<?php endif; ?> | |
<h4><a href="<?php print url('node/'.$dossier->nid); ?>"><?php print $dossier->title; ?></a></h4> | |
</div> | |
<?php if ($c % 4 == 3 || $count == (count($dossiers))) print '</div>'; |
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 save($category) { | |
$packageguide = JRequest::get( 'POST' ); | |
$files = JRequest::get( 'FILES' ); | |
if (isset($files['image_upload']) && !$files['image_upload']['error']) { | |
$dir = JPATH_ROOT.DS.'media'.DS.'packageguide'.DS.$category; | |
if(!file_exists($dir)) { | |
mkdir($dir, 0777, true); | |
} | |
move_uploaded_file($files['image_upload']['tmp_name'], $dir.DS.$files['image_upload']['name']); |
NewerOlder