2

我想为 ojs 开发自己的主题。

我采用了现有主题(插件/主题)并仅更新了适合我的环境的文件和变量的名称。我期待在“Setup=>The Look->5.6 Journal Layout”列表中显示我的主题名称,但没有运气。我遇到了一个致命错误。

Fatal error: Class 'SteelThemePlugin' not found in C:\wamp\www\jucs\plugins\themes\shahid\index.php on line 23

我搜索了这个问题并制定了抽象指南。但是,我找不到任何有用的教程。

4

2 回答 2

1

If you cannot find enough detail no problem, Read the following steps you will be able to figure it out.

  1. All the themes are placed inside the plugin/themes directory.

  2. Thus create your theme folder say pakistan.

  3. Now you will have to create the following files:

    3.1. version.xml

    3.2. index.php

    3.3. PakistanThemePlugin.inc.php

    3.4. pakistan.css


NOTE: The easiest way to start with is to copy any existing theme and starting start changing its values that suites you.

Your own custom theme is ready and you can use OJS with same theme as your parent site.

于 2013-01-15T07:47:34.473 回答
1

您可能忘记更改 index.php 包装器中的类名。确保那里的 require_once 语句和 return 语句引用您更新的主题类名称。

于 2014-05-14T21:39:05.383 回答