Jump to content

Archived

This topic is now archived and is closed to further replies.

gnuser

Why in the component iBox animation by default?

Recommended Posts

gnuser
Hi!
 
Why in the iBox animation by default? Or am I just could not find where to disable the animation? To get the menu animation, I had to edit section.php.
 
Sorry for my bad English.

Share this post


Link to post
Share on other sites
Danny

Hi,

 

I apologise but I don't quite understand what you're saying ?

Do you mean that there is animation by default and you want it to be disabled by default ?

 

As far as I am aware, there isn't any animation by default, you have to select the animation.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
gnuser

In iBox is animation by default. And you can not turn off the animation. To change the view animation and disable it, I've added a menu. See the attached picture.

Share this post


Link to post
Share on other sites
Rob

I believe it is set there to demonstrate it, but when you create new iBoxes, and set the animation to No Animation, there should be only static images.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
gnuser
I'm having to explain to you. My English is very bad. Google translator also did not help.
 
Yes, it is default set there to demonstrate it, but the option to disable the animation is not provided. So I'll add a menu in DMS. Go to settings iBox - iBox > "Edit"> "Section options"> column "iBox Configuration". There's no menu "Viewport Animation" which can be seen on the my attached picture.
 
I edited file /dms/sections/ibox/section.php
I added a few lines of code:
 
function section_opts(){


$options = array();


$options[] = array(


'title' => __( 'iBox Configuration', 'pagelines' ),
'type' => 'multi',
'opts' => array(
array(
'key' => 'ibox_count',
'type'  => 'count_select',
'count_start' => 1,
'count_number' => 12,
'default' => 4,
'label'  => __( 'Number of iBoxes to Configure', 'pagelines' ),
),
array(
'key' => 'ibox_cols',
'type'  => 'count_select',
'count_start' => 1,
'count_number' => 12,
'default' => '3',
'label'  => __( 'Number of Columns for Each Box (12 Col Grid)', 'pagelines' ),
),
array(
'key' => 'ibox_media',
'type'  => 'select',
'opts' => array(
'icon'   => array( 'name' => __( 'Icon Font', 'pagelines' ) ),
'image' => array( 'name' => __( 'Images', 'pagelines' ) ),
'text' => array( 'name' => __( 'Text Only, No Media', 'pagelines' ) )
),
'default' => 'icon',
'label'  => __( 'Select iBox Media Type', 'pagelines' ),
),
array(
'key' => 'ibox_format',
'type'  => 'select',
'opts' => array(
'top' => array( 'name' => __( 'Media on Top', 'pagelines' ) ),
'left'   => array( 'name' => __( 'Media at Left', 'pagelines' ) ),
),
'default' => 'top',
'label'  => __( 'Select the iBox Media Location', 'pagelines' ),
),
array(
'type'  => 'select_animation',
'key' => 'textbox_animation',
'label'  => __( 'Viewport Animation', 'pagelines' ),
'help'  => __( 'Optionally animate the appearance of this section on view.', 'pagelines' ),
),
 
And I changed here:
 
   function section_template( ) {


$class = $this->opt('textbox_animation');
$boxes = ($this->opt('ibox_count')) ? $this->opt('ibox_count') : $this->default_limit;
$cols = ($this->opt('ibox_cols')) ? $this->opt('ibox_cols') : 3;
 
And here:
 
$output .= sprintf(
'<div class="span%s ibox %s fix">
<div class="ibox-media img">
<span class="ibox-icon-border %s pl-animation pl-contrast %s" style="%s" %s>
%s
</span>
</div>
<div class="ibox-text bd">
%s
<div class="ibox-desc">
%s
%s
</div>
</div>
</div>',
$cols,
$format_class,
$class,
$media_class,
$media_bg,
$media_link,
$media_html,
$title,
$text,
$text_link
);

 

Now there is a menu "Viewport Animation".

Share this post


Link to post
Share on other sites

×