1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 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: ?>