This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mtime = microtime(); | |
$mtime = explode(' ', $mtime); | |
$mtime = $mtime[1] + $mtime[0]; | |
$starttime = $mtime; | |
//Do something! | |
$mtime = microtime(); | |
$mtime = explode(" ", $mtime); | |
$mtime = $mtime[1] + $mtime[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.navbar { | |
padding: .5em 0; | |
} | |
div.navbar div.breadcrumb ul li{ | |
display:inline-block; | |
*displace:inline; | |
background-color: #DDD; | |
color: #BBB; | |
padding: .1em 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.notifytiny{ | |
position: fixed; | |
bottom: 15px; | |
right: 15px; | |
background: rgba(83, 1, 7, 0.8); | |
border-bottom: 1px solid #750B13; | |
box-shadow: 0px 0px 6px black; | |
color: white; | |
font-size: 1.4em; | |
font-weight: bold; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//custom navigation bar - pure HTML | |
function themename_get_menu(){ | |
//get the menu string from CFG | |
global $CFG; | |
$menu = $CFG->custommenuitems; | |
//now get everything into a two dimensional array [entry][value] | |
$items = explode("\r\n", $menu); | |
$count = 0; | |
while (isset($items[$count])){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gets URL and actions from the old-style $PAGE->button | |
* | |
* It may not look it but this is lightening fast, 10x quicker than getting the button | |
* from the Settings Navigation through navigation API on Moodle 2.1! | |
* | |
* @param string $button The page's edit button from $PAGE->button | |
* @return array containing the 'url' and 'actions' | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** To hide the icons we are using opacity as display:none makes | |
the buttons inaccessible. | |
FILTER attributes should apply to IE so long as the strict | |
doctype is served. Use Filter: none on clear to protect PNG alphas. | |
Tweak the top opacity values to get "ghost" icons rather than hiding them**/ | |
.block .header .commands a img, | |
.path-course-view .section .content li .commands img, | |
.path-course-view .section .content li .commands span.editing_move img, |