require 'admin/connection.php';
?>

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="aluminum" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
Exemple #2
0
        $out .= '<!-- current dir name line -->' . "\n" . '<tr>' . "\n" . '<td colspan="' . $colspan . '" align="left">' . "\n" . get_lang('No image to display') . '</td>' . "\n" . '</tr>' . "\n";
    } else {
        if (has_previous_page($imageList, $page)) {
            // link to previous page
            $out .= '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . rawurlencode($curDirPath) . '&page=' . ($page - 1) . $searchCmdUrl)) . '">&lt;&lt;&nbsp;&nbsp;page&nbsp;' . ($page - 1) . '</a>' . "\n";
        } else {
            $out .= '<!-- empty -->';
        }
        $out .= '</th>' . "\n" . '<th class="title" colspan="' . (get_conf('numberOfCols', 3) - 2) . '">' . "\n" . '<p align="center">' . get_lang('Page') . '&nbsp;' . $page . '</p>' . '</th>' . "\n" . '<th class="next" colspan="1" style="width: ' . $colWidth . '%;">' . "\n";
        if (has_next_page($imageList, $page)) {
            // link to next page
            $out .= '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . rawurlencode($curDirPath) . '&page=' . ($page + 1) . $searchCmdUrl)) . '">' . get_lang('Page') . '&nbsp;' . ($page + 1) . '&nbsp;&nbsp;&gt;&gt;</a>' . "\n";
        } else {
            $out .= '<!-- empty -->';
        }
        $out .= '</th>' . "\n" . '</tr>' . "\n" . display_thumbnails($imageList, $fileList, $page, get_conf('thumbnailWidth'), $colWidth, get_conf('numberOfCols'), get_conf('numberOfRows'));
    }
    $out .= '</table>' . "\n";
} else {
    $searchCmdUrl = '';
    if (isset($_REQUEST['searchPattern'])) {
        $searchCmdUrl = '&amp;cmd=exSearch&amp;searchPattern=' . rawurlencode($_REQUEST['searchPattern']);
    }
    $out .= claro_html_document_breadcrumb($curDirPath) . '<table class="claroTable emphaseLine" width="100%">' . '<thead>' . "\n";
    // CURRENT DIRECTORY LINE
    if ($cmd == 'exSearch') {
        $curDirLine = get_lang('Search result');
    } elseif ($curDirName) {
        $curDirLine = '<img src="' . get_icon_url('opendir') . '" alt="" />' . "\n" . $dspCurDirName . "\n";
    } else {
        $curDirLine = '&nbsp;';
Exemple #3
0
     display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     break;
 case 'topn':
     display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'toprated':
     display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'lastcom':
     display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'lasthits':
     display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'anycontent':
     if ($cat == 0) {
         ob_start();
         /**
          * Any php code or HTML can be put in this file and will be displayed
          */
         include 'anycontent.php';
         $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
         ob_end_clean();
         echo $anycontent;
     }
     flush();
     break;
Exemple #4
0
                if (!is_image_extenstion($extension)) {
                    $html .= '<div class="item">
				<a href="" class="pdf-thumbs" data-icon="' . get_file_icon_path($extension) . '" rel="' . $c['path'] . '" title="' . $c['name'] . '">
				<img src="' . get_file_icon_path($extension) . '" class="img-polaroid" width="130" height="90">
				</a>
				<div>
				<a href="" class="pull-left transparent change-file" title="' . lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                } else {
                    $html .= '<div class="item">
				<a href="" class="img-thumbs" rel="' . $c['path'] . '" title="' . $c['name'] . '">
				<img src="' . display_thumbnails($c['path']) . '" class="img-polaroid" width="130" height="90">
				</a>
				<div>
				<a href="" class="pull-left transparent change-file" title="' . lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                }
            }
        }
    }
    if ($html != '') {
        if ($view == 'list') {
            $html = '<br/><table class="table">' . $html . '</table>';
Exemple #5
0
    }
} elseif ($action == "age") {
    $images = sort_by_date($groups, $album);
} elseif ($action == "random") {
    $images = sort_by_random($groups, $album);
} elseif ($action == "virtual") {
    $images = array();
    $lines = file(stripslashes(urldecode($album)));
    foreach ($lines as $line_num => $line) {
        $images[] = $line;
    }
} elseif ($action == "go_on") {
    // Do nothing
} else {
    die("Error");
}
$size_dir = sizeof($images);
$_SESSION['images'] = $images;
display_thumbnails($images, $page * $limit, $limit);
$imagesphp = array_to_get($images, "album");
$nextpage = $page + 1;
if ($page < 1) {
    echo "<li class='end'>More...</li></ul>";
}
if ($page < 1) {
    echo "\n\t<script>\n\t\$(document).ready(function() {\n\t\t\n\t\tchange_display('init');\t\n\t\tvar page = 0;\n\t\t\n\t\t\n\t\tvar limit={$limit};\n\t\tvar size_dir={$size_dir};\n\t\t\n\t\tif((page+1)*limit + 2 >= size_dir) {\n\t\t\t\$('.end').remove();\n\t\t}\n\t\t\n\t\t\$('.end').click(function(){\n\t\t\t\$(this).remove();\n\t\t\tpage++;\n\t\t\tdisplay_more(page,limit,size_dir);\n\t\t});\n\t\t\n\t\t\n\t});\n\t</script>\n\t";
}
?>


