当前位置: 首页>>代码示例>>PHP>>正文


PHP Vtiger_Theme::getAllSkins方法代码示例

本文整理汇总了PHP中Vtiger_Theme::getAllSkins方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Theme::getAllSkins方法的具体用法?PHP Vtiger_Theme::getAllSkins怎么用?PHP Vtiger_Theme::getAllSkins使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Vtiger_Theme的用法示例。


在下文中一共展示了Vtiger_Theme::getAllSkins方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getDisplayValue

 /**
  * Function to get the Display Value, for the current field type with given DB Insert Value
  * @param <Object> $value
  * @return <Object>
  */
 public function getDisplayValue($value)
 {
     $allSkins = Vtiger_Theme::getAllSkins();
     $skinColor = $allSkins[$value];
     $value = ucfirst($value);
     return "<div class='span4' style='width:230px; background-color:{$skinColor};' title='{$value}'>&nbsp;</div>";
 }
开发者ID:xrstf,项目名称:vtiger-mirror,代码行数:12,代码来源:Theme.php

示例2: getDisplayValue

 /**
  * Function to get the Display Value, for the current field type with given DB Insert Value
  * @param <Object> $value
  * @return <Object>
  */
 public function getDisplayValue($value, $record = false, $recordInstance = false, $rawText = false)
 {
     $allSkins = Vtiger_Theme::getAllSkins();
     $skinColor = $allSkins[$value];
     $value = ucfirst($value);
     return "<div class='col-md-4' style='width:230px; background-color:{$skinColor};' title='{$value}'>&nbsp;</div>";
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:12,代码来源:Theme.php

示例3: getDisplayValue

 /**
  * Function to get the Display Value, for the current field type with given DB Insert Value
  * @param <Object> $value
  * @return <Object>
  */
 public function getDisplayValue($value)
 {
     global $log;
     $log->debug("Entering ./uitypes/Theme.php::getDisplayValue");
     $allSkins = Vtiger_Theme::getAllSkins();
     $skinColor = $allSkins[$value];
     $value = ucfirst($value);
     return "<div class='span4' style='width:230px; background-color:{$skinColor};' title='{$value}'>&nbsp;</div>";
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:14,代码来源:Theme.php

示例4: get_themes

/**
 * Return an array of directory names.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_themes()
{
    return Vtiger_Theme::getAllSkins();
}
开发者ID:yunter,项目名称:crm,代码行数:10,代码来源:utils.php

示例5: content_5674dd282e457


//.........这里部分代码省略.........
                echo $_smarty_tpl->tpl_vars['moduleName']->value;
                ?>
" href="<?php 
                echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
                ?>
</a></label><?php 
            }
            ?>
</span><?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['last'] || ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] + 1) % 4 == 0) {
                ?>
</div><?php 
            }
        }
        if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->isAdminUser()) {
            ?>
<div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=MenuEditor&parent=Settings&view=Index" class="pull-right"><?php 
            echo vtranslate('LBL_CUSTOMIZE_MAIN_MENU', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=ModuleManager&parent=Settings&view=List" class="pull-right"><?php 
            echo vtranslate('LBL_ADD_MANAGE_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><?php 
        }
        ?>
</div></li></ul></div><div class="span3 marginLeftZero pull-right" id="headerLinks"><span id="headerLinksBig" class="pull-right headerLinksContainer"><span class="dropdown span settingIcons"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><img src="<?php 
        echo vimage_path('theme_brush.png');
        ?>
" alt="theme roller" title="Theme Roller" /></a><ul class="dropdown-menu themeMenuContainer"><div id="themeContainer"><?php 
        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
        $_smarty_tpl->tpl_vars['THEMES_LIST'] = new Smarty_variable(Vtiger_Theme::getAllSkins(), null, 0);
        ?>
<div class="row-fluid themeMenu"><?php 
        $_smarty_tpl->tpl_vars['SKIN_COLOR'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = false;
        $_smarty_tpl->tpl_vars['SKIN_NAME'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['THEMES_LIST']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SKIN_COLOR']->key => $_smarty_tpl->tpl_vars['SKIN_COLOR']->value) {
            $_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = true;
            $_smarty_tpl->tpl_vars['SKIN_NAME']->value = $_smarty_tpl->tpl_vars['SKIN_COLOR']->key;
            if ($_smarty_tpl->tpl_vars['COUNTER']->value == 3) {
                ?>
</div><div class="row-fluid themeMenu"><?php 
                $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);
            } else {
                $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
            }
            ?>
<div class="span4 themeElement <?php 
            if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('theme') == $_smarty_tpl->tpl_vars['SKIN_NAME']->value) {
                ?>
themeSelected<?php 
            }
            ?>
" data-skin-name="<?php 
            echo $_smarty_tpl->tpl_vars['SKIN_NAME']->value;
            ?>
" title="<?php 
            echo ucfirst($_smarty_tpl->tpl_vars['SKIN_NAME']->value);
            ?>
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:67,代码来源:a44c8b80a46730cdae7ca15392c353bd95d5eed1.file.MenuBar.tpl.php

示例6: getAllSkins

 /**
  * Function to returns all skins(themes)
  * @return <Array>
  */
 public function getAllSkins()
 {
     return Vtiger_Theme::getAllSkins();
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:8,代码来源:Field.php


注:本文中的Vtiger_Theme::getAllSkins方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。