Skip to content
Snippets Groups Projects
Commit 4e00195c authored by ØyvindG's avatar ØyvindG
Browse files

add initial commit for UiB child theme, based on defaultChild example

parents
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @file plugins/themes/default/DefaultUibThemePlugin.inc.php
*
* Copyright (c) 2014-2022 Simon Fraser University Library
* Copyright (c) 2003-2022 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class DefaultUibThemePlugin
* @ingroup plugins_themes_default
*
* @brief Default theme
*/
import('lib.pkp.classes.plugins.ThemePlugin');
class DefaultUibThemePlugin extends ThemePlugin {
/**
* Initialize the theme's styles, scripts and hooks. This is only run for
* the currently active theme.
*
* @return null
*/
public function init() {
$this->setParent('defaultthemeplugin');
$this->modifyStyle('stylesheet', array('addLess' => array('styles/uib-changes.less')));
}
/**
* Get the display name of this plugin
* @return string
*/
function getDisplayName() {
return __('plugins.themes.defaultUib.name');
}
/**
* Get the description of this plugin
* @return string
*/
function getDescription() {
return __('plugins.themes.defaultUib.description');
}
}
?>
<?php
/**
* @defgroup plugins_themes_default_child Default theme plugin
*/
/**
* @file plugins/themes/defaultChild/index.php
*
* Copyright (c) 2014-2016 Simon Fraser University Library
* Copyright (c) 2003-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @ingroup plugins_themes_defaultChild
* @brief Wrapper for default child theme plugin.
*
*/
require_once('DefaultUibThemePlugin.inc.php');
return new DefaultUibThemePlugin();
?>
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2020-11-27T16:11:07+00:00\n"
"PO-Revision-Date: 2020-11-27T16:11:07+00:00\n"
"Language: \n"
msgid "plugins.themes.defaultUib.name"
msgstr "Default UiB child theme"
msgid "plugins.themes.defaultChild.description"
msgstr "This theme contains local changes for UiB to the default theme"
# UiB child theme
Child theme used for Bergen Open Access Publishing.
* See https://docs.pkp.sfu.ca/pkp-theming-guide/en/ for PKP theme documentation
* See https://github.com/NateWr/defaultChild (full typed out example for default child theme) for specific implementations.
// This LESS file will be parsed before the default stylesheet is compiled. Any
// variables defined here will override those in the original stylesheet.
//
.pkp_footer_content { float: left; }
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE version SYSTEM "../../../lib/pkp/dtd/pluginVersion.dtd">
<!--
* plugins/themes/defaultChild/version.xml
*
* Copyright (c) 2014-2016 Simon Fraser University Library
* Copyright (c) 2003-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Plugin version information.
-->
<version>
<!-- The application should match the theme folder to ensure it is unique -->
<application>defaultUib</application>
<!-- The type should always be `plugins.themes` -->
<type>plugins.themes</type>
<!--
The current version. It should always include 4 numbers.
Valid: 1.0.2.3, 0.1.4.0
Invalid: 1.0, v1.0.4, 1.0.0.0b
-->
<release>1.0.0.0</release>
<!-- The date of the latest version -->
<date>2022-09-05</date>
<!-- This should always be 1 -->
<lazy-load>1</lazy-load>
<!-- The class name of the plugin. See index.php -->
<class>DefaultUibThemePlugin</class>
</version>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment