Open Journal Systems  3.3.0
CriticalTimesThemePlugin Class Reference
Inheritance diagram for CriticalTimesThemePlugin:
ThemePlugin LazyLoadPlugin Plugin

Public Member Functions

 addIssueDaoFields ($hookName, $args)
 
 getAuthorString ($authors)
 
 getDescription ()
 
 getDisplayName ()
 
 getIssueIdentification ($issue)
 
 getTranslatorString ($authors)
 
 init ()
 
 loadArticleTemplateData ($hookName, $args)
 
 loadIssueTemplateData ($hookName, $args)
 
 loadIssueTocHandler ($hookName, $args)
 
 loadIssueTocTemplateData ($hookName, $args)
 
 loadSpotlightTemplateData ($hookName, $args)
 
 loadTemplateData ($hookName, $args)
 
- Public Member Functions inherited from ThemePlugin
 _getBaseDir ($path='')
 
 _getBaseUrl ($path='')
 
 _registerScripts ()
 
 addMenuArea ($menuAreas)
 
 addOption ($name, $type, $args=array())
 
 addScript ($name, $script, $args=array())
 
 addStyle ($name, $style, $args=array())
 
 getMenuAreas ($existingAreas=array())
 
 getOption ($name)
 
 getOptionConfig ($name)
 
 getOptionsConfig ()
 
 getOptionValues ($contextId)
 
getScript ($name)
 
getStyle ($name)
 
 initAfter ()
 
 isActive ()
 
 isColourDark ($color, $limit=130)
 
 modifyOptionsConfig ($name, $args=array())
 
 modifyScript ($name, $args=array())
 
 modifyStyle ($name, $args=array())
 
 register ($category, $path, $mainContextId=null)
 
 removeMenuArea ($menuArea)
 
 removeOption ($name)
 
 removeScript ($name)
 
 removeStyle ($name)
 
 saveOption ($name, $value, $contextId=null)
 
 setParent ($parent)
 
 themeRegistered ($themes)
 
 validateOptions ($options, $themePluginPath, $contextId, $request)
 
- Public Member Functions inherited from LazyLoadPlugin
 getCanDisable ()
 
 getCanEnable ()
 
 getCurrentContextId ()
 
 getEnabled ($contextId=null)
 
 getName ()
 
 setEnabled ($enabled)
 
- Public Member Functions inherited from Plugin
 __construct ()
 
 _overridePluginTemplates ($hookName, $args)
 
 addLocaleData ($locale=null)
 
 getActions ($request, $actionArgs)
 
 getCategory ()
 
 getContextSpecificPluginSettingsFile ()
 
 getCurrentVersion ()
 
 getDirName ()
 
 getEnabled ()
 
 getHideManagement ()
 
 getInstallControlledVocabFiles ()
 
 getInstallDataFile ()
 
 getInstallEmailTemplateDataFile ()
 
 getInstallEmailTemplatesFile ()
 
 getInstallFilterConfigFiles ()
 
 getInstallMigration ()
 
 getInstallSchemaFile ()
 
 getInstallSitePluginSettingsFile ()
 
 getLocaleFilename ($locale)
 
 getPluginPath ()
 
getRequest ()
 
 getSeq ()
 
 getSetting ($contextId, $name)
 
 getTemplatePath ($inCore=false)
 
 getTemplateResource ($template=null, $inCore=false)
 
 import ($class)
 
 installContextSpecificSettings ($hookName, $args)
 
 installControlledVocabs ($hookName, $args)
 
 installData ($hookName, $args)
 
 installEmailTemplateData ($hookName, $args)
 
 installEmailTemplates ($hookName, $args)
 
 installFilters ($hookName, $args)
 
 installLocale ($hookName, $args)
 
 installSiteSettings ($hookName, $args)
 
 isSitePlugin ()
 
 manage ($args, $request)
 
 smartyPluginUrl ($params, $smarty)
 
 updateSchema ($hookName, $args)
 
 updateSetting ($contextId, $name, $value, $type=null)
 

Additional Inherited Members

- Data Fields inherited from ThemePlugin
 $menuAreas = array()
 
 $options = array()
 
 $parent
 
 $scripts = array()
 
 $styles = array()
 
- Data Fields inherited from Plugin
 $pluginCategory
 
 $pluginPath
 
 $request
 
- Protected Member Functions inherited from Plugin
 _registerTemplateResource ($inCore=false)
 
- Protected Attributes inherited from ThemePlugin
 $_optionValues = null
 

Detailed Description

OJS 3 theme for Critical Times, a journal run by the International Consortium of Critical Theory.

Definition at line 20 of file CriticalTimesThemePlugin.inc.php.

Member Function Documentation

◆ addIssueDaoFields()

CriticalTimesThemePlugin::addIssueDaoFields (   $hookName,
  $args 
)

Add the additional sttings fields to the issue dao

