PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/views/elements/admin/themes/index_row.php

https://github.com/hashing/basercms
PHP | 71 lines | 50 code | 3 blank | 18 comment | 16 complexity | ea8716f190bf88794effcaa645407cda MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [ADMIN] テーマ一覧 行
  5. *
  6. * PHP versions 5
  7. *
  8. * baserCMS : Based Website Development Project <http://basercms.net>
  9. * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
  10. *
  11. * @copyright Copyright 2008 - 2012, baserCMS Users Community
  12. * @link http://basercms.net baserCMS Project
  13. * @package baser.views
  14. * @since baserCMS v 0.1.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. ?>
  21. <?php if($data['name']==$bcBaser->siteConfig['theme']): ?>
  22. <?php $class=' class="activerow"' ?>
  23. <?php else: ?>
  24. <?php $class=''; ?>
  25. <?php endif; ?>
  26. <tr<?php echo $class; ?>>
  27. <td class="row-tools" style="width:110px;text-align: right">
  28. <?php if($data['name'] != 'core' && $data['name']!=$bcBaser->siteConfig['theme']): ?>
  29. <?php if($bcBaser->isAdminUser()): ?>
  30. <?php echo $bcForm->checkbox('ListTool.batch_targets.'.$data['name'], array('type' => 'checkbox', 'class' => 'batch-targets', 'value' => $data['name'])) ?>
  31. <?php endif ?>
  32. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_apply.png', array('width' => 24, 'height' => 24, 'alt' => '適用', 'class' => 'btn')), array('action' => 'apply', $data['name']), array('title' => '適用')) ?>
  33. <?php endif ?>
  34. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_manage.png', array('width' => 24, 'height' => 24, 'alt' => '管理', 'class' => 'btn')), array('controller'=>'theme_files','action' => 'index', $data['name']), array('title' => '管理')) ?>
  35. <?php if($data['name'] != 'core'): ?>
  36. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_edit.png', array('width' => 24, 'height' => 24, 'alt' => '編集', 'class' => 'btn')), array('action' => 'edit', $data['name']), array('title' => '編集')) ?>
  37. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_copy.png', array('width' => 24, 'height' => 24, 'alt' => 'コピー', 'class' => 'btn')), array('action' => 'ajax_copy', $data['name']), array('title' => 'コピー', 'class' => 'btn-copy')) ?>
  38. <?php endif ?>
  39. <?php if($data['name'] != 'core'): ?>
  40. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_delete.png', array('width' => 24, 'height' => 24, 'alt' => '削除', 'class' => 'btn')), array('action' => 'ajax_delete', $data['name']), array('title' => '削除', 'class' => 'btn-delete')) ?>
  41. <?php endif ?>
  42. <?php if(!$data['is_writable_pages'] && $data['name'] != 'core'): ?>
  43. <br /><div class="error-message lastChild clearfix" style="clear:both">pagesフォルダに書き込み権限を与えてください</div>
  44. <?php endif ?>
  45. </td>
  46. <td><?php echo $data['name'] ?></td>
  47. <td style="width:220px">
  48. <?php if($data['name']!='core' && $data['screenshot']): ?>
  49. <?php /* ↓↓↓ スマートURLオフの場合、HtmlHelper::link では、正しいリンク先が取得できないので直接記述 ↓↓↓ */ ?>
  50. <a href="<?php echo $html->webroot('/themed/'.$data['name'].'/screenshot.png') ?>" rel="colorbox" class="test">
  51. <?php $bcBaser->img('/themed/'.$data['name'].'/screenshot.png',array(
  52. 'alt'=>$data['title'],
  53. 'width'=>'80px',
  54. 'style'=>'float:left;margin-right:10px;border:1px solid #e2e2e2'
  55. )) ?>
  56. </a>
  57. <?php endif ?>
  58. <?php echo $data['title'] ?>
  59. </td>
  60. <td style="width:70px"><?php echo $data['version'] ?></td>
  61. <td style="width:170px"><?php echo $data['description'] ?></td>
  62. <td><?php if(!empty($data['url']) && !empty($data['author'])): ?>
  63. <?php $bcBaser->link($data['author'],$data['url'],array('target'=>'_blank')) ?>
  64. <?php else: ?>
  65. <?php echo $data['author'] ?>
  66. <?php endif ?>
  67. </td>
  68. </tr>