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


PHP Essential_Grid_Base::get_hover_animations方法代码示例

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


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

示例1: get_allowed_meta

 /**
  * get list of allowed things on meta
  */
 public function get_allowed_meta()
 {
     $base = new Essential_Grid_Base();
     $transitions_media = $base->get_hover_animations(true);
     //true will get with in/out
     return array(array('name' => array('handle' => 'color', 'text' => __('Font Color', EG_TEXTDOMAIN)), 'type' => 'color', 'default' => '#FFFFFF', 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'font-style', 'text' => __('Font Style', EG_TEXTDOMAIN)), 'type' => 'select', 'default' => 'normal', 'values' => array('normal' => __('Normal', EG_TEXTDOMAIN), 'italic' => __('Italic', EG_TEXTDOMAIN)), 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'text-decoration', 'text' => __('Text Decoration', EG_TEXTDOMAIN)), 'type' => 'select', 'default' => 'none', 'values' => array('none' => __('None', EG_TEXTDOMAIN), 'underline' => __('Underline', EG_TEXTDOMAIN), 'overline' => __('Overline', EG_TEXTDOMAIN), 'line-through' => __('Line Through', EG_TEXTDOMAIN)), 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'text-transform', 'text' => __('Text Transform', EG_TEXTDOMAIN)), 'type' => 'select', 'default' => 'none', 'values' => array('none' => __('None', EG_TEXTDOMAIN), 'capitalize' => __('Capitalize', EG_TEXTDOMAIN), 'uppercase' => __('Uppercase', EG_TEXTDOMAIN), 'lowercase' => __('Lowercase', EG_TEXTDOMAIN)), 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'border-color', 'text' => __('Border Color', EG_TEXTDOMAIN)), 'type' => 'color', 'default' => '#FFFFFF', 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'border-style', 'text' => __('Border Style', EG_TEXTDOMAIN)), 'type' => 'select', 'default' => 'none', 'values' => array('none' => __('None', EG_TEXTDOMAIN), 'solid' => __('solid', EG_TEXTDOMAIN), 'dotted' => __('dotted', EG_TEXTDOMAIN), 'dashed' => __('dashed', EG_TEXTDOMAIN), 'double' => __('double', EG_TEXTDOMAIN)), 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'background', 'text' => __('Background Color', EG_TEXTDOMAIN)), 'type' => 'text', 'default' => 'repeat center center #FFFFFF', 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'box-shadow', 'text' => __('Box Shadow', EG_TEXTDOMAIN)), 'type' => 'text', 'default' => '0px 0px 0px 0px #000000', 'container' => 'style', 'hover' => 'true'), array('name' => array('handle' => 'transition', 'text' => __('Transition', EG_TEXTDOMAIN)), 'type' => 'select', 'default' => 'fade', 'values' => $transitions_media, 'container' => 'anim'), array('name' => array('handle' => 'transition-delay', 'text' => __('Transition Delay', EG_TEXTDOMAIN)), 'type' => 'number', 'default' => '0', 'values' => array('0', '60', '1'), 'container' => 'anim'), array('name' => array('handle' => 'cover-bg-color', 'text' => __('Cover BG Color', EG_TEXTDOMAIN)), 'type' => 'color', 'default' => '#FFFFFF', 'container' => 'layout'), array('name' => array('handle' => 'cover-bg-opacity', 'text' => __('Cover BG Opacity', EG_TEXTDOMAIN)), 'type' => 'number', 'default' => '100', 'container' => 'layout'), array('name' => array('handle' => 'item-bg-color', 'text' => __('Item BG Color', EG_TEXTDOMAIN)), 'type' => 'color', 'default' => '#FFFFFF', 'container' => 'layout'), array('name' => array('handle' => 'content-bg-color', 'text' => __('Content BG Color', EG_TEXTDOMAIN)), 'type' => 'color', 'default' => '#FFFFFF', 'container' => 'layout'));
 }
开发者ID:daanbakker1995,项目名称:vanteun,代码行数:10,代码来源:item-element.class.php

示例2: intval

    $skin = Essential_Grid_Item_Skin::get_essential_item_skin_by_id(intval($isCreate));
    if (!empty($skin)) {
        $title = __('Change Item Skin', EG_TEXTDOMAIN);
        $save = __('Change Item Skin', EG_TEXTDOMAIN);
        $skin_id = intval($isCreate);
    }
}
$elements = $item_elements->getElementsForJavascript();
$style_attributes = $item_elements->get_existing_elements(true);
$all_attributes = $item_elements->get_existing_elements();
$element_type = $item_elements->getElementsForDropdown();
$fonts_full = $fonts->get_all_fonts();
$meta_keys = $meta->get_all_meta_handle();
$meta_link_keys = $meta_link->get_all_link_meta_handle();
$meta_keys = array_merge($meta_keys, $meta_link_keys);
$transitions_cover = $base->get_hover_animations();
$transitions_media = $base->get_media_animations();
if (!isset($skin['params'])) {
    $skin['params'] = array();
}
//fallback if skin does not exist
if (!isset($skin['layers'])) {
    $skin['layers'] = array();
}
//fallback if skin does not exist
?>

<div id="eg-tool-panel">
	<div id="eg-global-css-dialog" class="revpurple eg-side-buttons">
		<i>&lt;/&gt;</i><?php 
_e('CSS Editor', EG_TEXTDOMAIN);
开发者ID:Lumbe,项目名称:dev_servus,代码行数:31,代码来源:grid-item-skin-editor.php

示例3: array

$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-1', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-2', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-3', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-4', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-5', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-6', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-7', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-8', '');
$columns_advanced[] = $base->getVar($grid['params'], 'columns-advanced-rows-9', '');
$nav_skin_choosen = $base->getVar($grid['params'], 'navigation-skin', 'minimal-light');
$navigation_skins = $nav_skin->get_essential_navigation_skins();
$navigation_skin_css = $base->jsonEncodeForClientSide($navigation_skins);
$entry_skins = Essential_Grid_Item_Skin::get_essential_item_skins();
$entry_skin_choosen = $base->getVar($grid['params'], 'entry-skin', '0');
$grid_animations = $base->get_grid_animations();
$hover_animations = $base->get_hover_animations();
$grid_animation_choosen = $base->getVar($grid['params'], 'grid-animation', 'fade');
$hover_animation_choosen = $base->getVar($grid['params'], 'hover-animation', 'fade');
if (intval($isCreate) > 0) {
    //currently editing, so default can be empty
    $media_source_order = $base->getVar($grid['postparams'], 'media-source-order', '');
} else {
    $media_source_order = $base->getVar($grid['postparams'], 'media-source-order', array('featured-image'));
}
$media_source_list = $base->get_media_source_order();
$custom_elements = $base->get_custom_elements_for_javascript();
$all_image_sizes = $base->get_all_image_sizes();
$meta_keys = $meta->get_all_meta_handle();
?>

<!--
开发者ID:kfwebdev,项目名称:wp-atd,代码行数:31,代码来源:grid-create.php


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