Changeset 1805880
- Timestamp:
- 01/19/2018 04:37:20 PM (8 years ago)
- Location:
- ttfb-toolkit
- Files:
-
- 65 added
- 7 edited
-
tags/1.2 (added)
-
tags/1.2/LICENSE (added)
-
tags/1.2/README.md (added)
-
tags/1.2/assets (added)
-
tags/1.2/assets/css (added)
-
tags/1.2/assets/css/alerts.css (added)
-
tags/1.2/assets/css/alerts.min.css (added)
-
tags/1.2/assets/js (added)
-
tags/1.2/assets/js/speedindex.js (added)
-
tags/1.2/assets/js/speedindex.min.js (added)
-
tags/1.2/assets/js/timing.js (added)
-
tags/1.2/assets/js/timing.min.js (added)
-
tags/1.2/includes (added)
-
tags/1.2/includes/address (added)
-
tags/1.2/includes/address/widget.php (added)
-
tags/1.2/includes/alerts.php (added)
-
tags/1.2/includes/author (added)
-
tags/1.2/includes/author/widget.php (added)
-
tags/1.2/includes/controls (added)
-
tags/1.2/includes/controls/html-control.php (added)
-
tags/1.2/includes/debug (added)
-
tags/1.2/includes/debug/performance-debug.php (added)
-
tags/1.2/includes/font-awesome.php (added)
-
tags/1.2/includes/hooks.php (added)
-
tags/1.2/includes/performance (added)
-
tags/1.2/includes/performance/clean.php (added)
-
tags/1.2/includes/performance/lazyload.php (added)
-
tags/1.2/includes/performance/metabox-options.php (added)
-
tags/1.2/includes/performance/performance-init.php (added)
-
tags/1.2/includes/performance/preload.php (added)
-
tags/1.2/includes/sharing (added)
-
tags/1.2/includes/sharing/controls.php (added)
-
tags/1.2/includes/sharing/functions.php (added)
-
tags/1.2/includes/sharing/sharing.php (added)
-
tags/1.2/includes/sharing/widget.php (added)
-
tags/1.2/includes/social (added)
-
tags/1.2/includes/social/widget.php (added)
-
tags/1.2/includes/spacing (added)
-
tags/1.2/includes/spacing/widget.php (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/ttfb-toolkit.php (added)
-
tags/1.2/vendor (added)
-
tags/1.2/vendor/fontawesome (added)
-
tags/1.2/vendor/fontawesome/fa-brands.js (added)
-
tags/1.2/vendor/fontawesome/fa-brands.min.js (added)
-
tags/1.2/vendor/fontawesome/fa-regular.js (added)
-
tags/1.2/vendor/fontawesome/fa-regular.min.js (added)
-
tags/1.2/vendor/fontawesome/fa-solid.js (added)
-
tags/1.2/vendor/fontawesome/fa-solid.min.js (added)
-
tags/1.2/vendor/fontawesome/fa-v4-shims.js (added)
-
tags/1.2/vendor/fontawesome/fa-v4-shims.min.js (added)
-
tags/1.2/vendor/fontawesome/fontawesome-all.js (added)
-
tags/1.2/vendor/fontawesome/fontawesome-all.min.js (added)
-
tags/1.2/vendor/fontawesome/fontawesome.js (added)
-
tags/1.2/vendor/fontawesome/fontawesome.min.js (added)
-
tags/1.2/vendor/lazysizes (added)
-
tags/1.2/vendor/lazysizes/lazysizes-all.js (added)
-
tags/1.2/vendor/lazysizes/lazysizes-all.min.js (added)
-
tags/1.2/vendor/lazysizes/plugins (added)
-
tags/1.2/vendor/lazysizes/plugins/bgset (added)
-
tags/1.2/vendor/lazysizes/plugins/bgset/ls.bgset.min.js (added)
-
tags/1.2/vendor/lazysizes/plugins/respimg (added)
-
tags/1.2/vendor/lazysizes/plugins/respimg/ls.respimg.min.js (added)
-
trunk/assets/css/alerts.css (modified) (3 diffs)
-
trunk/assets/css/alerts.min.css (modified) (1 diff)
-
trunk/includes/author/widget.php (modified) (1 diff)
-
trunk/includes/load-time (added)
-
trunk/includes/load-time/widget.php (added)
-
trunk/includes/sharing/controls.php (modified) (6 diffs)
-
trunk/includes/sharing/functions.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/ttfb-toolkit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ttfb-toolkit/trunk/assets/css/alerts.css
r1790790 r1805880 7 7 display: flex; 8 8 border-left: 6px solid #3a3a3a; 9 max-width: 768px;10 margin-left: auto;11 margin-right: auto;12 9 } 13 10 … … 20 17 } 21 18 22 .alert_shortcode .icon_box{ 23 border-radius: 4px 0 0 4px; 19 .alert_shortcode .icon_box{ 24 20 padding: 1.5rem 1rem; 25 21 } 26 22 27 .alert_shortcode .content_box{ 28 border-radius: 0 4px 4px 0; 23 .alert_shortcode .content_box{ 29 24 padding: 1.5rem 1rem; 30 25 } … … 38 33 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; 39 34 } 35 36 .alert_shortcode .content_box p{ margin: 0; } 40 37 41 38 .alert_info{ -
ttfb-toolkit/trunk/assets/css/alerts.min.css
r1790790 r1805880 1 .alert_shortcode{background-color:#eee;border-radius:4px;margin-bottom:1rem;display:-webkit-box;display:-ms-flexbox;display:flex;border-left:6px solid #3a3a3a ;max-width:768px;margin-left:auto;margin-right:auto}.alert{border-left-width:6px;border-left-style:solid;padding:1.5rem;border-radius:4px;background-color:#eee}.alert_shortcode .icon_box{border-radius:4px 0 0 4px;padding:1.5rem 1rem}.alert_shortcode .content_box{border-radius:0 4px 4px 0;padding:1.5rem 1rem}.alert_shortcode .icon_box .icon{margin-top:0.5rem}.alert_shortcode .content_box p,.alert{margin-bottom:0;font-size:90%;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important}.alert_info{background-color:#e8f7ff;border-color:#a3daff}.alert_info .icon_box{background-color:#a3daff;color:#228ae6}.alert_warning{background-color:#fff9db;border-color:#ffe066}.alert_warning .icon_box{background-color:#ffe066;color:#fab005}.alert_danger{background-color:#f8c9c4;border-color:#e74c3c}.alert_danger .icon_box{background-color:#e74c3c;color:#fff}.alert_sucess{background-color:rgba(46,204,113,0.3);border-color:rgba(46,204,113,0.7)}.alert_sucess .icon_box{background-color:rgba(46,204,113,0.7);color:#fff}@-webkit-keyframes pulseOpacity{0%{opacity:.99}50%{opacity:.66}to{opacity:.99}}@keyframes pulseOpacity{0%{opacity:.99}50%{opacity:.66}to{opacity:.99}}.pulseOpacity{-webkit-animation-name:pulseOpacity;animation-name:pulseOpacity}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}1 .alert_shortcode{background-color:#eee;border-radius:4px;margin-bottom:1rem;display:-webkit-box;display:-ms-flexbox;display:flex;border-left:6px solid #3a3a3a}.alert{border-left-width:6px;border-left-style:solid;padding:1.5rem;border-radius:4px;background-color:#eee}.alert_shortcode .icon_box{padding:1.5rem 1rem}.alert_shortcode .content_box{padding:1.5rem 1rem}.alert_shortcode .icon_box .icon{margin-top:0.5rem}.alert_shortcode .content_box p,.alert{margin-bottom:0;font-size:90%;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important}.alert_shortcode .content_box p{margin:0}.alert_info{background-color:#e8f7ff;border-color:#a3daff}.alert_info .icon_box{background-color:#a3daff;color:#228ae6}.alert_warning{background-color:#fff9db;border-color:#ffe066}.alert_warning .icon_box{background-color:#ffe066;color:#fab005}.alert_danger{background-color:#f8c9c4;border-color:#e74c3c}.alert_danger .icon_box{background-color:#e74c3c;color:#fff}.alert_sucess{background-color:rgba(46,204,113,0.3);border-color:rgba(46,204,113,0.7)}.alert_sucess .icon_box{background-color:rgba(46,204,113,0.7);color:#fff}@-webkit-keyframes pulseOpacity{0%{opacity:.99}50%{opacity:.66}to{opacity:.99}}@keyframes pulseOpacity{0%{opacity:.99}50%{opacity:.66}to{opacity:.99}}.pulseOpacity{-webkit-animation-name:pulseOpacity;animation-name:pulseOpacity}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both} -
ttfb-toolkit/trunk/includes/author/widget.php
r1790790 r1805880 25 25 */ 26 26 public function widget( $args, $instance ) { 27 28 if( !is_page() && !is_single() ){ 29 return; 30 } 31 27 32 echo $args['before_widget']; 28 33 if ( !empty($instance['title']) ) { -
ttfb-toolkit/trunk/includes/sharing/controls.php
r1790790 r1805880 16 16 'capability' => 'edit_theme_options', 17 17 ) ); 18 18 19 19 /* 20 * Sharing label20 * Sharing networks 21 21 */ 22 $wp_customize->add_setting( 'ttfb_toolkit_sharing[ label]', array(22 $wp_customize->add_setting( 'ttfb_toolkit_sharing[disabled][facebook]', array( 23 23 'default' => '', 24 24 'type' => 'option', … … 26 26 ) ); 27 27 28 $wp_customize->add_control( 'ttfb_toolkit_sharing[ label]', array(29 'type' => ' text',30 'priority' => 10,28 $wp_customize->add_control( 'ttfb_toolkit_sharing[disabled][facebook]', array( 29 'type' => 'checkbox', 30 'priority' => 20, 31 31 'section' => 'ttfb_toolkit_sharing', 32 'label' => __( 'Sharing label', 'ttfb-toolkit' ),32 'label' => __( 'Disable Facebook share', 'minimall' ), 33 33 ) ); 34 34 35 /* 36 * Sharing networks 37 */ 38 $wp_customize->add_setting( 'ttfb_toolkit_sharing[platform][facebook]', array( 35 $wp_customize->add_setting( 'ttfb_toolkit_sharing[disabled][twitter]', array( 39 36 'default' => '', 40 37 'type' => 'option', … … 42 39 ) ); 43 40 44 $wp_customize->add_control( 'ttfb_toolkit_sharing[ platform][facebook]', array(41 $wp_customize->add_control( 'ttfb_toolkit_sharing[disabled][twitter]', array( 45 42 'type' => 'checkbox', 46 43 'priority' => 20, 47 44 'section' => 'ttfb_toolkit_sharing', 48 'label' => __( ' Facebook', 'minimall' ),45 'label' => __( 'Disable Twitter share', 'minimall' ), 49 46 ) ); 50 47 51 $wp_customize->add_setting( 'ttfb_toolkit_sharing[ platform][twitter]', array(48 $wp_customize->add_setting( 'ttfb_toolkit_sharing[disabled][google]', array( 52 49 'default' => '', 53 50 'type' => 'option', … … 55 52 ) ); 56 53 57 $wp_customize->add_control( 'ttfb_toolkit_sharing[ platform][twitter]', array(54 $wp_customize->add_control( 'ttfb_toolkit_sharing[disabled][google]', array( 58 55 'type' => 'checkbox', 59 56 'priority' => 20, 60 57 'section' => 'ttfb_toolkit_sharing', 61 'label' => __( ' Twitter', 'minimall' ),58 'label' => __( 'Disable Google+ share', 'minimall' ), 62 59 ) ); 63 60 64 $wp_customize->add_setting( 'ttfb_toolkit_sharing[ platform][google]', array(61 $wp_customize->add_setting( 'ttfb_toolkit_sharing[disabled][linkedin]', array( 65 62 'default' => '', 66 63 'type' => 'option', … … 68 65 ) ); 69 66 70 $wp_customize->add_control( 'ttfb_toolkit_sharing[ platform][google]', array(67 $wp_customize->add_control( 'ttfb_toolkit_sharing[disabled][linkedin]', array( 71 68 'type' => 'checkbox', 72 69 'priority' => 20, 73 70 'section' => 'ttfb_toolkit_sharing', 74 'label' => __( ' Google', 'minimall' ),71 'label' => __( 'Disable Linkedin share', 'minimall' ), 75 72 ) ); 76 73 77 $wp_customize->add_setting( 'ttfb_toolkit_sharing[ platform][linkedin]', array(74 $wp_customize->add_setting( 'ttfb_toolkit_sharing[disabled][pinterest]', array( 78 75 'default' => '', 79 76 'type' => 'option', … … 81 78 ) ); 82 79 83 $wp_customize->add_control( 'ttfb_toolkit_sharing[ platform][linkedin]', array(80 $wp_customize->add_control( 'ttfb_toolkit_sharing[disabled][pinterest]', array( 84 81 'type' => 'checkbox', 85 82 'priority' => 20, 86 83 'section' => 'ttfb_toolkit_sharing', 87 'label' => __( 'Linkedin', 'minimall' ), 88 ) ); 89 90 $wp_customize->add_setting( 'ttfb_toolkit_sharing[platform][pinterest]', array( 91 'default' => '', 92 'type' => 'option', 93 'capability' => 'edit_theme_options', 94 ) ); 95 96 $wp_customize->add_control( 'ttfb_toolkit_sharing[platform][pinterest]', array( 97 'type' => 'checkbox', 98 'priority' => 20, 99 'section' => 'ttfb_toolkit_sharing', 100 'label' => __( 'Pinterrest', 'minimall' ), 101 ) ); 102 103 /* 104 * Sharing append 105 */ 106 $wp_customize->add_setting( 'ttfb_toolkit_sharing[append]', array( 107 'default' => '', 108 'type' => 'option', 109 'capability' => 'edit_theme_options', 110 ) ); 111 112 $wp_customize->add_control( 'ttfb_toolkit_sharing[append]', array( 113 'type' => 'select', 114 'priority' => 50, 115 'section' => 'ttfb_toolkit_sharing', 116 'label' => __( 'Automatically append', 'minimall' ), 117 'description' => __( 'Automatically append social share module to content. A widget is also available.', 'minimall' ), 118 'choices' => array( 119 'none' => esc_attr__( 'None', 'minimall' ), 120 'top' => esc_attr__( 'At the top', 'minimall' ), 121 'bottom' => esc_attr__( 'At the bottom', 'minimall' ), 122 'both' => esc_attr__( 'Both', 'minimall' ), 123 ), 124 ) ); 125 126 /* 127 * Sharing append location 128 */ 129 $wp_customize->add_setting( 'ttfb_toolkit_sharing[append_to]', array( 130 'default' => '', 131 'type' => 'option', 132 'capability' => 'edit_theme_options', 133 ) ); 134 135 $wp_customize->add_control( 'ttfb_toolkit_sharing[append_to]', array( 136 'type' => 'select', 137 'priority' => 60, 138 'section' => 'ttfb_toolkit_sharing', 139 'label' => __( 'Append to', 'ttfb-toolkit' ), 140 'choices' => array( 141 'all' => esc_attr__( 'Pages and Posts', 'minimall' ), 142 'posts' => esc_attr__( 'Posts only', 'minimall' ), 143 'pages' => esc_attr__( 'Pages only', 'minimall' ), 144 ), 145 'active_callback' => 'ttfb_toolkit_sharing_auto_append', 84 'label' => __( 'Disable Pinterrest share', 'minimall' ), 146 85 ) ); 147 86 148 87 } 149 88 150 function ttfb_toolkit_sharing_auto_append( $control ) {151 if ( $control->manager->get_setting('ttfb_toolkit_sharing[append]')->value() != 'none' ) {152 return true;153 } else {154 return false;155 }156 } -
ttfb-toolkit/trunk/includes/sharing/functions.php
r1790790 r1805880 1 1 <?php 2 /**3 * Append custom share button to after content4 */5 add_filter('the_content','ttfb_toolkit_sharing_append_top', 10);6 function ttfb_toolkit_sharing_append_top( $content ){7 8 $share_options = get_option('ttfb_toolkit_sharing',false);9 10 if( $share_options['append'] == 'top' || $share_options['append'] == 'both' ){11 12 $social = '<section class="mt2 mb2">';13 14 if( is_singular('post') && $share_options['append_to'] != 'pages' ){15 $social .= ttfb_toolkit_sharing_get_markup();16 }elseif( ( get_post_type() == 'page' && !is_page_template() ) && $share_options['append_to'] != 'posts' ){17 $social .= ttfb_toolkit_sharing_get_markup();18 }else{19 $social .= '';20 }21 22 $social .= '</section>';23 24 $content = $social . $content;25 }26 27 return $content;28 }29 30 /**31 * Append custom share button after content32 */33 add_action('ttfb_toolkit_after_page_content','ttfb_toolkit_sharing_append_bottom', 40);34 add_action('ttfb_toolkit_after_post_content','ttfb_toolkit_sharing_append_bottom', 40);35 function ttfb_toolkit_sharing_append_bottom( ){36 37 $share_options = get_option('ttfb_toolkit_sharing',false);38 39 if( $share_options['append'] == 'bottom' || $share_options['append'] == 'both' ){40 41 $social = '';42 $title = '';43 44 $social .= '<section class="mt3 mb3">';45 46 if( !empty( $share_options['label'] ) ){47 $title .= '<h5 class="mb2 mt0 hide-prin">' . esc_html( $share_options['label'] ) . '</h5>';48 }49 50 if( is_singular('post') && $share_options['append_to'] != 'pages' ){51 $social .= $title . ttfb_toolkit_sharing_get_markup();52 }elseif( ( get_post_type() == 'page' && !is_page_template() ) && $share_options['append_to'] != 'posts' ){53 $social .= $title . ttfb_toolkit_sharing_get_markup();54 }else{55 $social .= '';56 }57 58 $social .= '</section>';59 60 echo $social;61 }62 }63 64 2 /** 65 3 * Custom share buttons markup … … 73 11 $content .= '<div class="social-share-btns hide-print max-width-3 ml-auto mr-auto m0">'; 74 12 75 if( !empty( $share_options['platform']['facebook'] ) ){13 if( empty( $share_options['disabled']['facebook'] ) ){ 76 14 $content .= '<a target="_blank" rel="noopener noreferrer nofollow" href="http://www.facebook.com/sharer.php?u=' . get_permalink() . '&t=' . urlencode( get_the_title() ) . '" class="mb1 mr1 inline-flex items-center share-btn share-btn-facebook"><svg class="mr1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve" width="16" height="16"><g class="" fill="#ffffff"><path fill="#ffffff" d="M6.02293,16L6,9H3V6h3V4c0-2.6992,1.67151-4,4.07938-4c1.15339,0,2.14468,0.08587,2.43356,0.12425v2.82082 l-1.66998,0.00076c-1.30953,0-1.56309,0.62227-1.56309,1.53541V6H13l-1,3H9.27986v7H6.02293z"></path></g></svg> ' . esc_html__("Share","minimall") . '</a>'; 77 15 } 78 16 79 if( !empty( $share_options['platform']['twitter'] ) ){17 if( empty( $share_options['disabled']['twitter'] ) ){ 80 18 $content .= '<a target="_blank" rel="noopener noreferrer nofollow" href="http://twitter.com/home?status=' . urlencode( get_the_title() ) . '+' . get_permalink() . '" class="mb1 mr1 inline-flex items-center share-btn share-btn-twitter"><svg class="mr1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve" width="16" height="16"><g class="" fill="#ffffff"><path fill="#ffffff" d="M16,3c-0.6,0.3-1.2,0.4-1.9,0.5c0.7-0.4,1.2-1,1.4-1.8c-0.6,0.4-1.3,0.6-2.1,0.8c-0.6-0.6-1.5-1-2.4-1 C9.3,1.5,7.8,3,7.8,4.8c0,0.3,0,0.5,0.1,0.7C5.2,5.4,2.7,4.1,1.1,2.1c-0.3,0.5-0.4,1-0.4,1.7c0,1.1,0.6,2.1,1.5,2.7 c-0.5,0-1-0.2-1.5-0.4c0,0,0,0,0,0c0,1.6,1.1,2.9,2.6,3.2C3,9.4,2.7,9.4,2.4,9.4c-0.2,0-0.4,0-0.6-0.1c0.4,1.3,1.6,2.3,3.1,2.3 c-1.1,0.9-2.5,1.4-4.1,1.4c-0.3,0-0.5,0-0.8,0c1.5,0.9,3.2,1.5,5,1.5c6,0,9.3-5,9.3-9.3c0-0.1,0-0.3,0-0.4C15,4.3,15.6,3.7,16,3z"></path></g></svg> ' . esc_html__("Tweet","minimall") . '</a>'; 81 19 } 82 20 83 if( !empty( $share_options['platform']['google'] ) ){21 if( empty( $share_options['disabled']['google'] ) ){ 84 22 $content .= '<a target="_blank" rel="noopener noreferrer nofollow" href="https://plus.google.com/share?url=' . get_permalink() . '" class="mb1 mr1 inline-flex items-center share-btn share-btn-google-plus"><svg class="mr1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve" width="16" height="16"><g class="" fill="#ffffff"><path fill="#ffffff" d="M8,7v2.4h4.1c-0.2,1-1.2,3-4,3c-2.4,0-4.3-2-4.3-4.4s2-4.4,4.3-4.4 c1.4,0,2.3,0.6,2.8,1.1l1.9-1.8C11.6,1.7,10,1,8.1,1c-3.9,0-7,3.1-7,7s3.1,7,7,7c4,0,6.7-2.8,6.7-6.8c0-0.5,0-0.8-0.1-1.2H8L8,7z"></path></g></svg> ' . esc_html__("Share","minimall") . '</a>'; 85 23 } 86 24 87 if( !empty( $share_options['platform']['linkedin'] ) ){25 if( empty( $share_options['disabled']['linkedin'] ) ){ 88 26 $content .= '<a target="_blank" rel="noopener noreferrer nofollow" href="https://www.linkedin.com/shareArticle?mini=true&url=' . get_permalink() . '&title=' . urlencode( get_the_title() ) . '" class="mb1 mr1 inline-flex items-center share-btn share-btn-linkedin"><svg class="mr1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve" width="16" height="16"><g class="" fill="#ffffff"><path fill="#ffffff" d="M15.3,0H0.7C0.3,0,0,0.3,0,0.7v14.7C0,15.7,0.3,16,0.7,16h14.7c0.4,0,0.7-0.3,0.7-0.7V0.7 C16,0.3,15.7,0,15.3,0z M4.7,13.6H2.4V6h2.4V13.6z M3.6,5C2.8,5,2.2,4.3,2.2,3.6c0-0.8,0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4 C4.9,4.3,4.3,5,3.6,5z M13.6,13.6h-2.4V9.9c0-0.9,0-2-1.2-2c-1.2,0-1.4,1-1.4,2v3.8H6.2V6h2.3v1h0c0.3-0.6,1.1-1.2,2.2-1.2 c2.4,0,2.8,1.6,2.8,3.6V13.6z"></path></g></svg> ' . esc_html__("Share","minimall") . '</a>'; 89 27 } 90 28 91 if( !empty( $share_options['platform']['pinterest'] ) ){29 if( empty( $share_options['disabled']['pinterest'] ) ){ 92 30 $pinterest_link = "javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());"; 93 31 $content .= '<a target="_blank" rel="noopener noreferrer nofollow" href="'. $pinterest_link .'" class="mb1 mr1 inline-flex items-center share-btn share-btn-pinterest"><svg class="mr1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve" width="16" height="16"><g class="" fill="#ffffff"><path fill="#ffffff" d="M8,0C3.6,0,0,3.6,0,8c0,3.4,2.1,6.3,5.1,7.4c-0.1-0.6-0.1-1.6,0-2.3c0.1-0.6,0.9-4,0.9-4S5.8,8.7,5.8,8 C5.8,6.9,6.5,6,7.3,6c0.7,0,1,0.5,1,1.1c0,0.7-0.4,1.7-0.7,2.7c-0.2,0.8,0.4,1.4,1.2,1.4c1.4,0,2.5-1.5,2.5-3.7 c0-1.9-1.4-3.3-3.3-3.3c-2.3,0-3.6,1.7-3.6,3.5c0,0.7,0.3,1.4,0.6,1.8C5,9.7,5,9.8,5,9.9c-0.1,0.3-0.2,0.8-0.2,0.9 c0,0.1-0.1,0.2-0.3,0.1c-1-0.5-1.6-1.9-1.6-3.1C2.9,5.3,4.7,3,8.2,3c2.8,0,4.9,2,4.9,4.6c0,2.8-1.7,5-4.2,5c-0.8,0-1.6-0.4-1.8-0.9 c0,0-0.4,1.5-0.5,1.9c-0.2,0.7-0.7,1.6-1,2.1C6.4,15.9,7.2,16,8,16c4.4,0,8-3.6,8-8C16,3.6,12.4,0,8,0z"></path></g></svg> ' . esc_html__("Pin","minimall") . '</a>'; -
ttfb-toolkit/trunk/readme.txt
r1799717 r1805880 6 6 Requires at least: 4.6 7 7 Tested up to: 4.9 8 Stable tag: 1. 28 Stable tag: 1.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 ==Changelog== 35 = v1.2 - January 9, 2017 = 35 = v1.3 - January 19, 2018 = 36 * New Feature - Current page speed widgets 37 * New Feature - Before posts sidebar 38 * New Feature - Before pages sidebar 39 * Tweak - Deprecating the auto-append sharing 40 * Tweak - Alerts for better Gutenberg compatibility 41 42 = v1.2 - January 9, 2018 = 36 43 * New Feature - Debug performance panel 37 44 * New Feature - Address Widget -
ttfb-toolkit/trunk/ttfb-toolkit.php
r1799717 r1805880 4 4 Plugin URI: https://github.com/time-to-first-byte/ttfb-toolkit 5 5 Description: The TTFB Toolkit extends functionality to TTFB Themes, providing Font Awesome icons, alerts and more. 6 Version: 1. 26 Version: 1.3 7 7 Author: TTFB 8 8 */ … … 13 13 14 14 // Toolkit version 15 define( 'TTFB_TOOLKIT_VERSION', '1. 2' );15 define( 'TTFB_TOOLKIT_VERSION', '1.3' ); 16 16 17 17 // Toolkit root directory … … 66 66 */ 67 67 require_once( TTFB_TOOLKIT_INCLUDES . 'hooks.php' ); 68 69 /** 70 * load time widget 71 */ 72 require_once( TTFB_TOOLKIT_INCLUDES . 'load-time/widget.php' ); 68 73 69 74 /**
Note: See TracChangeset
for help on using the changeset viewer.