仿照 Drupal.ORG 为 DrupalChina 制作了外观主题

drupalchina

呵呵,晚上有些空闲,就给DrupalChina改了外观主题(上图是我的测试站点截取的),这样看起来更有些Drupal的味道了。这款名为BlueBeach的主题是Drupal的四位掌门人之一(原先两位掌门人之一)的Steven做的;我先写信给他问能否在中文Drupal社区使用这个主题,但是他没有答复,所以我就先作了一个,从外观上看大致做到了98%的模仿,不仔细看是看不出区别的。Steven的美工非常的好,如果还没有看过他的这个Drupal的象棋主题,不妨去看看,做得异常精美。所以在研究他的设计的时候也学到了不少东西。

drupal.org使用的是PHPTemplate,所以无法看到它的模板文件,也无从得知它的外观主题是如何书写的,唯一的参照就只有CSS式样表了。原汁原味的BlueBeach主题完全使用 div 来控制的,我原来也想完全用 div,虽然做到了Firefox下显示正常,但是在IE下边栏飘逸到正文的下面去了。所以我只好彻底改了结构,重新使用 table,虽然比较土:(,但是确保了跨浏览器的显示正常。

Steven原来的设计非常精准,很多想法值得学习,譬如在做三栏显示的时候,他通过 switch 函数来控制页面的布置;还有全部的CSS都是比较一致的用 em 来定义字体,呵呵,学到了很多东西。另外也发现了 drupal 外观主体的无比灵活之处,简直可以为所欲为的定义页面的显示,并且可以方便的在外观主题文件中加入 PHP 语法,细腻的定义不同条件下的显示,非常的方便,大大的赞一下:)。

Trackback URL for this post:

http://www.kzeng.info/trackback/1255

Comments

有空我也会看看原来那个主题

顶一个~

Re: 仿照 Drupal.ORG 为 DrupalChina 制作了外观主体

If you don't get a reply, that means you don't have permission. End of story. Please remove the theme at once.

Most of the modules and theme

Most of the modules and themes of Drupal are using GNU GPL license which means users may use and modify them freely. I remember that some guys in the Drupal Forum talked about the license of the BlueBeach theme and said it uses the GNU GPL, too. They also mentioned www.drupal.jp which also uses the BlueBeach theme. That's why I wrote to Steven to confirm this.

I notice that you are from the same Universiteit with Steven. Are you Steven? Or do you know Steven? What's his oppinions? If he does not grant us the permission, or if I am wrong with the license of the BlueBeach, we will remove it as soon as possible.

Actually the theme I made only visually resembles the BlueBeach because I have no access to the original BlueBeach theme files. Anyway, please let me how Steven thinks of the issue.

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.