Skip to content

Commit

Permalink
Merge pull request #7 from openjournalteam/preparation-33
Browse files Browse the repository at this point in the history
Preparation 33
  • Loading branch information
rahmanramsi authored Feb 29, 2024
2 parents 340c90d + 982e659 commit 15faf8e
Show file tree
Hide file tree
Showing 8 changed files with 750 additions and 64 deletions.
23 changes: 6 additions & 17 deletions AcademicFreeThemePlugin.inc.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
<?php

/**
* @file plugins/themes/default/AcademicFreeThemePlugin.inc.php
/**
* @file plugins/themes/academicFree/AcademicFreeThemePlugin.inc.php
*
* Copyright (c) 2014-2017 Simon Fraser University Library
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Modified by openjournaltheme.com
* contact : [email protected]
*
*
* @class AcademicFreeThemePlugin
* @ingroup plugins_themes_bootstrap3
*
* @brief Default theme
* Copyright (c) 2024 openjournaltheme.com
* Distributed under the GNU GPL v3. For full terms see the file README.
* No warranty is provided.
*/

import('lib.pkp.classes.plugins.ThemePlugin');
Expand Down Expand Up @@ -75,8 +66,6 @@ public function getPluginVersionFile()
*/
public function init()
{


// Register option for bootstrap themes
$this->addOption('bootstrapTheme', 'radio', array(
'label' => 'plugins.themes.academic_free.options.academicFree.label',
Expand Down Expand Up @@ -219,7 +208,7 @@ public function init()

// default style is paper
$bootstrapTheme = $this->getOption('bootstrapTheme');
$this->addStyle('bootstrap', 'styles/yeti.less');
$this->addStyle('bootstrap', 'styles/yeti.less', array('baseUrl' => $this->_getBaseUrl()));

$locale = AppLocale::getLocale();
if (AppLocale::getLocaleDirection($locale) === 'rtl') {
Expand Down
8 changes: 6 additions & 2 deletions Changelog Academic Free → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### 3.3.0 - 7 September 2021
### 3.3.1.0 - 29 February 2024
- Fix glyphicon not properly loaded
- Release to PKP Plugin Gallery

### 3.3.0.1 - 7 September 2021
- Fix error on article summary when using subscription

### 3.3 - 9 Februari 2021
### 3.3.0.0 - 9 Februari 2021
Compatible with OJS 3.3.X

### 3.2 - 27 April 2020
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# OpenJournal Theme

Welcome to the OpenJournal Theme repository! The Academic Free theme is designed for use with the Open Journal Systems (OJS) platform, providing a clean and customizeable theme for your journal with Boostrap 3 theme.

## Requirement
OJS Minimum version 3.2

## Features

- **Responsive Design:** Ensures your journal's content looks great on any device.
- **Customizable:** Easily to change color or layout for web editor as it using popular Boostrap 3
- **Accessibility:** Built with accessibility in mind, ensuring your content is available to all users.
- **SEO Friendly:** Optimized for search engines to improve your journal's visibility online.

## Installation

The easier step to install the theme is using the Plugin gallery in the OJS.

However, if you want to install using Github, follow these steps:

### From Github
1. Download the theme files from the GitHub repository.
2. Upload the theme folder to your OJS installation's `plugins/themes/` directory.
3. Log in to your OJS admin dashboard and navigate to the Website Settings.
4. Select the OpenJournal Theme from the list of available themes and save your changes.

## Usage

Once installed, you can customize the theme settings from the Theme Settings section in your OJS admin dashboard.
**Manual :**
https://openjournaltheme.com/docs/ojs-product-documentation-free/academic-free-theme-tutorial/


## Contributing

We welcome contributions to the Academic Free theme! If you have ideas for improvements or would like to report a bug, please open an issue on GitHub. Pull requests are also welcome.

## License

Academic Free Theme is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

---

Thank you for choosing the Academic Free theme for your journal! If you have any questions or need assistance, please don't hesitate to contact us to [email protected]

Please note that this theme version (3.xx) is support for OJS 3.2.xx.
If you are using OJS version below that version please download the theme version 2.0.



8 changes: 0 additions & 8 deletions ReadMe & Manual

This file was deleted.

12 changes: 6 additions & 6 deletions bootstrap/less/glyphicons.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
// Import the fonts
@font-face {
font-family: 'Glyphicons Halflings';
src: url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.eot');
src: url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.eot?#iefix') format('embedded-opentype'),
url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.woff2') format('woff2'),
url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.woff') format('woff'),
url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.ttf') format('truetype'),
url('@{baseUrl}/plugins/generic/ojtPlugin/modules/academic_free/bootstrap/fonts/@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');
src: url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.eot');
src: url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.eot?#iefix') format('embedded-opentype'),
url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.woff2') format('woff2'),
url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.woff') format('woff'),
url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.ttf') format('truetype'),
url('@{baseUrl}/bootstrap/fonts/@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');
}

// Catchall baseclass
Expand Down
19 changes: 4 additions & 15 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
<?php

/**
* @defgroup plugins_themes_bootstrap3 Theme plugin for base Bootstrap 3 theme
*/

/**
* @file plugins/themes/default/index.php
*
* Copyright (c) 2014-2017 Simon Fraser University Library
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Modified by openjournaltheme.com
* contact : [email protected]
*
* @ingroup plugins_themes_default
* @brief Wrapper for default theme plugin.
* @file plugins/themes/academicFree/index.php
*
* Copyright (c) 2024 openjournaltheme.com
* Distributed under the GNU GPL v3. For full terms see the file README.
* No warranty is provided.
*/

require_once('AcademicFreeThemePlugin.inc.php');
Expand Down
20 changes: 4 additions & 16 deletions version.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE version SYSTEM "../../../../../lib/pkp/dtd/pluginVersion.dtd">

<!--
* plugins/generic/bootstrap3/version.xml
*
* Copyright (c) 2014-2017 Simon Fraser
University Library
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2.
For full terms see the file docs/COPYING.
*
* Plugin version information.
-->
<!DOCTYPE version SYSTEM "../../../lib/pkp/dtd/pluginVersion.dtd">

<version>
<application>academic_free</application>
<application>academicFree</application>
<type>plugins.themes</type>
<release>3.3.0.8</release>
<date>2018-06-04</date>
<release>3.3.1.1</release>
<date>2024-02-29</date>
<lazy-load>0</lazy-load>
<class>AcademicFreeThemePlugin</class>
</version>

0 comments on commit 15faf8e

Please sign in to comment.