コード例 #1
0
ファイル: map.php プロジェクト: venamax/trixandtrax-cl
function getVcShared($asset = '')
{
    switch ($asset) {
        case 'colors':
            return VcSharedLibrary::getColors();
            break;
        case 'icons':
            return VcSharedLibrary::getIcons();
            break;
        case 'sizes':
            return VcSharedLibrary::getSizes();
            break;
        case 'button styles':
        case 'alert styles':
            return VcSharedLibrary::getButtonStyles();
            break;
        case 'cta styles':
            return VcSharedLibrary::getCtaStyles();
            break;
        case 'text align':
            return VcSharedLibrary::getTextAlign();
            break;
        case 'cta widths':
        case 'separator widths':
            return VcSharedLibrary::getElementWidths();
            break;
        case 'separator styles':
            return VcSharedLibrary::getSeparatorStyles();
            break;
        case 'single image styles':
            return VcSharedLibrary::getBoxStyles();
            break;
        default:
            # code...
            break;
    }
}
コード例 #2
0
/**
 * @param string $asset
 *
 * @return array
 */
function getVcShared($asset = '')
{
    switch ($asset) {
        case 'colors':
            return VcSharedLibrary::getColors();
            break;
        case 'colors-dashed':
            return VcSharedLibrary::getColorsDashed();
            break;
        case 'icons':
            return VcSharedLibrary::getIcons();
            break;
        case 'sizes':
            return VcSharedLibrary::getSizes();
            break;
        case 'button styles':
        case 'alert styles':
            return VcSharedLibrary::getButtonStyles();
            break;
        case 'message_box_styles':
            return VcSharedLibrary::getMessageBoxStyles();
            break;
        case 'cta styles':
            return VcSharedLibrary::getCtaStyles();
            break;
        case 'text align':
            return VcSharedLibrary::getTextAlign();
            break;
        case 'cta widths':
        case 'separator widths':
            return VcSharedLibrary::getElementWidths();
            break;
        case 'separator styles':
            return VcSharedLibrary::getSeparatorStyles();
            break;
        case 'separator border widths':
            return VcSharedLibrary::getBorderWidths();
            break;
        case 'single image styles':
            return VcSharedLibrary::getBoxStyles();
            break;
        case 'single image external styles':
            return VcSharedLibrary::getBoxStyles(array('default', 'round'));
            break;
        case 'toggle styles':
            return VcSharedLibrary::getToggleStyles();
            break;
        case 'animation styles':
            return VcSharedLibrary::getAnimationStyles();
            break;
        default:
            # code...
            break;
    }
    return '';
}