?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">Aluminum</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Aluminum" AND item.Location=locations.ID');
echo '<p class="tableTitle">Aluminum/Air-Ride</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Aluminum/Air-Ride" AND item.Location=locations.ID');
echo '<p class="tableTitle">Steel</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Steel" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
Exemple #7
0
                if ($cat != 1) {
                    display_thumbnails('topn', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'toprated':
                if ($cat != 1) {
                    display_thumbnails('toprated', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'lastcom':
                if ($cat != 1) {
                    display_thumbnails('lastcom', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'lastcomby':
                if ($cat != 1 && USER_ID > 1) {
                    display_thumbnails('lastcomby', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'anycontent':
                require "{$CPG_M_DIR}/anycontent.php";
                break;
            case 'favpics':
                if (count($FAVPICS) > 0) {
                    display_thumbnails('favpics', '', '', 1, count($FAVPICS), max(1, $matches[2]), false);
                }
                break;
        }
    }
}
pagefooter();
Exemple #8
0
    if (mysql_num_rows($result)) {
        // This album has a password.
        // Check whether the cookie is set for the current albums password
        if (!empty($_COOKIE[$CONFIG['cookie_name'] . '_albpw'])) {
            $alb_pw = unserialize($_COOKIE[$CONFIG['cookie_name'] . '_albpw']);
            // Check whether the alubm id in the cookie is same as that of the album id send by get
            if (isset($alb_pw[$album]) && ctype_alnum($alb_pw[$album])) {
                $sql = "SELECT aid FROM " . $CONFIG['TABLE_ALBUMS'] . " WHERE MD5(alb_password)='{$alb_pw[$album]}' AND aid='{$album}'";
                $result = cpg_db_query($sql);
                if (mysql_num_rows($result)) {
                    $valid = true;
                    //The album password is correct. Show the album details.
                    get_private_album_set();
                }
            }
        }
    } else {
        // Album with no password. Might be a private or normal album. Just set valid as true.
        $valid = true;
    }
}
$META_ALBUM_SET = $ALBUM_SET;
//temporary assignment until we are sure we are keeping the $META_ALBUM_SET functionality.
CPGPluginAPI::filter('post_breadcrumb', null);
if (!$valid) {
    form_albpw();
} else {
    display_thumbnails($album, isset($cat) ? $cat : 0, $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);
}
pagefooter();
ob_end_flush();
?>

	<?php 
require 'nav.php';
?>


		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="Rear Discharge" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
Exemple #10
0
        }
        get_subcat_data($cat, $album_set_array, $xoopsModuleConfig['subcat_level']);
        // Treat the album set
        if (count($album_set_array)) {
            $set = '';
            foreach ($album_set_array as $album_id) {
                $set .= $set == '' ? $album_id : ',' . $album_id;
            }
            $ALBUM_SET .= "AND aid IN ({$set}) ";
        }
        breadcrumb($cat, $breadcrumb, $breadcrumb_text);
    }
}
$xoopsOption['template_main'] = 'xcgal_index.html';
include XOOPS_ROOT_PATH . "/header.php";
$xoopsTpl->assign('xoops_module_header', $xcgal_module_header);
$xoopsTpl->assign('display_alb_list', '');
user_save_profile();
include_once "include/theme_func.php";
if ($breadcrumb) {
    theme_display_cat_list($breadcrumb, $cat_data, '');
} else {
    $xoopsTpl->assign('breadcrumb', '<a href="index.php">' . $xoopsModule->getVar('name') . '</a>');
    $xoopsTpl->assign('lang_category', 0);
    $xoopsTpl->assign('set_stat', 0);
}
display_thumbnails($album, isset($cat) ? $cat : 0, $page, $xoopsModuleConfig['thumbcols'], $xoopsModuleConfig['thumbrows'], true);
$xoopsTpl->assign('gallery', $xoopsModule->getVar('name'));
main_menu();
do_footer();
include_once "../../footer.php";
require 'admin/connection.php';
?>

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="Cement Storage" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
Exemple #12
0
    foreach ($_SESSION['SimpleImageManager'] as $s) {
        $me = false;
        $exists = is_url_exist($s);
        $url_host = parse_url($s, PHP_URL_HOST);
        if ($url_host == $_SERVER['HTTP_HOST']) {
            $me = true;
        }
        if ($exists == false) {
            continue;
        }
        $extension = GetExtension($s);
        if ($me) {
            if (!is_image_extenstion($extension)) {
                $html .= '<div class="item"><a data-icon="' . get_file_icon_path($extension) . '" href="" class="pdf-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . get_file_icon_path($extension) . '" class="img-polaroid" width="130" height="90"></a></div>';
            } else {
                $html .= '<div class="item"><a href="" class="img-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . display_thumbnails($s) . '" class="img-polaroid" width="130" height="90"></a></div>';
            }
        } elseif ($exists) {
            $html .= '<div class="item"><a href="" class="img-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . $s . '" class="img-polaroid" width="130" height="90"></a></div>';
        }
    }
    if ($html != '') {
        $output["html"] = $html;
    } else {
        $output["success"] = 0;
    }
} else {
    $output["success"] = 0;
}
header("Content-type: text/plain;");
echo json_encode($output);
require 'admin/connection.php';
?>

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="Boost-a-load" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
require 'admin/connection.php';
?>

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="Portable Drybatch" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">6x6</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="6x6" AND item.Location=locations.ID');
echo '<p class="tableTitle">Boost-a-load</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Boost-a-load" AND item.Location=locations.ID');
echo '<p class="tableTitle">Front Discharge</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Rear Discharge" AND item.Location=locations.ID');
echo '<p class="tableTitle">Rear Discharge</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Front Discharge" AND item.Location=locations.ID');
?>
					</div>
				</div>



			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>
