Changeset 1287192
- Timestamp:
- 11/16/2015 04:00:30 PM (10 years ago)
- Location:
- gp-back-to-top/trunk
- Files:
-
- 7 added
- 5 edited
-
css/font.css (added)
-
css/gp-admin.css (modified) (1 diff)
-
css/gp-bttp.css (modified) (3 diffs)
-
css/style.css (modified) (2 diffs)
-
fonts (added)
-
fonts/glyphicons-halflings-regular.eot (added)
-
fonts/glyphicons-halflings-regular.svg (added)
-
fonts/glyphicons-halflings-regular.ttf (added)
-
fonts/glyphicons-halflings-regular.woff (added)
-
fonts/glyphicons-halflings-regular.woff2 (added)
-
gp-back-to-top.php (modified) (4 diffs)
-
js/gp-bttp.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gp-back-to-top/trunk/css/gp-admin.css
r1280129 r1287192 1 /*2 * Style GP Back To Top Plugin3 *4 * @author Giang Peter5 */6 .gp-back-to-top {7 display: block !important;8 width: 30px;9 height: 30px;10 border-radius: 50%;11 padding: 5px;12 background-color: #111f1c;13 color: #ffffff;14 text-align: center;15 position: relative !important;16 bottom: inherit !important;17 right: inherit !important;18 font-size: 14px;19 }20 .gp-back-to-top span {21 position: absolute;22 top:24%;23 -webkit-transform: translateX(-50%);24 -moz-transform: translateX(-50%);25 -ms-transform: translateX(-50%);26 -o-transform: translateX(-50%);27 transform: translateX(-50%);28 } -
gp-back-to-top/trunk/css/gp-bttp.css
r1284178 r1287192 1 1 /* 2 * Style GP Back To Top Plugin 3 * 4 * @author Giang Peter 5 */ 2 Style for GP Back To Top 3 */ 4 @import url("font.css"); 5 6 .gpbttb-form { 7 width: 360px; 8 margin: 20px 0; 9 padding-top: 15px; 10 border: 1px solid #cdcdcd; 11 } 12 6 13 .gp-back-to-top { 7 14 display: none; … … 14 21 text-align: center; 15 22 position: fixed; 16 bottom: 4 0px;17 right: 2 0px;23 bottom: 45px; 24 right: 25px; 18 25 font-size: 14px; 19 26 cursor: pointer; 20 z-index: 99999;21 27 } 22 28 .gp-back-to-top span { … … 28 34 -o-transform: translateX(-50%); 29 35 transform: translateX(-50%); 36 font-family: 'Glyphicons Halflings'; 37 line-height: 1; 38 -webkit-font-smoothing: antialiased; 39 -moz-osx-font-smoothing: grayscale; 30 40 } 41 .gp-back-to-top span:before { 42 content: "\e113"; 43 } -
gp-back-to-top/trunk/css/style.css
r1280129 r1287192 2 2 Style for GP Back To Top 3 3 */ 4 @import url("font.css"); 4 5 5 6 .gpbttb-form { … … 32 33 -o-transform: translateX(-50%); 33 34 transform: translateX(-50%); 35 font-family: 'Glyphicons Halflings'; 36 line-height: 1; 37 -webkit-font-smoothing: antialiased; 38 -moz-osx-font-smoothing: grayscale; 34 39 } 40 .gp-back-to-top span:before { 41 content: "\e113"; 42 } 43 44 /* Style for FO */ 45 /*------------------------------------/ 46 @import url("font.css"); 47 48 .gpbttb-form { 49 width: 360px; 50 margin: 20px 0; 51 padding-top: 15px; 52 border: 1px solid #cdcdcd; 53 } 54 55 .gp-back-to-top { 56 display: none; 57 width: 30px; 58 height: 30px; 59 border-radius: 50%; 60 padding: 5px; 61 background-color: #111f1c; 62 color: #ffffff; 63 text-align: center; 64 position: fixed; 65 bottom: 45px; 66 right: 25px; 67 font-size: 14px; 68 cursor: pointer; 69 } 70 .gp-back-to-top span { 71 position: absolute; 72 top:24%; 73 -webkit-transform: translateX(-50%); 74 -moz-transform: translateX(-50%); 75 -ms-transform: translateX(-50%); 76 -o-transform: translateX(-50%); 77 transform: translateX(-50%); 78 font-family: 'Glyphicons Halflings'; 79 line-height: 1; 80 -webkit-font-smoothing: antialiased; 81 -moz-osx-font-smoothing: grayscale; 82 } 83 .gp-back-to-top span:before { 84 content: "\e113"; 85 } 86 ------------------------------------------------*/ -
gp-back-to-top/trunk/gp-back-to-top.php
r1286869 r1287192 63 63 64 64 public function gp_bttp_enqueue_scripts() { 65 wp_register_style( 'gp_bttb_fo_bootstrap', plugins_url( '/lib/bootstrap-3.3.4/css/bootstrap.min.css', __FILE__ ), array(), '3.3.4' );66 wp_enqueue_style( 'gp_bttb_fo_bootstrap' );67 65 wp_register_style( 'gp-bttp-style', plugins_url( '/css/'.$this->fr_file.'.css', __FILE__ ), array(), self::VERSION ); 68 66 wp_enqueue_style( 'gp-bttp-style' ); … … 129 127 </form> 130 128 <p> 131 <div class="gp-back-to-top" id="gpToTop"> 132 <span class="glyphicon glyphicon-chevron-up"></span> 133 </div> 129 <div class="gp-back-to-top" id="gpToTop"><span></span></div> 134 130 </p> 135 131 <script type="text/javascript"> … … 186 182 * @author Giang Peter 187 183 */ 184 @import url(\"font.css\"); 188 185 .gp-back-to-top { 189 186 display: none; … … 210 207 -o-transform: translateX(-50%); 211 208 transform: translateX(-50%); 209 font-family: 'Glyphicons Halflings'; 210 line-height: 1; 211 -webkit-font-smoothing: antialiased; 212 -moz-osx-font-smoothing: grayscale; 213 } 214 .gp-back-to-top span:before { 215 content: '\\e113'; 212 216 }"; 213 217 214 $file = fopen( dirname(__FILE__) . '\css\/'.$this->fr_file.'.css', 'w') or die('File not found.'); 218 $file_fo = dirname(__FILE__) . '/css/'.$this->fr_file.'.css'; 219 $file = fopen($file_fo, 'w') or die('File not found.'); 215 220 fwrite($file, $txt); 216 221 fclose($file); 217 222 218 $file_ad = fopen( dirname(__FILE__) . '\css\/'.$this->ad_file.'.css', 'w') or die('File not found.'); 223 $file_bo = dirname(__FILE__) . '/css/'.$this->ad_file.'.css'; 224 $file_ad = fopen($file_bo, 'w') or die('File not found.'); 219 225 fwrite($file_ad, $txt); 220 226 fclose($file_ad); -
gp-back-to-top/trunk/js/gp-bttp.js
r1280129 r1287192 13 13 (function ($) { 14 14 $(document).ready(function() { 15 var element = '<div class="gp-back-to-top" id="gpToTop"><span class="glyphicon glyphicon-chevron-up"></span></div>';15 var element = '<div class="gp-back-to-top" id="gpToTop"><span></span></div>'; 16 16 $('body').append(element); 17 17
Note: See TracChangeset
for help on using the changeset viewer.