Parameters
$hookNamestring
$argsarray [ @option SectionDAO @option array List of additional fields ]

Definition at line 362 of file CriticalTimesThemePlugin.inc.php.

◆ getAuthorString()

CriticalTimesThemePlugin::getAuthorString (   $authors)

Get a list of authors that excludes translators. Returns an empty string if no non-translator authors exist.

Parameters
$authorsArray
Returns
string

Definition at line 285 of file CriticalTimesThemePlugin.inc.php.

References ThemePlugin\getOption().

◆ getDescription()

CriticalTimesThemePlugin::getDescription ( )

Get the description of this plugin

Returns
string

Reimplemented from Plugin.

Definition at line 94 of file CriticalTimesThemePlugin.inc.php.

◆ getDisplayName()

CriticalTimesThemePlugin::getDisplayName ( )

Get the display name of this plugin

Returns
string

Reimplemented from Plugin.

Definition at line 86 of file CriticalTimesThemePlugin.inc.php.

◆ getIssueIdentification()

CriticalTimesThemePlugin::getIssueIdentification (   $issue)

A replacement for Issue::getIssueIdentification()

Returns a custom format for the issue identification (vol, no, title)

Parameters
$issueIssue

Definition at line 343 of file CriticalTimesThemePlugin.inc.php.

◆ getTranslatorString()

CriticalTimesThemePlugin::getTranslatorString (   $authors)

Get a list of translators to be displayed alongside authors. Returns an empty string if no translators exist

Parameters
$authorsArray
Returns
string

Definition at line 313 of file CriticalTimesThemePlugin.inc.php.

References ThemePlugin\getOption().

◆ init()

CriticalTimesThemePlugin::init ( )

The primary method themes should use to add styles, scripts and fonts, or register hooks. This method is only fired for the currently active theme.

Returns
null

Reimplemented from ThemePlugin.

Definition at line 25 of file CriticalTimesThemePlugin.inc.php.

References ThemePlugin\$options, ThemePlugin\addMenuArea(), ThemePlugin\addOption(), ThemePlugin\addScript(), ThemePlugin\addStyle(), PKPApplication\get(), DAORegistry\getDAO(), and HookRegistry\register().

◆ loadArticleTemplateData()

CriticalTimesThemePlugin::loadArticleTemplateData (   $hookName,
  $args 
)

Load custom data for article templates

See also
CriticalTimesThemePlugin::loadTemplateData()

Definition at line 148 of file CriticalTimesThemePlugin.inc.php.

References Plugin\$request, PKPApplication\get(), and DAORegistry\getDAO().

Referenced by loadTemplateData().

◆ loadIssueTemplateData()

CriticalTimesThemePlugin::loadIssueTemplateData (   $hookName,
  $args 
)

Load custom data for an issue (homepage and single issue)

See also
CriticalTimesThemePlugin::loadTemplateData()

Definition at line 200 of file CriticalTimesThemePlugin.inc.php.

References Plugin\$request, PKPApplication\get(), and DAORegistry\getDAO().

Referenced by loadTemplateData().

◆ loadIssueTocHandler()

CriticalTimesThemePlugin::loadIssueTocHandler (   $hookName,
  $args 
)

Load the handler to deal with issue table of contents tab requests

Parameters
$hookNamestring LoadComponentHandler
$argsarray [ @option string component @option string op ]
Returns
bool

Definition at line 404 of file CriticalTimesThemePlugin.inc.php.

References $op, Plugin\$request, and PKPApplication\get().

◆ loadIssueTocTemplateData()

CriticalTimesThemePlugin::loadIssueTocTemplateData (   $hookName,
  $args 
)

Load custom data for the issue table of contents form

Parameters
string$hookName
array$args[ @option TemplateManager @option string Template file requested @option string @option string @option string output HTML ]

Definition at line 434 of file CriticalTimesThemePlugin.inc.php.

References Plugin\$request.

◆ loadSpotlightTemplateData()

CriticalTimesThemePlugin::loadSpotlightTemplateData (   $hookName,
  $args 
)

Load custom data for the spotlight on the homepage

See also
CriticalTimesThemePlugin::loadTemplateData()

Definition at line 249 of file CriticalTimesThemePlugin.inc.php.

References Plugin\$request, PKPApplication\get(), DAORegistry\getDAO(), and ThemePlugin\getOption().

Referenced by loadTemplateData().

◆ loadTemplateData()

CriticalTimesThemePlugin::loadTemplateData (   $hookName,
  $args 
)

Load custom data for templates

Parameters
string$hookName
array$args[ @option TemplateManager @option string Template file requested @option string @option string @option string output HTML ]

Definition at line 110 of file CriticalTimesThemePlugin.inc.php.

References Plugin\$request, PKPApplication\get(), DAORegistry\getDAO(), loadArticleTemplateData(), loadIssueTemplateData(), and loadSpotlightTemplateData().


The documentation for this class was generated from the following file: