예제 #1
0
		What started out small, has quickly evolved into something much bigger,
		something we are very proud of. We hope that you feel the same after trying
		Infinity yourself.
	</p>

	<h3>
		Documentation
	</h3>

	<p>
		The theme developer documentation is available right in the theme, as well as online!
		Its the best place to start.
		<ul>
			<li>
				<a target="infinity-cpanel-tab-ddocs" href="<?php 
print infinity_dashboard_screen_url('cpanel', 'ddocs', 'index');
?>
">Built-In Docs &raquo;</a>
			</li>
			<li>
				<a target="_blank" href="http://infinity.presscrew.com/docs">Online Docs &raquo;</a>
			</li>
			<li>
				<a target="_blank" href="http://infinity.presscrew.com/api">Online API Manual &raquo;</a>
			</li>
		</ul>
	</p>

	<h3>
		Community & Support
	</h3>
예제 #2
0
/**
 * Pre filter callback
 *
 * @package Infinity
 * @subpackage dashboard
 * @param array $match
 * @return string
 */
function infinity_dashboard_doc_filter_cb($match)
{
    // where are we?
    $location = $match[1];
    // call type
    $call_type = $match[3];
    // the route
    $route = trim($match[4], INFINITY_ROUTE_DELIM);
    switch ($location) {
        case 'admin':
            switch ($call_type) {
                case '':
                case 'action':
                    return infinity_dashboard_screen_url($route);
                case 'image':
                    return infinity_dashboard_image($route);
                case 'doc':
                    return infinity_dashboard_screen_url('cpanel', 'ddocs', $route);
            }
        case 'theme':
            switch ($call_type) {
                case '':
                case 'image':
                    return infinity_image_url($route);
                case 'doc':
                    return infinity_dashboard_screen_url('cpanel', 'docs', $route);
            }
    }
}