コード例 #1
0
ファイル: shortcodes.php プロジェクト: jabue/wordpress
 */

/**
 * Return the list of shortcodes and their settings
 *
 * @package Yithemes
 * @author  Francesco Licandro  <*****@*****.**>
 * @since   1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
} // Exit if accessed directly


$config          = YIT_Plugin_Common::load();
$awesome_icons   = YIT_Plugin_Common::get_awesome_icons();
$simple_line_icons   = yit_get_simple_line_icons();
$animate         = $config['animate'];

$shop_shortcodes = array ();

$theme_shortcodes = array(

    /* === BOX SECTION === */
    'box_section' => array(
        'title' => __('Icon box', 'yit' ),
        'description' =>  __('Shows a box, with Title and icons on left and a text of section (you can use HTML tags)', 'yit' ),
        'tab' => 'shortcodes',
        'in_visual_composer' => true,
        'has_content' => true,
コード例 #2
0
ファイル: functions.php プロジェクト: lieison/IndustriasFenix
 function yit_get_animate_effects()
 {
     $config = YIT_Plugin_Common::load();
     return $config['animate'];
 }
コード例 #3
0
 /**
  * Shortcode list for services
  *
  * Return shortcode list for services
  *
  * @return array()
  * @since 1.0.0
  * @author Antonio La Rocca <*****@*****.**>
  */
 public function service_shortcode_list()
 {
     $assets = YIT_Plugin_Common::load();
     $animate = $assets['animate'];
     return array('services' => array('title' => __('Services', 'yit'), 'description' => __('Print a services type.', 'yit'), 'tab' => 'section', 'create' => false, 'in_visual_composer' => true, 'has_content' => false, 'attributes' => array('title' => array('title' => __('Title', 'yit'), 'type' => 'text', 'std' => ''), 'description' => array('title' => __('Description', 'yit'), 'type' => 'text', 'std' => ''), 'items' => array('title' => __('Select services', 'yit'), 'type' => 'select', 'multiple' => true, 'options' => $this->yit_get_services(), 'std' => serialize(array())), 'show_excerpt' => array('title' => __('Show excerpt', 'yit'), 'type' => 'checkbox', 'std' => 'yes'), 'excerpt_length' => array('title' => __('Limit words', 'yit'), 'type' => 'number', 'std' => 10), 'show_title' => array('title' => 'Show title', 'type' => 'checkbox', 'std' => 'yes'), 'show_border' => array('title' => __('Show border animation', 'yit'), 'type' => 'checkbox', 'std' => 'yes'), 'items_per_row' => array('title' => __('Items per row', 'yit'), 'type' => 'select', 'options' => array('2' => __('2 items', 'yit'), '3' => __('3 items', 'yit'), '4' => __('4 items', 'yit'), '6' => __('6 items', 'yit')), 'std' => '4'), 'show_services_button' => array('title' => __('Show button', 'yit'), 'type' => 'checkbox', 'std' => 'yes'), 'services_button_text' => array('title' => __('Button text', 'yit'), 'type' => 'text', 'std' => __('Read More', 'yit')), 'services_icon_title' => array('title' => __('Title icon url', 'yit'), 'type' => 'text', 'std' => ''), 'animate' => array('title' => __('Animation', 'yit'), 'type' => 'select', 'options' => $animate, 'std' => ''), 'animation_delay' => array('title' => __('Animation Delay', 'yit'), 'type' => 'text', 'desc' => __('This value determines the delay to which the animation starts once it\'s visible on the screen.', 'yit'), 'std' => '0'))));
 }