Plugin Directory

Changeset 1480072


Ignore:
Timestamp:
08/21/2016 05:02:38 PM (10 years ago)
Author:
plutonwp
Message:

new version

Location:
pluton-social-sharing
Files:
19 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • pluton-social-sharing/trunk/assets/css/style.css

    r1458480 r1480072  
    1 .woocommerce div.product .entry-share {
    2     display: block;
    3     margin-top: 70px;
    4     text-align: center;
    5     border-top: 1px solid #e9e9e9;
    6     border-bottom: 1px solid #e9e9e9;
     1/**
     2 * Social Share
     3 */
     4.entry-share .theme-heading {
     5    line-height: 40px;
     6    float: left;
     7    margin: 0;
    78}
    8 .woocommerce div.product .entry-share ul {
    9     float: none;
     9.entry-share .theme-heading .text:before,
     10.entry-share .theme-heading .text:after {
     11    display: none !important;
    1012}
    11 .woocommerce div.product .entry-share ul li {
    12     display: inline-block;
    13     float: none;
    14     width: 24%;
    15     padding: 20px 30px;
    16     border-style: solid;
    17     border-color: #e9e9e9;
    18     border-right-width: 1px;
     13
     14.entry-share ul {
     15    float: right;
     16    margin: 0;
     17    padding: 0;
     18    list-style: none;
    1919}
    20 .woocommerce div.product .entry-share ul li:last-child {
    21     border-right: 0;
     20.entry-share ul li {
     21    float: left;
    2222}
    23 .woocommerce div.product .entry-share ul li a {
    24     font-size: 13px;
    25     line-height: 1.5;
    26     display: block;
    27     width: auto;
    28     height: auto;
    29     margin: 0 !important;
    30     border: 0;
    31     border-radius: 0;
    32 }
    33 .woocommerce div.product .entry-share ul li a .fa {
    34     font-size: 16px;
     23.entry-share ul li a {
     24    font-size: 14px;
    3525    line-height: 40px;
     26    position: relative;
    3627    display: inline-block;
    3728    width: 40px;
    3829    height: 40px;
    39     -webkit-transition: all .3s ease;
    40     transition: all .3s ease;
    41     vertical-align: middle;
    42     color: #fff;
     30    margin-right: 12px;
     31    text-align: center;
     32    color: #bbb;
     33    border: 1px solid #e9e9e9;
    4334    border-radius: 50%;
    44     background-color: #333;
    4535}
    46 .woocommerce div.product .entry-share ul li a .product-share-text {
    47     display: inline-block;
    48     width: -webkit-calc(100% - 50px);
    49     width: calc(100% - 50px);
    50     padding: 0 0 0 10px;
    51     vertical-align: middle;
     36.entry-share ul li:last-child a {
     37    margin-right: 0;
    5238}
    53 .woocommerce div.product .entry-share ul li.twitter a:hover {
     39.entry-share ul li.twitter a:hover {
    5440    color: #00aced;
     41    border-color: #00aced;
    5542}
    56 .woocommerce div.product .entry-share ul li.twitter a:hover .fa {
    57     background-color: #00aced;
     43.entry-share ul li.facebook a:hover {
     44    color: #3b5998;
     45    border-color: #3b5998;
    5846}
    59 .woocommerce div.product .entry-share ul li.facebook a:hover {
    60     color: #3b5998;
     47.entry-share ul li.googleplus a:hover {
     48    color: #dd4b39;
     49    border-color: #dd4b39;
    6150}
    62 .woocommerce div.product .entry-share ul li.facebook a:hover .fa {
    63     background-color: #3b5998;
     51.entry-share ul li.linkedin a:hover {
     52    color: #39c;
     53    border-color: #39c;
    6454}
    65 .woocommerce div.product .entry-share ul li.pinterest a:hover {
     55.entry-share ul li.pinterest a:hover {
    6656    color: #cb2027;
    67 }
    68 .woocommerce div.product .entry-share ul li.pinterest a:hover .fa {
    69     background-color: #cb2027;
    70 }
    71 .woocommerce div.product .entry-share ul li.email a:hover {
    72     color: #3fc387;
    73 }
    74 .woocommerce div.product .entry-share ul li.email a:hover .fa {
    75     background-color: #3fc387;
     57    border-color: #cb2027;
    7658}
    7759
    78 .content-full-width.woocommerce div.product .entry-share ul li a .product-share-text,
    79 .content-full-screen.woocommerce div.product .entry-share ul li a .product-share-text {
    80     width: -webkit-calc(80% - 50px);
    81     width: calc(80% - 50px);
     60.single-post .entry-share {
     61    margin-top: 30px;
     62    padding-top: 30px;
     63    border-top: 1px solid #f1f1f1;
    8264}
    8365
    8466/*------------------------------------*
    85     Responsive
     67    Phone Landscape
    8668*------------------------------------*/
    87 @media only screen and (max-width: 1280px) {
    88     .woocommerce div.product .entry-share ul li {
    89         padding: 20px 12px;
     69@media only screen and (max-width: 480px) {
     70    .entry-share .theme-heading {
     71        line-height: 1;
     72        float: none;
     73        margin: 0 0 20px;
     74        text-align: center;
    9075    }
    91     .woocommerce div.product .entry-share ul li a .fa {
    92         display: block;
    93         margin: 0 auto 12px auto;
     76    .entry-share ul {
     77        float: none;
     78        text-align: center;
    9479    }
    95     .woocommerce div.product .entry-share ul li a .product-share-text {
    96         display: block;
    97         width: auto;
    98         padding: 0;
     80    .entry-share ul li {
     81        display: inline-block;
     82        float: none;
    9983    }
    10084}
    101 
    102 /*------------------------------------*
    103     Phone Portrait and Landscape
    104 *------------------------------------*/
    105 @media only screen and (max-width: 767px) {
    106     .woocommerce div.product .entry-share ul li {
    107         width: 100%;
    108         padding: 20px 0;
    109         border-right-width: 0;
    110         border-bottom-width: 1px;
    111         border-left-width: 0;
    112     }
    113     .woocommerce div.product .entry-share ul li:last-child {
    114         border-bottom-width: 0;
    115     }
    116     .woocommerce div.product .entry-share ul li a {
    117         display: inline-block;
    118     }
    119 }
  • pluton-social-sharing/trunk/assets/css/style.min.css

    r1458480 r1480072  
    1 .entry-share .theme-heading{float:left;margin:0;line-height:40px}.entry-share .theme-heading .text:before,.entry-share .theme-heading .text:after{display:none !important}.entry-share ul{float:right;margin:0;padding:0;list-style:none}.entry-share ul li{float:left}.entry-share ul li a{display:inline-block;position:relative;color:#bbb;border:1px solid #e9e9e9;width:40px;height:40px;line-height:40px;font-size:14px;margin-right:12px;text-align:center;border-radius:50%}.entry-share ul li:last-child a{margin-right:0}.entry-share ul li.twitter a:hover{color:#00aced;border-color:#00aced}.entry-share ul li.facebook a:hover{color:#3b5998;border-color:#3b5998}.entry-share ul li.googleplus a:hover{color:#dd4b39;border-color:#dd4b39}.entry-share ul li.linkedin a:hover{color:#3399CC;border-color:#3399CC}.entry-share ul li.pinterest a:hover{color:#cb2027;border-color:#cb2027}.single-post .entry-share{margin-top:30px;padding-top:30px;border-top:1px solid #f1f1f1}
     1.entry-share .theme-heading{float:left;margin:0;line-height:40px}.entry-share .theme-heading .text:before,.entry-share .theme-heading .text:after{display:none !important}.entry-share ul{float:right;margin:0;padding:0;list-style:none}.entry-share ul li{float:left}.entry-share ul li a{display:inline-block;position:relative;color:#bbb;border:1px solid #e9e9e9;width:40px;height:40px;line-height:40px;font-size:14px;margin-right:12px;text-align:center;border-radius:50%}.entry-share ul li:last-child a{margin-right:0}.entry-share ul li.twitter a:hover{color:#00aced;border-color:#00aced}.entry-share ul li.facebook a:hover{color:#3b5998;border-color:#3b5998}.entry-share ul li.googleplus a:hover{color:#dd4b39;border-color:#dd4b39}.entry-share ul li.linkedin a:hover{color:#3399CC;border-color:#3399CC}.entry-share ul li.pinterest a:hover{color:#cb2027;border-color:#cb2027}.single-post .entry-share{margin-top:30px;padding-top:30px;border-top:1px solid #f1f1f1}@media only screen and (max-width: 480px){.entry-share .theme-heading{float:none;margin:0 0 20px;line-height:1;text-align:center}.entry-share ul{float:none;text-align:center}.entry-share ul li{float:none;display:inline-block}}
  • pluton-social-sharing/trunk/assets/css/style.scss

    r1458480 r1480072  
    7474    border-top: 1px solid #f1f1f1;
    7575}
     76
     77/*------------------------------------*
     78    Phone Landscape
     79*------------------------------------*/
     80@media only screen and (max-width: 480px) {
     81    .entry-share .theme-heading { float: none; margin: 0 0 20px; line-height: 1; text-align: center; }
     82    .entry-share ul { float: none; text-align: center; }
     83    .entry-share ul li { float: none; display: inline-block; }
     84}
  • pluton-social-sharing/trunk/pluton-social-sharing.php

    r1466323 r1480072  
    44 * Plugin URI:          https://plutonwp.com/extension/pluton-social-sharing/
    55 * Description:         A simple plugin to add social share buttons to your posts.
    6  * Version:             1.0.0
     6 * Version:             1.0.1
    77 * Author:              PlutonWP
    88 * Author URI:          https://plutonwp.com/
     
    8787        $this->plugin_url       = plugin_dir_url( __FILE__ );
    8888        $this->plugin_path      = plugin_dir_path( __FILE__ );
    89         $this->version          = '1.0.0';
     89        $this->version          = '1.0.1';
    9090
    9191        define( 'PSS_ROOT', dirname( __FILE__ ) );
     
    205205
    206206        /**
    207          * Custom control
    208          */
    209         require_once dirname( __FILE__ ) . '/includes/customizer-control.php';
    210 
    211         /**
    212207         * Add a new section
    213208         */
     
    224219        ) );
    225220
    226          if ( class_exists( 'PSS_Customize_Control_Sorter' ) ) {
    227             $wp_customize->add_control( new PSS_Customize_Control_Sorter( $wp_customize, 'pss_social_share_sites', array(
    228                 'label'         => esc_html__( 'Sites', 'pluton-social-sharing' ),
    229                 'description'   => esc_html__( 'Click and drag and drop elements to re-order them.', 'pluton-social-sharing' ),
    230                 'section'       => 'pss_section',
    231                 'settings'      => 'pss_social_share_sites',
    232                 'type'          => 'pss-sortable',
    233                 'choices' => array(
    234                     'twitter'       => 'Twitter',
    235                     'facebook'      => 'Facebook',
    236                     'google_plus'   => 'Google Plus',
    237                     'pinterest'     => 'Pinterest',
    238                     'linkedin'      => 'LinkedIn',
    239                 ),
    240                 'priority'  => 5,
    241             ) ) );
    242         }
     221        $wp_customize->add_control( new Pluton_Customize_Control_Sorter( $wp_customize, 'pss_social_share_sites', array(
     222            'label'         => esc_html__( 'Sites', 'pluton-social-sharing' ),
     223            'description'   => esc_html__( 'Click and drag and drop elements to re-order them.', 'pluton-social-sharing' ),
     224            'section'       => 'pss_section',
     225            'settings'      => 'pss_social_share_sites',
     226            'choices' => array(
     227                'twitter'       => 'Twitter',
     228                'facebook'      => 'Facebook',
     229                'google_plus'   => 'Google Plus',
     230                'pinterest'     => 'Pinterest',
     231                'linkedin'      => 'LinkedIn',
     232            ),
     233            'priority'  => 5,
     234        ) ) );
    243235
    244236        /**
     
    278270        $wp_customize->add_setting( 'pss_sharing_borders_color', array(
    279271            'default'           => '#e9e9e9',
    280             'sanitize_callback' => 'sanitize_hex_color',
    281272            'transport'         => 'postMessage',
    282273        ) );
    283274
    284         $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'pss_sharing_borders_color', array(
     275        $wp_customize->add_control( new Pluton_Customizer_Color_Control( $wp_customize, 'pss_sharing_borders_color', array(
    285276            'label'         => esc_html__( 'Links Borders Color', 'pluton-social-sharing' ),
    286277            'section'       => 'pss_section',
    287278            'settings'      => 'pss_sharing_borders_color',
    288             'type'          => 'color',
    289279            'priority'      => 5,
    290280        ) ) );
     
    295285        $wp_customize->add_setting( 'pss_sharing_icons_bg', array(
    296286            'default'           => '#ffffff',
    297             'sanitize_callback' => 'sanitize_hex_color',
    298287            'transport'         => 'postMessage',
    299288        ) );
    300289
    301         $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'pss_sharing_icons_bg', array(
     290        $wp_customize->add_control( new Pluton_Customizer_Color_Control( $wp_customize, 'pss_sharing_icons_bg', array(
    302291            'label'         => esc_html__( 'Icons Background Color', 'pluton-social-sharing' ),
    303292            'section'       => 'pss_section',
    304293            'settings'      => 'pss_sharing_icons_bg',
    305             'type'          => 'color',
    306294            'priority'      => 5,
    307295        ) ) );
     
    312300        $wp_customize->add_setting( 'pss_sharing_icons_color', array(
    313301            'default'           => '#bbbbbb',
    314             'sanitize_callback' => 'sanitize_hex_color',
    315302            'transport'         => 'postMessage',
    316303        ) );
    317304
    318         $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'pss_sharing_icons_color', array(
     305        $wp_customize->add_control( new Pluton_Customizer_Color_Control( $wp_customize, 'pss_sharing_icons_color', array(
    319306            'label'         => esc_html__( 'Icons Color', 'pluton-social-sharing' ),
    320307            'section'       => 'pss_section',
    321308            'settings'      => 'pss_sharing_icons_color',
    322             'type'          => 'color',
    323309            'priority'      => 5,
    324310        ) ) );
  • pluton-social-sharing/trunk/readme.txt

    r1466323 r1480072  
    44Requires at least: 4.0.0
    55Tested up to: 4.6
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434= 1.0.1 =
    35 Small change.
     35Customizer options improved.
    3636
    3737= 1.0.0 =
Note: See TracChangeset for help on using the changeset viewer.