-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathInlineHtmlGalleySidebarBlockPlugin.php
More file actions
106 lines (88 loc) · 2.77 KB
/
InlineHtmlGalleySidebarBlockPlugin.php
File metadata and controls
106 lines (88 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/**
* @file plugins/generic/inlineHtmlGalley/InlineHtmlGalleySidebarBlockPlugin.inc.php
*
* Copyright (c) University of Pittsburgh
* Distributed under the GNU GPL v2 or later. For full terms see the file docs/COPYING.
*
* @class InlineHtmlGalleySidebarBlockPlugin
* @ingroup plugins_generic_inlineHtmlGalley
*
* @brief Class for Inline HTML Galley sidebar block plugin
*/
namespace APP\plugins\generic\inlineHtmlGalley;
use APP\plugins\generic\inlineHtmlGalley\InlineHtmlGalleyBlockPlugin;
abstract class InlineHtmlGalleySidebarBlockPlugin extends InlineHtmlGalleyBlockPlugin {
abstract function blockName();
/**
* Get the display name of this plugin.
* @return String
*/
function getDisplayName() {
return __('plugins.generic.inlineHtmlGalley.block.' . $this->blockName() . '.displayName');
}
/**
* Get a description of the plugin.
* @return String
*/
function getDescription() {
return __('plugins.generic.inlineHtmlGalley.block.' . $this->blockName() . '.description');
}
/**
* Get the name of the block template file.
* @return String
*/
function getBlockTemplateFilename() {
return 'block' . ucfirst($this->blockName()) . '.tpl';
}
}
class InlineHtmlGalleyAuthorsSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "authors";
}
}
class InlineHtmlGalleyKeywordsSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "keywords";
}
}
class InlineHtmlGalleyDoiSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "doi";
}
}
class InlineHtmlGalleyCoverImageSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "coverImage";
}
}
class InlineHtmlGalleyDetailsSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "details";
}
}
class InlineHtmlGalleyPublishedDateSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "publishedDate";
}
}
class InlineHtmlGalleyHowToCiteSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "howToCite";
}
}
class InlineHtmlGalleyLicenseSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "license";
}
}
class InlineHtmlGalleyReferencesSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "references";
}
}
class InlineHtmlGalleyGalleysSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
function blockName() {
return "galleys";
}
}