public static function mailer($route, $context = array(), $attachment = null)
 {
     $return = false;
     $mail = \runner::return_route($route, $context, $router);
     $address = isset($router->runner->context['address']) ? $router->runner->context['address'] : false;
     $header = isset($router->runner->context['header']) ? $router->runner->context['header'] : array();
     if ($address || isset($header['AddAddress']) && is_array($header['AddAddress'])) {
         $return = self::sender($address, $header, $mail, $attachment);
     }
     return $return;
 }
<!-- Page Content -->
<div class="rr-content-container">

<?php 
$resource_uri = \bootstrap::get("resource_url");
$current = \bootstrap::get("current");
$content_header = \runner::return_route("content_header");
$resource = \bootstrap::get("resource");
if (isset($resource[0], $resource[1]) && $resource[0] == "category") {
    $SQL = <<<SQL
SELECT models.reference, found_data.type, found_data.id, found_data.sort_order, found_data.date FROM (
SELECT 'product' AS type, oc_product.product_id AS id, oc_product.sort_order, oc_product.date_added AS date FROM oc_product
LEFT JOIN oc_product_to_category ON oc_product_to_category.product_id = oc_product.product_id
LEFT JOIN oc_category ON oc_category.category_id = oc_product_to_category.category_id
LEFT JOIN oc_url_alias ON oc_url_alias.query = CONCAT('category_id=', oc_category.category_id)
WHERE oc_url_alias.keyword = :category
) AS found_data
LEFT JOIN `{PREFIX}models` AS models ON models.model_class = found_data.type AND models.table_id = found_data.id
ORDER BY found_data.sort_order, found_data.date DESC, found_data.id DESC

SQL;
    $params = array(':category' => $resource[1]);
    if ($result = \db::query($SQL, $params)) {
        foreach ($result as $row) {
            $contents[$row["reference"]] = array($row["id"] => $row["type"]);
        }
    }
} elseif (isset($_GET["search"])) {
    $SQL = <<<SQL
SELECT models.reference, found_data.type, found_data.id, found_data.date FROM (
SELECT 'post' AS type, post.id, post.date FROM post