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
$repo = json_decode(file_get_contents('https://github.com/api/v2/json/blob/all/cashmusic/DIY/master')); | |
$files = array_keys((array)$repo->blobs); | |
foreach ($files as $file) { | |
$path = pathinfo($file); | |
if (!is_dir('./source/'.$path['dirname'])) mkdir('./source/'.$path['dirname'],0777,true); | |
copy('https://raw.github.com/cashmusic/DIY/master/'.$file,'./source/'.$file); | |
} |
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
<?php | |
$class_name = 'AdminHelper'; | |
echo $class_name . ' Class:<br />'; | |
$c = new ReflectionClass($class_name); | |
$methods = $c->getMethods(); | |
echo '<ul>'; | |
foreach ($methods as $method) { | |
echo '<li>' . $method->getName() . '</li>'; | |
$m = new ReflectionMethod($class_name, $method->getName()); |
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
<style type="text/css"> | |
.facebox {position:absolute;top:400px;left:50%;margin-left:-260px;margin-right:0;margin-bottom:0;background-color:rgba(82, 82, 82, 0.699219);border-radius:8px;color:#333;font-family:"lucida grande",tahoma,verdana,arial,sans-serif !important;font-size:11px;height:180px;padding:10px;width:500px;z-index:1234;visibility:hidden;} | |
.facebox_title {position:absolute;top:9px;left:9px;width:480px;height:17px;padding:7px 10px 5px 10px;font-size:14px;font-weight:bold;color:#fff;background-color:#6D84B4;border:1px solid #3B5998;border-bottom-style:none;z-index:500;} | |
.facebox_content {position:relative;width:500px;height:180px;background-color:#fff;overflow:hidden;outline:1px solid #666;padding:0;} | |
.facebox_content_details {position:absolute;top:29px;width:460px;height:183px;background-color:#fff;overflow:auto;padding:20px;font-size:11px;} | |
.facebox_footer {position:absolute;bottom:0;left:0;width:480px;height:27px;padding:10px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:500;} | |
.facebox_ |
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
<script type="text/javascript"> | |
window.cashmusic.embed('http://x.cashmusic.org/public/','2'); | |
</script> |
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
<script type="text/javascript"> | |
window.cashmusic.embed( | |
'http://x.cashmusic.org/public/', // CASH public endpoint | |
'2', // element id | |
true, // lightboxed, boolean | |
'Open this element', // lightbox open link caption | |
false // target element identifying string (for document.querySelector) | |
); | |
</script> |
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
<script type="text/javascript" src="path/to/cashmusic.js" data-options="lightboxvideo"></script> |
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
<a href="path/to/song.mp3" class="cashmusic soundplayer inline">Song Title</a> |
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
<a href="#" class="cashmusic soundplayer playstop" data-soundid="path/to/song.mp3">Play/stop song</a> | |
<a href="#" class="cashmusic soundplayer playpause" data-playerid="playerid">Play/pause playlist</a> |
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 class="cashmusic soundplayer playlist" style="display:none;"> | |
<a href="path/to/song1.mp3">Song title 1</a> | |
<a href="path/to/song2.mp3">Song title 2</a> | |
</div> |
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 class="cashmusic soundplayer playlist" | |
data-playlist='{ | |
"id":"player1", | |
"artist":"Artist name", | |
"album":"Album title", | |
"tracks":[ | |
{"id":"unique1","title":"Song title 1","url":"path/to/song1.mp3"}, | |
{"id":"unique2","title":"Song title 2","url":"path/to/song2.mp3"} | |
] | |
}' |
OlderNewer