Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/contacts/topbuttonbar.php
<?php
/**
 * @package phlyMail Nahariya 4.0+, Branch MessageCenter
 * @subpackage Handler Contacts
 * @copyright 2001-2010 phlyLabs, Berlin (http://phlylabs.de)
 * @version 0.2.5 2010-05-30
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

if (file_exists($_PM_['path']['handler'].'/contacts/lang.'.$WP_msg['language'].'.php')) {
    require($_PM_['path']['handler'].'/contacts/lang.'.$WP_msg['language'].'.php');
} else {
    require($_PM_['path']['handler'].'/contacts/lang.de.php');
}
class topbuttonbar_contacts
{
    public function __construct(&$_PM_)
    {
        global $WP_msg;
        // Helper assignment. Saves huge API for just having a nice translation of the root node everywhere necessary
        if (!isset($_SESSION['phM_uniqe_handlers']['contacts']['i18n'])) {
            $_SESSION['phM_uniqe_handlers']['contacts']['i18n'] = $WP_msg['MainFoldername'];
        }
        $this->tpl = new fxl_cached_template($_PM_['path']['frontend'].'/templates/topbuttonbar.contacts.tpl', $_PM_['path']['tplcache'].'topbuttonbar.contacts.tpl');
        if (isset($_PM_['customsize']['contacts_previewheight']) && $_PM_['customsize']['contacts_previewheight']
                && (!isset($_PM_['core']['resize_mainwindows']) || $_PM_['core']['resize_mainwindows'])) {
            $this->tpl->fill_block('customheight', 'height', $_PM_['customsize']['contacts_previewheight']);
        }
        // Permissions
        if ($_SESSION['phM_privs']['all'] || $_SESSION['phM_privs']['contacts_add_contact']) {
            $this->tpl->assign_block('has_new_contact');
        }
        if ($_SESSION['phM_privs']['all'] || $_SESSION['phM_privs']['contacts_export_contacts'] || $_SESSION['phM_privs']['contacts_import_contacts']) {
            $this->tpl->assign_block('has_exchange');
        }
        $this->tpl->assign(array
                ('msg_newcontact' => $WP_msg['NewContact']
                ,'msg_setup_contacts' => $WP_msg['MainFoldername']
                ,'msg_edit_vcf' => $WP_msg['MenuOwnVCF']
                ));
        return true;
    }

    public function get()
    {
        return $this->tpl;
    }
}
?>
Return current item: phlyMail Lite