Changeset 1480072
- Timestamp:
- 08/21/2016 05:02:38 PM (10 years ago)
- Location:
- pluton-social-sharing
- Files:
-
- 19 added
- 1 deleted
- 5 edited
-
Desktop.ini (deleted)
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/css (added)
-
tags/1.0.1/assets/css/rtl.css (added)
-
tags/1.0.1/assets/css/style.css (added)
-
tags/1.0.1/assets/css/style.min.css (added)
-
tags/1.0.1/assets/css/style.scss (added)
-
tags/1.0.1/assets/js (added)
-
tags/1.0.1/assets/js/customizer.js (added)
-
tags/1.0.1/assets/js/customizer.min.js (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/core.php (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/pluton-social-sharing.pot (added)
-
tags/1.0.1/pluton-social-sharing.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/template (added)
-
tags/1.0.1/template/social-share.php (added)
-
trunk/assets/css/style.css (modified) (1 diff)
-
trunk/assets/css/style.min.css (modified) (1 diff)
-
trunk/assets/css/style.scss (modified) (1 diff)
-
trunk/pluton-social-sharing.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
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; 7 8 } 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; 10 12 } 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; 19 19 } 20 . woocommerce div.product .entry-share ul li:last-child{21 border-right: 0;20 .entry-share ul li { 21 float: left; 22 22 } 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; 35 25 line-height: 40px; 26 position: relative; 36 27 display: inline-block; 37 28 width: 40px; 38 29 height: 40px; 39 -webkit-transition: all .3s ease;40 t ransition: 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; 43 34 border-radius: 50%; 44 background-color: #333;45 35 } 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; 52 38 } 53 . woocommerce div.product .entry-share ul li.twitter a:hover {39 .entry-share ul li.twitter a:hover { 54 40 color: #00aced; 41 border-color: #00aced; 55 42 } 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; 58 46 } 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; 61 50 } 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; 64 54 } 65 . woocommerce div.product .entry-share ul li.pinterest a:hover {55 .entry-share ul li.pinterest a:hover { 66 56 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; 76 58 } 77 59 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; 82 64 } 83 65 84 66 /*------------------------------------* 85 Responsive67 Phone Landscape 86 68 *------------------------------------*/ 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; 90 75 } 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; 94 79 } 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; 99 83 } 100 84 } 101 102 /*------------------------------------*103 Phone Portrait and Landscape104 *------------------------------------*/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 74 74 border-top: 1px solid #f1f1f1; 75 75 } 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 4 4 * Plugin URI: https://plutonwp.com/extension/pluton-social-sharing/ 5 5 * Description: A simple plugin to add social share buttons to your posts. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: PlutonWP 8 8 * Author URI: https://plutonwp.com/ … … 87 87 $this->plugin_url = plugin_dir_url( __FILE__ ); 88 88 $this->plugin_path = plugin_dir_path( __FILE__ ); 89 $this->version = '1.0. 0';89 $this->version = '1.0.1'; 90 90 91 91 define( 'PSS_ROOT', dirname( __FILE__ ) ); … … 205 205 206 206 /** 207 * Custom control208 */209 require_once dirname( __FILE__ ) . '/includes/customizer-control.php';210 211 /**212 207 * Add a new section 213 208 */ … … 224 219 ) ); 225 220 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 ) ) ); 243 235 244 236 /** … … 278 270 $wp_customize->add_setting( 'pss_sharing_borders_color', array( 279 271 'default' => '#e9e9e9', 280 'sanitize_callback' => 'sanitize_hex_color',281 272 'transport' => 'postMessage', 282 273 ) ); 283 274 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( 285 276 'label' => esc_html__( 'Links Borders Color', 'pluton-social-sharing' ), 286 277 'section' => 'pss_section', 287 278 'settings' => 'pss_sharing_borders_color', 288 'type' => 'color',289 279 'priority' => 5, 290 280 ) ) ); … … 295 285 $wp_customize->add_setting( 'pss_sharing_icons_bg', array( 296 286 'default' => '#ffffff', 297 'sanitize_callback' => 'sanitize_hex_color',298 287 'transport' => 'postMessage', 299 288 ) ); 300 289 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( 302 291 'label' => esc_html__( 'Icons Background Color', 'pluton-social-sharing' ), 303 292 'section' => 'pss_section', 304 293 'settings' => 'pss_sharing_icons_bg', 305 'type' => 'color',306 294 'priority' => 5, 307 295 ) ) ); … … 312 300 $wp_customize->add_setting( 'pss_sharing_icons_color', array( 313 301 'default' => '#bbbbbb', 314 'sanitize_callback' => 'sanitize_hex_color',315 302 'transport' => 'postMessage', 316 303 ) ); 317 304 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( 319 306 'label' => esc_html__( 'Icons Color', 'pluton-social-sharing' ), 320 307 'section' => 'pss_section', 321 308 'settings' => 'pss_sharing_icons_color', 322 'type' => 'color',323 309 'priority' => 5, 324 310 ) ) ); -
pluton-social-sharing/trunk/readme.txt
r1466323 r1480072 4 4 Requires at least: 4.0.0 5 5 Tested up to: 4.6 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 = 1.0.1 = 35 Small change.35 Customizer options improved. 36 36 37 37 = 1.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.