diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 23:00:36 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-06 23:00:36 +0200 |
commit | 1945cd694636def02a2b2d4fb36720b3f0aeeb10 (patch) | |
tree | ee041bce0aaa57f99a6680c2138c8fef00129869 /apps/media | |
parent | 5d55c709dddad44984446efa49ceb7084fc16b3f (diff) | |
download | nextcloud-server-1945cd694636def02a2b2d4fb36720b3f0aeeb10.tar.gz nextcloud-server-1945cd694636def02a2b2d4fb36720b3f0aeeb10.zip |
ported the oc_template class
Diffstat (limited to 'apps/media')
-rwxr-xr-x | apps/media/index.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/media/settings.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/media/templates/music.php | 12 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/media/templates/player.php | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/apps/media/index.php b/apps/media/index.php index e2911361ea2..906d7bacb6e 100755 --- a/apps/media/index.php +++ b/apps/media/index.php @@ -41,7 +41,7 @@ OCP\Util::addStyle('media','music'); OCP\App::setActiveNavigationEntry( 'media_index' ); -$tmpl = new OC_Template( 'media', 'music', 'user' ); +$tmpl = new OCP\Template( 'media', 'music', 'user' ); $tmpl->printPage(); ?> diff --git a/apps/media/settings.php b/apps/media/settings.php index 133440a9af6..227298fafec 100644..100755 --- a/apps/media/settings.php +++ b/apps/media/settings.php @@ -1,6 +1,6 @@ <?php -$tmpl = new OC_Template( 'media', 'settings'); +$tmpl = new OCP\Template( 'media', 'settings'); return $tmpl->fetchPage(); ?> diff --git a/apps/media/templates/music.php b/apps/media/templates/music.php index 3959d989472..589d6b52475 100644..100755 --- a/apps/media/templates/music.php +++ b/apps/media/templates/music.php @@ -1,11 +1,11 @@ <div class='player-controls' id="controls"> <ul class="jp-controls"> - <li><a href="#" class="jp-play action"><img class="svg" alt="<?php echo $l->t('Play');?>" src="<?php echo image_path('core', 'actions/play-big.svg'); ?>" /></a></li> - <li><a href="#" class="jp-pause action"><img class="svg" alt="<?php echo $l->t('Pause');?>" src="<?php echo image_path('core', 'actions/pause-big.svg'); ?>" /></a></li> - <li><a href="#" class="jp-previous action"><img class="svg" alt="<?php echo $l->t('Previous');?>" src="<?php echo image_path('core', 'actions/play-previous.svg'); ?>" /></a></li> - <li><a href="#" class="jp-next action"><img class="svg" alt="<?php echo $l->t('Next');?>" src="<?php echo image_path('core', 'actions/play-next.svg'); ?>" /></a></li> - <li><a href="#" class="jp-mute action"><img class="svg" alt="<?php echo $l->t('Mute');?>" src="<?php echo image_path('core', 'actions/sound.svg'); ?>" /></a></li> - <li><a href="#" class="jp-unmute action"><img class="svg" alt="<?php echo $l->t('Unmute');?>" src="<?php echo image_path('core', 'actions/sound-off.svg'); ?>" /></a></li> + <li><a href="#" class="jp-play action"><img class="svg" alt="<?php echo $l->t('Play');?>" src="<?php echo OCP\image_path('core', 'actions/play-big.svg'); ?>" /></a></li> + <li><a href="#" class="jp-pause action"><img class="svg" alt="<?php echo $l->t('Pause');?>" src="<?php echo OCP\image_path('core', 'actions/pause-big.svg'); ?>" /></a></li> + <li><a href="#" class="jp-previous action"><img class="svg" alt="<?php echo $l->t('Previous');?>" src="<?php echo OCP\image_path('core', 'actions/play-previous.svg'); ?>" /></a></li> + <li><a href="#" class="jp-next action"><img class="svg" alt="<?php echo $l->t('Next');?>" src="<?php echo OCP\image_path('core', 'actions/play-next.svg'); ?>" /></a></li> + <li><a href="#" class="jp-mute action"><img class="svg" alt="<?php echo $l->t('Mute');?>" src="<?php echo OCP\image_path('core', 'actions/sound.svg'); ?>" /></a></li> + <li><a href="#" class="jp-unmute action"><img class="svg" alt="<?php echo $l->t('Unmute');?>" src="<?php echo OCP\image_path('core', 'actions/sound-off.svg'); ?>" /></a></li> </ul> <div class="jp-progress"> <div class="jp-seek-bar"> diff --git a/apps/media/templates/player.php b/apps/media/templates/player.php index 146c743250e..4d478ec5f50 100644..100755 --- a/apps/media/templates/player.php +++ b/apps/media/templates/player.php @@ -1,7 +1,7 @@ <?php if(!isset($_)){//allow the template to be loaded standalone require_once '../../../lib/base.php'; - $tmpl = new OC_Template( 'media', 'player'); + $tmpl = new OCP\Template( 'media', 'player'); $tmpl->printPage(); exit; } @@ -10,8 +10,8 @@ if(!isset($_)){//allow the template to be loaded standalone <div class='player-controls' id="playercontrols"> <div class="player" id="jp-player"></div> <ul class="jp-controls"> - <li><a href="#" class="jp-play action"><img class="svg" alt="<?php echo $l->t('Play');?>" src="<?php echo image_path('core', 'actions/play.svg'); ?>" /></a></li> - <li><a href="#" class="jp-pause action"><img class="svg" alt="<?php echo $l->t('Pause');?>" src="<?php echo image_path('core', 'actions/pause.svg'); ?>" /></a></li> - <li><a href="#" class="jp-next action"><img class="svg" alt="<?php echo $l->t('Next');?>" src="<?php echo image_path('core', 'actions/play-next.svg'); ?>" /></a></li> + <li><a href="#" class="jp-play action"><img class="svg" alt="<?php echo $l->t('Play');?>" src="<?php echo OCP\image_path('core', 'actions/play.svg'); ?>" /></a></li> + <li><a href="#" class="jp-pause action"><img class="svg" alt="<?php echo $l->t('Pause');?>" src="<?php echo OCP\image_path('core', 'actions/pause.svg'); ?>" /></a></li> + <li><a href="#" class="jp-next action"><img class="svg" alt="<?php echo $l->t('Next');?>" src="<?php echo OCP\image_path('core', 'actions/play-next.svg'); ?>" /></a></li> </ul> </div>
\ No newline at end of file |