first commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file plugins/blocks/makeSubmission/MakeSubmissionBlockPlugin.inc.php
|
||||
*
|
||||
* Copyright (c) 2014-2020 Simon Fraser University
|
||||
* Copyright (c) 2003-2020 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @class MakeSubmissionBlockPlugin
|
||||
* @ingroup plugins_blocks_makeSubmission
|
||||
*
|
||||
* @brief Class for the "Make a Submission" block plugin
|
||||
*/
|
||||
|
||||
|
||||
|
||||
import('lib.pkp.classes.plugins.BlockPlugin');
|
||||
|
||||
class MakeSubmissionBlockPlugin extends BlockPlugin
|
||||
{
|
||||
/**
|
||||
* Get the display name of this plugin.
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public function getDisplayName()
|
||||
{
|
||||
return __('plugins.block.makeSubmission.displayName');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a description of the plugin.
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return __('plugins.block.makeSubmission.description');
|
||||
}
|
||||
|
||||
/**
|
||||
* @copydoc BlockPlugin::getContents()
|
||||
*
|
||||
* @param null|mixed $request
|
||||
*/
|
||||
public function getContents($templateMgr, $request = null)
|
||||
{
|
||||
$context = $request->getContext();
|
||||
if (!$context) {
|
||||
return '';
|
||||
}
|
||||
return parent::getContents($templateMgr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user