index.php 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. OCP\Util::addStyle('gallery', 'styles');
  3. OCP\Util::addscript('gallery', 'albums');
  4. OCP\Util::addscript('gallery', 'scanner');
  5. OCP\Util::addscript('gallery', 'album_cover');
  6. OCP\Util::addStyle('files', 'files');
  7. OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
  8. OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
  9. OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
  10. $l = OC_L10N::get('gallery');
  11. ?>
  12. <script type="text/javascript">var gallery_scanning_root='<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'gallery', 'root', '/'); ?>'; var gallery_default_order = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'gallery', 'order', 'ASC'); ?>';</script>
  13. <div id="controls">
  14. <div id="scan">
  15. <div id="scanprogressbar"></div>
  16. <input type="button" class="start" value="<?php echo $l->t('Rescan');?>" onclick="javascript:scanForAlbums();" />
  17. <input type="button" class="stop" style="display:none" value="<?php echo $l->t('Stop');?>" onclick="javascript:Scanner.stop();" />
  18. <input type="button" id="g-share-button" value="<?php echo $l->t('Share'); ?>" onclick="javascript:shareGallery();" />
  19. <input type="button" id="g-settings-button" value="<?php echo $l->t('Settings');?>" onclick="javascript:settings();"/>
  20. </div>
  21. <div id="g-album-navigation">
  22. <div class="crumb last" style="background-image:url('<?php echo OC::$WEBROOT;?>/core/img/breadcrumb.png')">
  23. <a href="javascript:returnToElement(0);">main</a>
  24. </div>
  25. </div>
  26. <div id="g-album-loading" class="crumb" style="display:none">
  27. <img src="<?php echo OCP\Util::linkTo('gallery', 'img/loading.gif'); ?>">
  28. </div>
  29. </div>
  30. <div id="gallery_list">
  31. </div>