1: <?php
2: /**
3: * This file contains various function for the plugin content allocation.
4: *
5: * @package Plugin
6: * @subpackage ContentAllocation
7: * @version SVN Revision $Rev:$
8: *
9: * @author Unknown
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: function pica_RegisterCustomTab ()
19: {
20: return array("con_contentallocation");
21: }
22:
23: function pica_GetCustomTabProperties ($sIntName)
24: {
25: if ($sIntName == "con_contentallocation")
26: {
27: return array("con_contentallocation", "con_edit", "");
28: }
29: }
30:
31: function pica_ArticleListActions ($aActions)
32: {
33: $aTmpActions["con_contentallocation"] = "con_contentallocation";
34:
35: return $aTmpActions + $aActions;
36: }
37:
38: function pica_RenderArticleAction ($idcat, $idart, $idartlang, $actionkey)
39: {
40: global $sess;
41:
42: if ($actionkey == "con_contentallocation")
43: {
44: return '<a title="'.i18n("Tagging", 'content_allocation').'" alt="'.i18n("Tagging", '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" alt=""></a>';
45:
46: } else {
47: return "";
48: }
49: }
50: ?>