1
0
Fork 0
cl-content-allocation/includes/functions.chains.php

67 Zeilen
1.6 KiB
PHP

<?php
/**
* Project:
* Contenido Content Management System
*
* Description:
* Chains for Content Allocation
*
* Requirements:
* @con_php_req 5.0
*
*
* @package Contenido Backend plugins
* @version 1.0.1
* @author unknown
* @copyright four for business AG <www.4fb.de>
* @license http://www.contenido.org/license/LIZENZ.txt
* @link http://www.4fb.de
* @link http://www.contenido.org
* @since file available since contenido release <= 4.6
*
* {@internal
* created unknown
* modified 2008-07-02, Frederic Schneider, add security fix
*
* $Id: functions.chains.php 128 2019-07-03 11:58:28Z oldperl $:
* }}
*
*/
if(!defined('CON_FRAMEWORK')) {
die('Illegal call');
}
function pica_RegisterCustomTab ()
{
return array("con_contentallocation");
}
function pica_GetCustomTabProperties ($sIntName)
{
if ($sIntName == "con_contentallocation")
{
return array("con_contentallocation", "con_edit", "");
}
}
function pica_ArticleListActions ($aActions)
{
$aTmpActions["con_contentallocation"] = "con_contentallocation";
return $aTmpActions + $aActions;
}
function pica_RenderArticleAction ($idcat, $idart, $idartlang, $actionkey)
{
global $sess;
if ($actionkey == "con_contentallocation")
{
return '<a title="'.i18n("Content Allocation", "cl-content-allocation").'" alt="'. i18n("Content Allocation", "cl-content-allocation").'" href="'.$sess->url('main.php?area=con_contentallocation&action=con_edit&idart='.$idart.'&idartlang='.$idartlang.'&idcat='.$idcat.'&frame=4').'"><img src="plugins/content_allocation/images/call_contentallocation.gif"></a>';
} else {
return "";
}
}
?>