Exemple #16
0
function display_gal($galid, $start = 1)
{
    global $s_joueur, $config;
    global $strGalerieInconnue, $strUploaderFichier, $strFichier, $strEnvoyer, $strUploadFichierConsignes, $strRetour, $grade;
    if (!is_gallery($galid)) {
        show_erreur($strGalerieInconnue);
    } else {
        display_gallery_dir($galid);
        display_thumbnails($galid, "", $start);
        if (($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['q'] == 'q') && $galid != "") {
            echo "<form name=input action=\"?page=galerie&op=upload&g={$galid}\" method=post enctype=\"multipart/form-data\">";
            echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>";
            echo "<table cellspacing=1 cellpadding=0 border=0>";
            echo "<tr><td class=headerfiche>{$strUploaderFichier} {$galid}</td></tr>";
            echo "<tr><td>";
            echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>";
            echo "<tr>";
            echo "<td class=titlefiche>{$strFichier} <font color=red><b>*</b></font> :</td>";
            echo "<td class=textfiche><input type=file name=userfile size=40 maxlength=80></td>";
            echo "</tr>";
            echo "<tr><td class=footerfiche align=center colspan=2><input type=submit value=\"{$strEnvoyer}\"></td></tr>";
            echo "</table>";
            echo "</td></tr></table>";
            echo "</td></tr></table>";
            echo "</form>";
            show_consignes($strUploadFichierConsignes . coolsize($config['gallery_max_filesize']));
        }
        $arraygal = explode("/", $galid);
        $linkgal = "{$arraygal['0']}";
        // to avoid the first "/"
        if ($galid) {
            for ($i = 1; $i < count($arraygal) - 1; $i++) {
                $linkgal .= "/" . $arraygal[$i];
            }
            if (count($arraygal) == 1) {
                $linkgal = "";
            }
            echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"?page=galerie&g={$linkgal}\" class=action>{$strRetour}</a><br>";
        } else {
            echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"javascript:back()\" class=action>{$strRetour}</a><br>";
        }
    }
}
Exemple #17
0
                display_thumbnails('lasthits', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'lastup':
                display_thumbnails('lastup', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'topn':
                display_thumbnails('topn', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'toprated':
                display_thumbnails('toprated', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'lastcom':
                display_thumbnails('lastcom', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'mostsend':
                display_thumbnails('mostsend', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
        }
    }
}
//$xoopsTpl->assign('xcgal_main', $temp);
$xoopsTpl->assign('gallery', $xoopsModule->getVar('name'));
main_menu();
//$xoopsTpl->assign('xcgal_footer', pagefooter());
do_footer();
include_once "../../footer.php";
// Speed-up the random image query by 'keying' the image table
$result = $xoopsDB->query("SELECT count(*) FROM " . $xoopsDB->prefix("xcgal_pictures") . " WHERE 1");
$nbEnr = $xoopsDB->fetchArray($result);
$xoopsDB->freeRecordSet($result);
$pic_count = $nbEnr['count(*)'];
	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>
						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">Cement Storage</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Miscellaneous" AND Subtype="Cement Storage" AND item.Location=locations.ID');
echo '<p class="tableTitle">Other</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Miscellaneous" AND Subtype="Other" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
Exemple #19
0
    }
}
//if (!isset($page)) $page = 1;
$page = isset($_GET['page']) ? intval($_GET['page']) : (isset($_POST['page']) ? intval($_POST['page']) : 1);
$album = isset($_GET['album']) ? intval($_GET['album']) : '';
$meta = isset($_GET['meta']) ? $_GET['meta'] : (isset($_POST['meta']) ? $_POST['meta'] : '');
//$cat = isset($_GET['cat']) ? intval($_GET['cat']) : 0;
if ($meta != '') {
    if ($album != '') {
        $thisalbum = "a.aid = {$album}";
    } elseif ($cat == 0) {
        $thisalbum = "a.category >= 0";
    } else {
        if ($cat == 1) {
            $thisalbum = "a.category > " . FIRST_USER_CAT;
        } else {
            $thisalbum = "a.category = {$cat}";
        }
    }
} else {
    $thisalbum = "a.category = cat";
}
pageheader(isset($CURRENT_ALBUM_DATA) ? $CURRENT_ALBUM_DATA['description'] : isset($_GET["meta"]) ? $lang_meta_album_names[$_GET['meta']] : '');
set_breadcrumb(!is_numeric($album));
display_thumbnails($meta, $album, $cat, $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);
// strpos ( string haystack, string needle [, int offset])
$mpl = $CONFIG['main_page_layout'];
if (strpos("{$mpl}", "anycontent") === true) {
    require_once "{$CPG_M_DIR}/anycontent.php";
}
pagefooter();
Exemple #20
0
                            theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        }
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        break;
                    case 'alblist':
                        list_albums();
                        break;
                    case 'anycontent':
                        if ($cat == 0) {
                            ob_start();
                            /**
                             * Any php code or HTML can be put in this file and will be displayed
                             */
                            include 'anycontent.php';
                            $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
                            ob_end_clean();
                            echo $anycontent;
                        }
                        break;
                    default:
                        // all meta albums caught here
                        display_thumbnails($matches[1], $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;
                }
            }
        }
    }
    pagefooter();
}
Exemple #21
0
<?php

get_header();
?>

	<div id="content">

		<?php 
// Calculate offset of photos to fetch
$offset_main = 0;
$current_page = get_query_var('paged') - 1;
if ($current_page == 1) {
    $offset_main = 19;
} elseif ($current_page > 1) {
    $offset_main = 19 + ($current_page - 1) * 18;
}
display_main_photo($offset_main);
// Get the last 19 excerpt to display thumbnail
display_thumbnails($offset_main, $current_page);
?>
		</div> <!-- navigator -->
		
	</div><!-- content -->

<?php 
get_footer();