Plugin Directory

Changeset 1466325


Ignore:
Timestamp:
08/02/2016 04:48:42 PM (10 years ago)
Author:
plutonwp
Message:

update

Location:
pluton-panel
Files:
52 added
5 edited

Legend:

Unmodified
Added
Removed
  • pluton-panel/trunk/includes/metabox/assets/pluton-metabox.js

    r1443798 r1466325  
    8484        } );
    8585
     86        // Show hide Full Screen options
     87        var full_screenField = $( 'div#pluton-metabox select#pluton_header_style' ),
     88            full_screenFieldDependents = $( '#pluton_full_screen_header_logo_tr, #pluton_full_screen_header_logo_height_tr');
     89        if ( full_screenField.val() === 'full_screen' ) {
     90            full_screenFieldDependents.show();
     91        } else {
     92            full_screenFieldDependents.hide();
     93        }
     94        full_screenField.change(function () {
     95            if ( $(this).val() === 'full_screen' ) {
     96                full_screenFieldDependents.show();
     97            } else {
     98                full_screenFieldDependents.hide();
     99            }
     100        } );
     101
    86102        // Show hide title options
    87103        var titleField          = $( 'div#pluton-metabox select#pluton_disable_title' ),
  • pluton-panel/trunk/includes/metabox/metabox.php

    r1457850 r1466325  
    520520                    'description' => esc_html__( 'Select the style of the header on this page or post.', 'pluton-panel' ),
    521521                    'options' => array(
    522                         '' => esc_html__( 'Default', 'pluton-panel' ),
    523                         'minimal' => esc_html__( 'Minimal', 'pluton-panel' ),
    524                         'transparent' => esc_html__( 'Transparent', 'pluton-panel' ),
     522                        ''              => esc_html__( 'Default', 'pluton-panel' ),
     523                        'minimal'       => esc_html__( 'Minimal', 'pluton-panel' ),
     524                        'transparent'   => esc_html__( 'Transparent', 'pluton-panel' ),
     525                        'reveal'        => esc_html__( 'Reveal', 'pluton-panel' ),
     526                        'full_screen'   => esc_html__( 'Full Screen', 'pluton-panel' ),
    525527                    ),
    526528                    'default' => '',
     
    553555                    'title' => esc_html__( 'Transparent Header Retina Logo Height', 'pluton-panel'),
    554556                    'id' => $prefix . 'transparent_header_logo_retina_height',
    555                     'description' => esc_html__( 'Enter a size in px.', 'pluton-panel' ),
     557                    'description' => esc_html__( 'Enter a size.', 'pluton-panel' ),
     558                    'type' => 'number',
     559                ),
     560                'full_screen_header_logo' => array(
     561                    'title' => esc_html__( 'Full Screen Header Logo', 'pluton-panel'),
     562                    'id' => $prefix . 'full_screen_header_logo',
     563                    'type' => 'media',
     564                    'description' => esc_html__( 'Select a custom logo (optional) when the menu is opened.', 'pluton-panel' ),
     565                ),
     566                'full_screen_header_logo_height' => array(
     567                    'title' => esc_html__( 'Full Screen Header Logo Height', 'pluton-panel'),
     568                    'id' => $prefix . 'full_screen_header_logo_height',
     569                    'description' => esc_html__( 'Enter a size.', 'pluton-panel' ),
    556570                    'type' => 'number',
    557571                ),
     
    723737                    'rows'          => '2',
    724738                ),
     739                'quote_format_link' => array(
     740                    'title'         => esc_html__( 'Quote Link', 'pluton-panel' ),
     741                    'type'          => 'select',
     742                    'id'            => $prefix . 'quote_format_link',
     743                    'description'   => esc_html__( 'Choose your quote link. This setting is used for your quote post formats.', 'pluton-panel' ),
     744                    'options' => array(
     745                        'post'      => esc_html__( 'Post', 'pluton-panel' ),
     746                        'none'      => esc_html__( 'None', 'pluton-panel' ),
     747                    ),
     748                ),
    725749            ),
    726750        );
     
    755779
    756780        <script type="text/javascript">
    757             !function(t){"use strict";t(document).on("ready",function(){t("div#pluton-metabox ul.wp-tab-bar a").click(function(){var o=t("#pluton-metabox ul.wp-tab-bar li"),e=t(this).data("tab"),n=t("#pluton-metabox div.wp-tab-panel");return t(o).removeClass("wp-tab-active"),t(n).hide(),t(e).show(),t(this).parent("li").addClass("wp-tab-active"),!1}),t("div#pluton-metabox .pluton-mb-color-field").wpColorPicker();var o=!0,e=wp.media.editor.send.attachment;t("div#pluton-metabox .pluton-mb-uploader").click(function(n){var a=(wp.media.editor.send.attachment,t(this)),l=a.prev();return wp.media.editor.send.attachment=function(n,a){return o?void t(l).val(a.id):e.apply(this,[n,a])},wp.media.editor.open(a),!1}),t("div#pluton-metabox .add_media").on("click",function(){o=!1}),t("div#pluton-metabox div.pluton-mb-reset a.pluton-reset-btn").click(function(){var o=t("div.pluton-mb-reset div.pluton-reset-checkbox"),e=confirm.is(":visible")?"<?php esc_html_e(  'Reset Settings', 'pluton-panel' ); ?>":"<?php esc_html_e(  'Cancel Reset', 'pluton-panel' ); ?>";t(this).text(e),t("div.pluton-mb-reset div.pluton-reset-checkbox input").attr("checked",!1),o.toggle()});var n=t("div#pluton-metabox select#pluton_post_layout"),a=t("#pluton_post_custom_width_tr");"full-width"===n.val()?a.show():a.hide(),n.change(function(){"full-width"===t(this).val()?a.show():a.hide()});var l=t("div#pluton-metabox select#pluton_header_style"),i=t("#pluton_transparent_header_color_tr, #pluton_transparent_header_logo_tr,#pluton_transparent_header_logo_retina_tr,#pluton_transparent_header_logo_retina_height_tr");"transparent"===l.val()?i.show():i.hide(),l.change(function(){"transparent"===t(this).val()?i.show():i.hide()});var r=t("div#pluton-metabox select#pluton_disable_title"),p=t("#pluton_disable_header_margin_tr, #pluton_post_subheading_tr,#pluton_post_title_style_tr"),s=t("div#pluton-metabox select#pluton_post_title_style"),_=s.val(),u=t("#pluton_post_title_background_color_tr, #pluton_post_title_background_tr,#pluton_post_title_height_tr,#pluton_post_title_background_overlay_tr,#pluton_post_title_background_overlay_opacity_tr"),d=t("#pluton_post_title_background_color_tr");"on"===r.val()?(p.hide(),u.hide()):p.show(),"background-image"===_?u.show():"solid-color"===_&&d.show(),r.change(function(){if("on"===t(this).val())p.hide(),u.hide();else{p.show();var o=s.val();"background-image"===o?u.show():"solid-color"===o&&d.show()}}),s.change(function(){u.hide(),"background-image"==t(this).val()?u.show():"solid-color"===t(this).val()&&d.show()})})}(jQuery);
     781            !function(t){"use strict";t(document).on("ready",function(){t("div#pluton-metabox ul.wp-tab-bar a").click(function(){var e=t("#pluton-metabox ul.wp-tab-bar li"),o=t(this).data("tab"),l=t("#pluton-metabox div.wp-tab-panel");return t(e).removeClass("wp-tab-active"),t(l).hide(),t(o).show(),t(this).parent("li").addClass("wp-tab-active"),!1}),t("div#pluton-metabox .pluton-mb-color-field").wpColorPicker();var e=!0,o=wp.media.editor.send.attachment;t("div#pluton-metabox .pluton-mb-uploader").click(function(l){var n=(wp.media.editor.send.attachment,t(this)),a=n.prev();return wp.media.editor.send.attachment=function(l,n){return e?void t(a).val(n.id):o.apply(this,[l,n])},wp.media.editor.open(n),!1}),t("div#pluton-metabox .add_media").on("click",function(){e=!1}),t("div#pluton-metabox div.pluton-mb-reset a.pluton-reset-btn").click(function(){var e=t("div.pluton-mb-reset div.pluton-reset-checkbox"),o=confirm.is(":visible")?"<?php esc_html_e(  'Reset Settings', 'pluton' ); ?>":"<?php esc_html_e(  'Cancel Reset', 'pluton' ); ?>";t(this).text(o),t("div.pluton-mb-reset div.pluton-reset-checkbox input").attr("checked",!1),e.toggle()});var l=t("div#pluton-metabox select#pluton_post_layout"),n=t("#pluton_post_custom_width_tr");"full-width"===l.val()?n.show():n.hide(),l.change(function(){"full-width"===t(this).val()?n.show():n.hide()});var a=t("div#pluton-metabox select#pluton_header_style"),i=t("#pluton_transparent_header_color_tr, #pluton_transparent_header_logo_tr,#pluton_transparent_header_logo_retina_tr,#pluton_transparent_header_logo_retina_height_tr");"transparent"===a.val()?i.show():i.hide(),a.change(function(){"transparent"===t(this).val()?i.show():i.hide()});var r=t("div#pluton-metabox select#pluton_header_style"),_=t("#pluton_full_screen_header_logo_tr, #pluton_full_screen_header_logo_height_tr");"full_screen"===r.val()?_.show():_.hide(),r.change(function(){"full_screen"===t(this).val()?_.show():_.hide()});var s=t("div#pluton-metabox select#pluton_disable_title"),p=t("#pluton_disable_header_margin_tr, #pluton_post_subheading_tr,#pluton_post_title_style_tr"),u=t("div#pluton-metabox select#pluton_post_title_style"),d=u.val(),h=t("#pluton_post_title_background_color_tr, #pluton_post_title_background_tr,#pluton_post_title_height_tr,#pluton_post_title_background_overlay_tr,#pluton_post_title_background_overlay_opacity_tr"),c=t("#pluton_post_title_background_color_tr");"on"===s.val()?(p.hide(),h.hide()):p.show(),"background-image"===d?h.show():"solid-color"===d&&c.show(),s.change(function(){if("on"===t(this).val())p.hide(),h.hide();else{p.show();var e=u.val();"background-image"===e?h.show():"solid-color"===e&&c.show()}}),u.change(function(){h.hide(),"background-image"==t(this).val()?h.show():"solid-color"===t(this).val()&&c.show()})})}(jQuery);
    758782        </script>
    759783
  • pluton-panel/trunk/includes/panel/typography.php

    r1457850 r1466325  
    8282                'menu' => array(
    8383                    'label' => esc_html__( 'Main Menu', 'pluton-panel' ),
    84                     'target' => '#site-navigation-wrap .dropdown-menu > li > a,#pluton-mobile-menu-icon a',
     84                    'target' => '#site-navigation-wrap .dropdown-menu > li > a,#site-header.full-screen-header .fs-dropdown-menu > li > a,#pluton-mobile-menu-icon a',
    8585                    'exclude' => array( 'font-color', 'line-height' ),
    8686                ),
    8787                'menu_dropdown' => array(
    8888                    'label' => esc_html__( 'Main Menu: Dropdowns', 'pluton-panel' ),
    89                     'target' => '.dropdown-menu ul li a.menu-link',
     89                    'target' => '.dropdown-menu ul li a.menu-link,#site-header.full-screen-header .fs-dropdown-menu ul.sub-menu li a',
    9090                    'exclude' => array( 'font-color' ),
    9191                ),
  • pluton-panel/trunk/pluton-panel.php

    r1457850 r1466325  
    44 * Plugin URI:          https://plutonwp.com/extension/pluton-panel/
    55 * Description:         Add meta boxes for your posts, pages, posts types and Theme Panel to extend the functionality of the theme.
    6  * Version:             1.0.4
     6 * Version:             1.0.5
    77 * Author:              PlutonWP
    88 * Author URI:          https://plutonwp.com/
    99 * Requires at least:   4.0.0
    10  * Tested up to:        4.5.3
     10 * Tested up to:        4.6
    1111 *
    1212 * Text Domain: pluton-panel
     
    8787        $this->plugin_url       = plugin_dir_url( __FILE__ );
    8888        $this->plugin_path      = plugin_dir_path( __FILE__ );
    89         $this->version          = '1.0.4';
     89        $this->version          = '1.0.5';
    9090
    9191        define( 'PP_ROOT', dirname( __FILE__ ) );
  • pluton-panel/trunk/readme.txt

    r1457850 r1466325  
    33Tags: panel, theme panel, meta boxes, meta box, metaboxes, metabox, pluton
    44Requires at least: 3.5
    5 Tested up to: 4.5.3
    6 Stable tag: 1.0.4
     5Tested up to: 4.6
     6Stable tag: 1.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     36= 1.0.5 =
     37Quote Link option added in the metabox.
     38
    3639= 1.0.4 =
    3740Image Sizes & Customizer Manager tabs added.
Note: See TracChangeset for help on using the changeset viewer.