Beispiel #1
0
    public static function mode_navigation()
    {
        foreach (HeadwayVisualEditor::get_modes() as $mode => $tooltip) {
            $current = HeadwayVisualEditor::is_mode($mode) ? ' class="current-mode"' : null;
            $mode_id = strtolower($mode);
            echo '
				<li' . $current . ' id="mode-' . $mode_id . '">
					<a href="' . home_url() . '/?visual-editor=true&amp;visual-editor-mode=' . $mode_id . '" title="' . htmlspecialchars($tooltip) . '" class="tooltip-top-left">
						<span>' . ucwords($mode) . '</span>
					</a>
				</li>
			';
        }
    }