Init() public static method

public static Init ( )
Ejemplo n.º 1
0
        }
        $strToReturn = '';
        if ($strPrevious) {
            $strToReturn = $strPrevious;
        } else {
            $strToReturn = '<span class="headerGray">&lt;&lt; Previous</span>';
        }
        $intCategoryId = Examples::GetCategoryId();
        if ($intCategoryId < 3) {
            $intPartId = 1;
        } else {
            if ($intCategoryId < 10) {
                $intPartId = 2;
            } else {
                $intPartId = 3;
            }
        }
        $strToReturn .= ' &nbsp; | &nbsp; ';
        $strToReturn .= sprintf('<strong><a href="%s/index.php%s" class="headerLink">Back to Main</a></strong>', __VIRTUAL_DIRECTORY__ . __EXAMPLES__, $intPartId == 1 ? "" : "/" . $intPartId);
        $strToReturn .= ' &nbsp; | &nbsp; ';
        if ($strNext) {
            $strToReturn .= $strNext;
        } else {
            $strToReturn .= '<span class="headerGray">Next &gt;&gt;</span>';
        }
        return $strToReturn;
    }
}
//require_once(__PLUGINS__ . "/plugin_examples.php");
Examples::Init();