WordPress.org

Ready to get started?Download WordPress

Forums

Post UI Tabs
Enable/Disable fading (2 posts)

  1. choeft
    Member
    Posted 1 year ago #

    Hi there,

    first of all - thank you for this plugin, works great!

    I wanted to put an option that makes it possible to enable/disable the fading when switching between the tabs, so I modified the plugin. Here's what I did:

    put.php, in line 115:

    'enable_fx'    => array(
    				'type'        => 'checkbox',
    				'name'        => __( 'Enable fading', $this->textdom ),
    				'desc'        => __( 'Turn FX on/off', $this->textdom ),
    				'label'       => __( 'Enable fading from one tab to another.', $this->textdom )
    			),

    put.php, in line 204:

    if( $this->get_plugin_option( 'enable_fx' ) ) {
    			$tab_settings['enable_fx'] = 1;
    		}

    post-ui-tabs.js, from line 7 (replace for-loop!):

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    You will then find an option in the Post-Ui-Settings, enabling you to switch the fading on (it is off by default). Maybe this helps someone - would be great if you could include such an option in one of your next releases :)

    Regards,
    Constantin

    http://wordpress.org/extend/plugins/put/

  2. choeft
    Member
    Posted 1 year ago #

    Find the moderated code for post-ui-tabs.js here:

    http://pastebin.com/mniEZJeF

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic