Example #1
0
 /**
  * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
  * Works in the same way as Editor Element
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_sub_element($params)
 {
     $template = $this->update_template("title", __("Element", 'avia_framework') . ": {{title}}");
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $params['innerHtml'] = "";
     $params['innerHtml'] .= "<div class='avia_title_container'>";
     $params['innerHtml'] .= "<span " . $this->class_by_arguments('font', $font) . ">";
     $params['innerHtml'] .= "<span data-update_with='icon_fakeArg' class='avia_tab_icon'>" . $display_char . "</span>";
     $params['innerHtml'] .= "</span>";
     $params['innerHtml'] .= "<span {$template} >" . __("Element", 'avia_framework') . ": " . $params['args']['title'] . "</span></div>";
     return $params;
 }
Example #2
0
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args. 
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $inner = "<div class='avia_message_box avia_hidden_bg_box avia_textblock avia_textblock_style'>";
     $inner .= "\t\t<div " . $this->class_by_arguments('color, size, icon_select, border', $params['args']) . ">";
     $inner .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $inner .= "\t\t\t\t<span data-update_with='icon_fakeArg' class='avia_message_box_icon'>{$display_char}</span>";
     $inner .= "\t\t\t</span>";
     $inner .= "\t\t\t<span data-update_with='title' class='avia_message_box_title' >" . $params['args']['title'] . "</span>";
     $inner .= "\t\t\t<span data-update_with='content' class='avia_message_box_content' >" . $params['content'] . "</span>";
     $inner .= "\t\t</div>";
     $inner .= "</div>";
     $params['innerHtml'] = $inner;
     $params['class'] = "";
     return $params;
 }
Example #3
0
 /**
  * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
  * Works in the same way as Editor Element
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_sub_element($params)
 {
     $template = $this->update_template("title", "{{title}}");
     $content = $this->update_template("content", "{{content}}");
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $params['innerHtml'] = "";
     $params['innerHtml'] .= "<div class='avia_title_container'>";
     $params['innerHtml'] .= "\t<span " . $this->class_by_arguments('icon_select', $params['args']) . ">";
     $params['innerHtml'] .= "\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $params['innerHtml'] .= "\t\t\t<span data-update_with='icon_fakeArg' class='avia_tab_icon' >{$display_char}</span>";
     $params['innerHtml'] .= "\t\t</span>";
     $params['innerHtml'] .= "\t</span>";
     $params['innerHtml'] .= "\t<span class='avia_title_container_inner' {$template} >" . $params['args']['title'] . "</span>";
     $params['innerHtml'] .= "</div>";
     $params['innerHtml'] .= "<div class='avia_content_container' {$content}>" . stripcslashes($params['content']) . "</div>";
     return $params;
 }
Example #4
0
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args. 
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $char = "";
     $char .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $char .= "\t\t\t<span data-update_with='icon_fakeArg' class='avia_big_numbers_icon'>" . $display_char . "</span>";
     $char .= "\t\t\t</span>";
     $inner = "<div class='avia_iconbox avia_big_numbers avia_textblock avia_textblock_style avia_center_text'>";
     $inner .= "\t\t<div " . $this->class_by_arguments('icon_select', $params['args']) . ">";
     $inner .= "\t\t\t\t<h2><span class='avia_big_numbers_icon_before'>" . $char . "</span><span data-update_with='number'>" . html_entity_decode($params['args']['number']) . "</span><span class='avia_big_numbers_icon_after'>" . $char . "</span></h2>";
     $inner .= "\t\t\t\t<div class='' data-update_with='content'>" . stripslashes(wpautop(trim(html_entity_decode($params['content'])))) . "</div>";
     $inner .= "\t\t</div>";
     $inner .= "</div>";
     $params['innerHtml'] = $inner;
     $params['class'] = "";
     return $params;
 }
Example #5
0
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $inner = "<div class='avia_iconbox avia_textblock avia_textblock_style'>";
     $inner .= "\t\t<div " . $this->class_by_arguments('position', $params['args']) . ">";
     $inner .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $inner .= "\t\t\t\t<span data-update_with='icon_fakeArg' class='avia_iconbox_icon'>" . $display_char . "</span>";
     $inner .= "\t\t\t</span>";
     $inner .= "\t\t\t<div class='avia_iconbox_content_wrap'>";
     $inner .= "\t\t\t\t<h4  class='avia_iconbox_title' data-update_with='title'>" . html_entity_decode($params['args']['title']) . "</h4>";
     $inner .= "\t\t\t\t<div class='avia_iconbox_content' data-update_with='content'>" . stripslashes(wpautop(trim(html_entity_decode($params['content'])))) . "</div>";
     $inner .= "\t\t\t</div>";
     $inner .= "\t\t</div>";
     $inner .= "</div>";
     $params['innerHtml'] = $inner;
     $params['class'] = "";
     return $params;
 }
Example #6
0
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args. 
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $inner = "<div class='avia_button_box avia_hidden_bg_box avia_textblock avia_textblock_style'>";
     $inner .= "\t\t<div " . $this->class_by_arguments('icon_select, color', $params['args']) . ">";
     $inner .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $inner .= "\t\t\t<span data-update_with='icon_fakeArg' class='avia_button_icon avia_button_icon_left'>" . $display_char . "</span>";
     $inner .= "\t\t\t</span>";
     $inner .= "\t\t\t<span data-update_with='label' class='avia_iconbox_title' >" . $params['args']['label'] . "</span>";
     $inner .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $inner .= "\t\t\t<span data-update_with='icon_fakeArg' class='avia_button_icon avia_button_icon_right'>" . $display_char . "</span>";
     $inner .= "\t\t\t</span>";
     $inner .= "\t\t</div>";
     $inner .= "</div>";
     $params['innerHtml'] = $inner;
     $params['class'] = "";
     return $params;
 }
Example #7
0
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     $params['class'] = "";
     $params['innerHtml'] = "";
     $params['innerHtml'] .= "<div class='avia_textblock avia_textblock_style'>";
     $params['innerHtml'] .= "\t<div " . $this->class_by_arguments('button', $params['args']) . ">";
     $params['innerHtml'] .= "\t\t<div data-update_with='content' class='avia-promocontent'>" . stripslashes(wpautop(trim($params['content']))) . "</div>";
     $params['innerHtml'] .= "\t\t<div class='avia_button_box avia_hidden_bg_box'>";
     $params['innerHtml'] .= "\t\t\t<div " . $this->class_by_arguments('icon_select, color, size', $params['args']) . ">";
     $params['innerHtml'] .= "\t\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $params['innerHtml'] .= "\t\t\t\t\t<span data-update_with='icon_fakeArg' class='avia_button_icon'>" . $display_char . "</span>";
     $params['innerHtml'] .= "\t\t\t\t</span>";
     $params['innerHtml'] .= "\t\t\t\t<span data-update_with='label' class='avia_iconbox_title' >" . $params['args']['label'] . "</span>";
     $params['innerHtml'] .= "\t\t\t</div>";
     $params['innerHtml'] .= "\t\t</div>";
     $params['innerHtml'] .= "\t</div>";
     $params['innerHtml'] .= "</div>";
     return $params;
 }
Example #8
0
 /**
  * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
  * Works in the same way as Editor Element
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_sub_element($params)
 {
     $template = $this->update_template("title", "{{title}}: ");
     $template_percent = $this->update_template("progress", "{{progress}}%");
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     if (empty($params['args']['icon_select'])) {
         $params['args']['icon_select'] = "no";
     }
     $params['innerHtml'] = "";
     $params['innerHtml'] .= "<div class='avia_title_container'>";
     $params['innerHtml'] .= "\t<span " . $this->class_by_arguments('icon_select', $params['args']) . ">";
     $params['innerHtml'] .= "\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $params['innerHtml'] .= "\t\t\t<span data-update_with='icon_fakeArg' class='avia_tab_icon'>" . $display_char . "</span>";
     $params['innerHtml'] .= "\t\t</span>";
     $params['innerHtml'] .= "\t\t<span {$template} >" . $params['args']['title'] . ": </span>";
     $params['innerHtml'] .= "\t\t<span {$template_percent} >" . $params['args']['progress'] . "%</span>";
     $params['innerHtml'] .= "\t</span>";
     $params['innerHtml'] .= "</div>";
     return $params;
 }
 /**
  * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
  * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
  * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
  *
  *
  * @param array $params this array holds the default values for $content and $args.
  * @return $params the return array usually holds an innerHtml key that holds item specific markup.
  */
 function editor_element($params)
 {
     extract(av_backend_icon($params));
     // creates $font and $display_char if the icon was passed as param "icon" and the font as "font"
     extract(shortcode_atts(array('color' => '', 'size' => '', 'style' => '', 'caption' => '', 'use_link' => 'no', 'position' => 'left', 'link' => '', 'linktarget' => 'no', 'custom_class' => ''), $params['args'], $this->config['shortcode']));
     $inner = "<div class='avia_icon_element avia_textblock avia_textblock_style'>";
     $inner .= "\t\t<div " . $this->class_by_arguments('position', $params['args']) . ">";
     $inner .= "\t\t<div " . $this->class_by_arguments('style', $params['args']) . ">";
     $inner .= "\t\t\t<span " . $this->class_by_arguments('font', $font) . ">";
     $inner .= "\t\t\t\t<span data-update_with='icon_fakeArg' class='avia_icon_char'>" . $display_char . "</span>";
     $inner .= "\t\t\t</span>";
     $inner .= "\t\t\t<div class='avia_icon_content_wrap'>";
     $inner .= "\t\t\t\t<h4  class='av_icon_caption' data-update_with='caption'>" . html_entity_decode($caption) . "</h4>";
     $inner .= "\t\t\t</div>";
     $inner .= "\t\t</div>";
     $inner .= "\t\t</div>";
     $inner .= "</div>";
     $params['innerHtml'] = $inner;
     $params['class'] = "";
     return $params;
 }