Changeset 5954
- Timestamp:
- 07/08/08 00:33:41 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/findmefollow/functions.inc.php
r5864 r5954 368 368 $grpURL = $_SERVER['PHP_SELF'].'?'.'display=findmefollow&extdisplay=GRP-'.$viewing_itemid; 369 369 if (is_array($set_findmefollow)) { 370 $grpTEXT = (in_array($viewing_itemid,$set_findmefollow) ? "Edit" : "Add")." Follow Me Settings"; 370 if (in_array($viewing_itemid,$set_findmefollow)) { 371 $grpTEXT = _("Edit Follow Me Settings"); 372 $icon = "images/user_go.png"; 373 } else { 374 $grpTEXT = _("Add Follow Me Settings"); 375 $icon = "images/user_add.png"; 376 } 371 377 } else { 372 $grpTEXT = "Add Follow Me Settings"; 373 } 374 $currentcomponent->addguielem('_top', new gui_link('findmefollowlink', $grpTEXT, $grpURL)); 378 $grpTEXT = _("Add Follow Me Settings"); 379 $icon = "images/user_add.png"; 380 } 381 $label = '<span><img width="16" height="16" border="0" title="Delete Extension" alt="" src="'.$icon.'"/> '.$grpTEXT.'</span>'; 382 $currentcomponent->addguielem('_top', new gui_link('findmefollowlink', $label, $grpURL)); 375 383 } 376 384 } modules/branches/2.5/findmefollow/page.findmefollow.php
r5919 r5954 158 158 if (isset($amp_conf["AMPEXTENSIONS"]) && ($amp_conf["AMPEXTENSIONS"] == "deviceanduser")) { 159 159 $editURL = $_SERVER['PHP_SELF'].'?display=users&extdisplay='.ltrim($extdisplay,'GRP-'); 160 $EXTorUSER = "User";160 $EXTorUSER = _("User"); 161 161 } 162 162 else { 163 163 $editURL = $_SERVER['PHP_SELF'].'?display=extensions&extdisplay='.ltrim($extdisplay,'GRP-'); 164 $EXTorUSER = "Extension"; 165 } 166 167 echo "<p><a href=".$editURL."> Edit ".$EXTorUSER." ".ltrim($extdisplay,'GRP-')."</a></p>"; 164 $EXTorUSER = _("Extension"); 165 } 166 167 $label = '<span><img width="16" height="16" border="0" title="'.sprintf(_("Edit %s"),$EXTorUSER).'" alt="" src="images/user_edit.png"/> '.sprintf(_("Edit %s %s"),$EXTorUSER, ltrim($extdisplay,'GRP-')).'</span>'; 168 echo "<p><a href=".$editURL.">".$label."</a></p>"; 168 169 echo "<p>".$delButton."</p>"; 169 170 }
