Location: PHPKode > scripts > FarODP > farodp/templates/Browse.php
<?php

if (SEO_MODE) {
	echo '<h1>';


	if ($lastCat != '') {
		echo htmlspecialchars($lastCat) . ', ' . htmlspecialchars($curCat);
	} else { // curCat available
		echo htmlspecialchars($curCat);
	}

	echo '</h1>';

	echo '<p class="description">You have found the way to <strong>'.htmlspecialchars($curCat).'</strong>';

	if ($lastCat != '') {
		echo ' on <em>' . htmlspecialchars($lastCat).'</em>';
	}

	echo ':</p>';
}

// Make breadcrumb.

echo makeBreadcrumb($cat);

// List A to Z elements, if there are any.

if ($out = $node->getElementsByClassName('AstAToZ')) {
    echo '<div class="AToZ"><ul>';
    foreach($out[0]->children as $link) {
        
        if (strtolower(get_class($link)) == strtolower('AstAToZItem')) {
            echo AToZItem($link->name, $link->cat);
        } else {
            echo '<li class="curCat">' . $link->cat . '</li>';
        }
    }
    echo '</ul></div>';
}

// Open a CSS catWrapper.

if ($node->getElementsByClassName('AstBrowseCategorySection') ||
    $node->getElementsByClassName('AstBrowseCategoryRelated')) {
    echo '<div class="catWrapper">';
}

// Display the category sections.

if ($out = $node->getElementsByClassName('AstBrowseCategorySection')) {
    echo "<h2>Categories</h2>";

    foreach($out as $k => $v) {
        if (count($v->children)) {
            displayCategorySection($v->children);
        }

        if ($k < count($out) - 1) {
            echo '<hr />';
        }
    }
}

// Display the related category section.

if ($out = $node->getElementsByClassName('AstBrowseCategoryRelated')) {
    echo '<h3>See Also</h3>';

    echo '<div><ul>';

    foreach($out as $c) {
        echo relatedLink($c->cat, $c->name, $c->count);
    }

    echo '</ul></div>';
}

// Close the CSS catWrapper.

if ($node->getElementsByClassName('AstBrowseCategorySection') ||
    $node->getElementsByClassName('AstBrowseCategoryRelated')) {
    echo '</div>';
    /*
	echo '<div class="yourAdHere">Your Ad Here</div>';

	echo '</div>';*/
}

// Display the listings.

if ($out = $node->getElementsByClassName('AstBrowseListing')) {
    echo '<h2>Site Listings</h2>';

    echo '<div id="listings" class="browse"><ul>';

    foreach($out as $c) {
        echo browseListing($c->url, $c->title, $c->description, $c->isStar, $c->nofollow);
    }

    echo '</ul></div>';
}

?>
Return current item: FarODP