1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: function pica_RegisterCustomTab ()
17: {
18: return array("con_contentallocation");
19: }
20:
21: function pica_GetCustomTabProperties ($sIntName)
22: {
23: if ($sIntName == "con_contentallocation")
24: {
25: return array("con_contentallocation", "con_edit", "");
26: }
27: }
28:
29: function pica_ArticleListActions ($aActions)
30: {
31: $aTmpActions["con_contentallocation"] = "con_contentallocation";
32:
33: return $aTmpActions + $aActions;
34: }
35:
36: function pica_RenderArticleAction ($idcat, $idart, $idartlang, $actionkey)
37: {
38: global $sess;
39:
40: if ($actionkey == "con_contentallocation")
41: {
42: 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>';
43:
44: } else {
45: return "";
46: }
47: }
48: ?>