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; } }
/** * @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 ''; }