Ajout picto bookmark
This commit is contained in:
parent
f2a729362f
commit
831f3b23c3
@ -197,7 +197,7 @@ if ($_socid > 0)
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/bookmarks/fiche.php?action=add&socid=".$objsoc->id."&urlsource=".$_SERVER["PHP_SELF"]."?socid=".$objsoc->id;
|
||||
$head[$h][1] = img_picto($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][2] = 'image';
|
||||
$h++;
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ if ($_socid > 0)
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/index.php?socidp=$objsoc->id&action=add_bookmark";
|
||||
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
|
||||
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][2] = 'image';
|
||||
}
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ if ($_socid > 0)
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/index.php?socidp=$objsoc->id&action=add_bookmark";
|
||||
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
|
||||
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][2] = 'image';
|
||||
}
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ if ($socid > 0)
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark";
|
||||
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
|
||||
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][2] = 'image';
|
||||
}
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ if ($socid > 0)
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark";
|
||||
$head[$h][1] = '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/bookmark.png" alt="Bookmark" title="Bookmark">';
|
||||
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
|
||||
$head[$h][2] = 'image';
|
||||
}
|
||||
|
||||
|
||||
@ -17,25 +17,24 @@
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
\defgroup bookmark4u Module Bookmark4u
|
||||
\brief Module pour gérer l'addon Bookmark4u
|
||||
\defgroup bookmark Module Bookmark
|
||||
\brief Module pour gérer l'addon Bookmark
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/includes/modules/modBookmark4u.class.php
|
||||
\ingroup bookmark4u
|
||||
\brief Fichier de description et activation du module Bookmark4u
|
||||
\file htdocs/includes/modules/modBookmark.class.php
|
||||
\ingroup bookmark
|
||||
\brief Fichier de description et activation du module Bookmark
|
||||
*/
|
||||
|
||||
include_once "DolibarrModules.class.php";
|
||||
|
||||
/**
|
||||
\class modBookmark4u
|
||||
\brief Classe de description et activation du module Bookmark4u
|
||||
\class modBookmark
|
||||
\brief Classe de description et activation du module Bookmark
|
||||
*/
|
||||
|
||||
class modBookmark extends DolibarrModules
|
||||
@ -52,14 +51,14 @@ class modBookmark extends DolibarrModules
|
||||
|
||||
$this->family = "technic";
|
||||
$this->name = "Bookmark";
|
||||
$this->description = "Gestion des Bookmark";
|
||||
$this->description = "Gestion des Bookmarks";
|
||||
$this->revision = explode(" ","$Revision$");
|
||||
$this->version = $this->revision[1]."(DEV)";
|
||||
|
||||
$this->const_name = "MAIN_MODULE_BOOKMARK";
|
||||
$this->const_config = MAIN_MODULE_BOOKMARK;
|
||||
$this->special = 1;
|
||||
//$this->picto='';
|
||||
$this->picto='bookmark';
|
||||
|
||||
// Dir
|
||||
$this->dirs = array();
|
||||
@ -69,7 +68,7 @@ class modBookmark extends DolibarrModules
|
||||
$this->requiredby = array();
|
||||
|
||||
// Config pages
|
||||
//$this->config_page_url = "clicktodial.php";
|
||||
//$this->config_page_url = "";
|
||||
|
||||
// Constantes
|
||||
$this->const = array();
|
||||
|
||||
@ -169,8 +169,10 @@ function llxHeader($head = "") {
|
||||
$menu->add(DOL_URL_ROOT."/postnuke/articles/index.php", "Editorial");
|
||||
}
|
||||
|
||||
if (MAIN_MODULE_BOOKMARK == '1')
|
||||
$menu->add(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("Bookmarks"));
|
||||
if ($conf->bookmark->enabled)
|
||||
{
|
||||
$menu->add(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("Bookmarks"));
|
||||
}
|
||||
|
||||
if ($user->rights->user->user->lire || $user->admin)
|
||||
{
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 690 B |
Binary file not shown.
|
Before Width: | Height: | Size: 252 B |
Binary file not shown.
|
Before Width: | Height: | Size: 252 B |
Binary file not shown.
|
Before Width: | Height: | Size: 252 B |
Binary file not shown.
|
Before Width: | Height: | Size: 252 B |
Loading…
Reference in New Issue
Block a user