Changeset 1410421
- Timestamp:
- 05/04/2016 03:26:58 PM (10 years ago)
- Location:
- scroll-to-top-button-awesome/trunk
- Files:
-
- 4 edited
-
index.php (modified) (1 diff)
-
inline-style.php (modified) (30 diffs)
-
readme.txt (modified) (1 diff)
-
section/animation.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scroll-to-top-button-awesome/trunk/index.php
r1410242 r1410421 177 177 case '42': ?> <i class="fa fa-hand-pointer-o icon_42"></i> <?php break; 178 178 case '43': ?> <i class="fa fa-map-marker icon_43"></i> <?php break; 179 case '44': ?> <span class=" icon-1"></span> <?php break;180 case '45': ?> <span class=" icon-2"></span> <?php break;181 case '46': ?> <span class=" icon-3"></span> <?php break;182 case '47': ?> <span class=" icon-4"></span> <?php break;183 case '48': ?> <span class=" icon-5"></span> <?php break;184 case '49': ?> <span class=" icon-6"></span> <?php break;185 case '50': ?> <span class=" icon-7"></span> <?php break;186 case '51': ?> <span class=" icon-8"></span> <?php break;187 case '52': ?> <span class=" icon-10"></span> <?php break;188 case '53': ?> <span class=" icon-11"></span> <?php break;189 case '54': ?> <span class=" icon-13"></span> <?php break;190 case '55': ?> <span class=" icon-14"></span> <?php break;191 case '56': ?> <span class=" icon-15"></span> <?php break;192 case '57': ?> <span class=" icon-16"></span> <?php break;193 case '58': ?> <span class=" icon-17"></span> <?php break;194 case '59': ?> <span class=" icon-18"></span> <?php break;195 case '60': ?> <span class=" icon-19"></span> <?php break;196 case '61': ?> <span class=" icon-20"></span> <?php break;197 case '62': ?> <span class=" icon-21"></span> <?php break;198 case '63': ?> <span class=" icon-22"></span> <?php break;199 case '64': ?> <span class=" icon-23"></span> <?php break;200 case '65': ?> <span class=" icon-24"></span> <?php break;201 case '66': ?> <span class=" icon-25"></span> <?php break;202 case '67': ?> <span class=" icon-26"></span> <?php break;203 case '68': ?> <span class=" icon-27"></span> <?php break;204 case '69': ?> <span class=" icon-28"></span> <?php break;205 case '70': ?> <span class=" icon-29"></span> <?php break;206 case '71': ?> <span class=" icon-30"></span> <?php break;207 case '72': ?> <span class=" icon-31"></span> <?php break;208 case '73': ?> <span class=" icon-32"></span> <?php break;209 case '74': ?> <span class=" icon-33"></span> <?php break;210 case '75': ?> <span class=" icon-34"></span> <?php break;211 case '76': ?> <span class=" icon-35"></span> <?php break;212 case '77': ?> <span class=" icon-36"></span> <?php break;213 case '78': ?> <span class=" icon-37"></span> <?php break;214 case '79': ?> <span class=" icon-38"></span> <?php break;215 case '80': ?> <span class=" icon-39"></span> <?php break;216 case '81': ?> <span class=" icon-40"></span> <?php break;217 case '82': ?> <span class=" icon-41"></span> <?php break;218 case '83': ?> <span class=" icon-42"></span> <?php break;219 case '84': ?> <span class=" icon-43"></span> <?php break;220 case '85': ?> <span class=" icon-44"></span> <?php break;221 case '86': ?> <span class=" icon-45"></span> <?php break;222 case '87': ?> <span class=" icon-46"></span> <?php break;223 case '88': ?> <span class=" icon-47"></span> <?php break;224 case '89': ?> <span class=" icon-48"></span> <?php break;225 case '90': ?> <span class=" icon-49"></span> <?php break;226 case '91': ?> <span class=" icon-50"></span> <?php break;227 case '92': ?> <span class=" icon-51"></span> <?php break;228 case '93': ?> <span class=" icon-52"></span> <?php break;229 case '94': ?> <span class=" icon-53"></span> <?php break;230 case '95': ?> <span class=" icon-54"></span> <?php break;231 case '96': ?> <span class=" icon-55"></span> <?php break;232 case '97': ?> <span class=" icon-56"></span> <?php break;233 case '98': ?> <span class=" icon-57"></span> <?php break;234 case '99': ?> <span class=" icon-58"></span> <?php break;235 case '100': ?> <span class=" icon-59"></span> <?php break;236 case '101': ?> <span class=" icon-60"></span> <?php break;237 case '102': ?> <span class=" icon-61"></span> <?php break;238 case '103': ?> <span class=" icon-62"></span> <?php break;239 case '104': ?> <span class=" icon-63"></span> <?php break;240 case '105': ?> <span class=" icon-64"></span> <?php break;241 case '106': ?> <span class=" icon-65"></span> <?php break;242 case '107': ?> <span class=" icon-66"></span> <?php break;243 case '108': ?> <span class=" icon-67"></span> <?php break;244 case '109': ?> <span class=" icon-68"></span> <?php break;245 case '110': ?> <span class=" icon-69"></span> <?php break;246 case '111': ?> <span class=" icon-70"></span> <?php break;247 case '112': ?> <span class=" icon-71"></span> <?php break;248 case '113': ?> <span class=" icon-72"></span> <?php break;249 case '114': ?> <span class=" icon-73"></span> <?php break;250 case '115': ?> <span class=" icon-74"></span> <?php break;251 case '116': ?> <span class=" icon-75"></span> <?php break;252 case '117': ?> <span class=" icon-76"></span> <?php break;253 case '118': ?> <span class=" icon-77"></span> <?php break;254 case '119': ?> <span class=" icon-78"></span> <?php break;255 case '120': ?> <span class=" icon-79"></span> <?php break;256 case '121': ?> <span class=" icon-80"></span> <?php break;257 case '122': ?> <span class=" icon-90"></span> <?php break;258 case '123': ?> <span class=" icon-100"></span> <?php break;259 case '124': ?> <span class=" icon-101"></span> <?php break;260 case '125': ?> <span class=" icon-102"></span> <?php break;261 case '126': ?> <span class=" icon-103"></span> <?php break;262 case '127': ?> <span class=" icon-104"></span> <?php break;263 case '128': ?> <span class=" icon-105"></span> <?php break;264 case '129': ?> <span class=" icon-106"></span> <?php break;265 case '130': ?> <span class=" icon-107"></span> <?php break;266 case '131': ?> <span class=" icon-108"></span> <?php break;267 case '132': ?> <span class=" icon-109"></span> <?php break;268 case '133': ?> <span class=" icon-110"></span> <?php break;269 case '134': ?> <span class=" icon-111"></span> <?php break;270 case '135': ?> <span class=" icon-112"></span> <?php break;271 case '136': ?> <span class=" icon-113"></span> <?php break;272 case '137': ?> <span class=" icon-114"></span> <?php break;273 case '138': ?> <span class=" icon-115"></span> <?php break;274 case '139': ?> <span class=" icon-116"></span> <?php break;275 case '140': ?> <span class=" icon-117"></span> <?php break;276 case '141': ?> <span class=" icon-118"></span> <?php break;277 case '142': ?> <span class=" icon-119"></span> <?php break;278 case '143': ?> <span class=" icon-120"></span> <?php break;279 case '144': ?> <span class=" icon-121"></span> <?php break;280 case '145': ?> <span class=" icon-122"></span> <?php break;281 case '146': ?> <span class=" icon-123"></span> <?php break;282 case '147': ?> <span class=" icon-124"></span> <?php break;283 case '148': ?> <span class=" icon-125"></span> <?php break;284 case '149': ?> <span class=" icon-126"></span> <?php break;285 case '150': ?> <span class=" icon-127"></span> <?php break;286 case '151': ?> <span class=" icon-128"></span> <?php break;287 case '152': ?> <span class=" icon-129"></span> <?php break;288 case '153': ?> <span class=" icon-130"></span> <?php break;289 case '154': ?> <span class=" icon-131"></span> <?php break;290 case '155': ?> <span class=" icon-132"></span> <?php break;291 case '156': ?> <span class=" icon-133"></span> <?php break;292 case '157': ?> <span class=" icon-134"></span> <?php break;293 case '158': ?> <span class=" icon-135"></span> <?php break;294 case '159': ?> <span class=" icon-136"></span> <?php break;295 case '160': ?> <span class=" icon-137"></span> <?php break;296 case '161': ?> <span class=" icon-138"></span> <?php break;297 case '162': ?> <span class=" icon-139"></span> <?php break;298 case '163': ?> <span class=" icon-140"></span> <?php break;299 case '164': ?> <span class=" icon-141"></span> <?php break;300 case '165': ?> <span class=" icon-142"></span> <?php break;301 case '166': ?> <span class=" icon-143"></span> <?php break;302 case '167': ?> <span class=" icon-144"></span> <?php break;303 case '168': ?> <span class=" icon-145"></span> <?php break;304 case '169': ?> <span class=" icon-146"></span> <?php break;305 case '170': ?> <span class=" icon-147"></span> <?php break;306 case '171': ?> <span class=" icon-148"></span> <?php break;307 case '172': ?> <span class=" icon-149"></span> <?php break;308 case '173': ?> <span class=" icon-150"></span> <?php break;309 case '174': ?> <span class=" icon-151"></span> <?php break;310 case '175': ?> <span class=" icon-152"></span> <?php break;311 case '176': ?> <span class=" icon-153"></span> <?php break;312 case '177': ?> <span class=" icon-154"></span> <?php break;313 case '178': ?> <span class=" icon-155"></span> <?php break;314 case '179': ?> <span class=" icon-156"></span> <?php break;315 case '180': ?> <span class=" icon-157"></span> <?php break;316 case '181': ?> <span class=" icon-158"></span> <?php break;317 case '182': ?> <span class=" icon-159"></span> <?php break;318 case '183': ?> <span class=" icon-160"></span> <?php break;319 case '184': ?> <span class=" icon-161"></span> <?php break;320 case '185': ?> <span class=" icon-162"></span> <?php break;321 case '186': ?> <span class=" icon-163"></span> <?php break;322 case '187': ?> <span class=" icon-164"></span> <?php break;323 case '188': ?> <span class=" icon-165"></span> <?php break;324 case '189': ?> <span class=" icon-166"></span> <?php break;325 case '190': ?> <span class=" icon-167"></span> <?php break;326 case '191': ?> <span class=" icon-168"></span> <?php break;327 case '192': ?> <span class=" icon-169"></span> <?php break;179 case '44': ?> <span class="fa-span icon-1"></span> <?php break; 180 case '45': ?> <span class="fa-span icon-2"></span> <?php break; 181 case '46': ?> <span class="fa-span icon-3"></span> <?php break; 182 case '47': ?> <span class="fa-span icon-4"></span> <?php break; 183 case '48': ?> <span class="fa-span icon-5"></span> <?php break; 184 case '49': ?> <span class="fa-span icon-6"></span> <?php break; 185 case '50': ?> <span class="fa-span icon-7"></span> <?php break; 186 case '51': ?> <span class="fa-span icon-8"></span> <?php break; 187 case '52': ?> <span class="fa-span icon-10"></span> <?php break; 188 case '53': ?> <span class="fa-span icon-11"></span> <?php break; 189 case '54': ?> <span class="fa-span icon-13"></span> <?php break; 190 case '55': ?> <span class="fa-span icon-14"></span> <?php break; 191 case '56': ?> <span class="fa-span icon-15"></span> <?php break; 192 case '57': ?> <span class="fa-span icon-16"></span> <?php break; 193 case '58': ?> <span class="fa-span icon-17"></span> <?php break; 194 case '59': ?> <span class="fa-span icon-18"></span> <?php break; 195 case '60': ?> <span class="fa-span icon-19"></span> <?php break; 196 case '61': ?> <span class="fa-span icon-20"></span> <?php break; 197 case '62': ?> <span class="fa-span icon-21"></span> <?php break; 198 case '63': ?> <span class="fa-span icon-22"></span> <?php break; 199 case '64': ?> <span class="fa-span icon-23"></span> <?php break; 200 case '65': ?> <span class="fa-span icon-24"></span> <?php break; 201 case '66': ?> <span class="fa-span icon-25"></span> <?php break; 202 case '67': ?> <span class="fa-span icon-26"></span> <?php break; 203 case '68': ?> <span class="fa-span icon-27"></span> <?php break; 204 case '69': ?> <span class="fa-span icon-28"></span> <?php break; 205 case '70': ?> <span class="fa-span icon-29"></span> <?php break; 206 case '71': ?> <span class="fa-span icon-30"></span> <?php break; 207 case '72': ?> <span class="fa-span icon-31"></span> <?php break; 208 case '73': ?> <span class="fa-span icon-32"></span> <?php break; 209 case '74': ?> <span class="fa-span icon-33"></span> <?php break; 210 case '75': ?> <span class="fa-span icon-34"></span> <?php break; 211 case '76': ?> <span class="fa-span icon-35"></span> <?php break; 212 case '77': ?> <span class="fa-span icon-36"></span> <?php break; 213 case '78': ?> <span class="fa-span icon-37"></span> <?php break; 214 case '79': ?> <span class="fa-span icon-38"></span> <?php break; 215 case '80': ?> <span class="fa-span icon-39"></span> <?php break; 216 case '81': ?> <span class="fa-span icon-40"></span> <?php break; 217 case '82': ?> <span class="fa-span icon-41"></span> <?php break; 218 case '83': ?> <span class="fa-span icon-42"></span> <?php break; 219 case '84': ?> <span class="fa-span icon-43"></span> <?php break; 220 case '85': ?> <span class="fa-span icon-44"></span> <?php break; 221 case '86': ?> <span class="fa-span icon-45"></span> <?php break; 222 case '87': ?> <span class="fa-span icon-46"></span> <?php break; 223 case '88': ?> <span class="fa-span icon-47"></span> <?php break; 224 case '89': ?> <span class="fa-span icon-48"></span> <?php break; 225 case '90': ?> <span class="fa-span icon-49"></span> <?php break; 226 case '91': ?> <span class="fa-span icon-50"></span> <?php break; 227 case '92': ?> <span class="fa-span icon-51"></span> <?php break; 228 case '93': ?> <span class="fa-span icon-52"></span> <?php break; 229 case '94': ?> <span class="fa-span icon-53"></span> <?php break; 230 case '95': ?> <span class="fa-span icon-54"></span> <?php break; 231 case '96': ?> <span class="fa-span icon-55"></span> <?php break; 232 case '97': ?> <span class="fa-span icon-56"></span> <?php break; 233 case '98': ?> <span class="fa-span icon-57"></span> <?php break; 234 case '99': ?> <span class="fa-span icon-58"></span> <?php break; 235 case '100': ?> <span class="fa-span icon-59"></span> <?php break; 236 case '101': ?> <span class="fa-span icon-60"></span> <?php break; 237 case '102': ?> <span class="fa-span icon-61"></span> <?php break; 238 case '103': ?> <span class="fa-span icon-62"></span> <?php break; 239 case '104': ?> <span class="fa-span icon-63"></span> <?php break; 240 case '105': ?> <span class="fa-span icon-64"></span> <?php break; 241 case '106': ?> <span class="fa-span icon-65"></span> <?php break; 242 case '107': ?> <span class="fa-span icon-66"></span> <?php break; 243 case '108': ?> <span class="fa-span icon-67"></span> <?php break; 244 case '109': ?> <span class="fa-span icon-68"></span> <?php break; 245 case '110': ?> <span class="fa-span icon-69"></span> <?php break; 246 case '111': ?> <span class="fa-span icon-70"></span> <?php break; 247 case '112': ?> <span class="fa-span icon-71"></span> <?php break; 248 case '113': ?> <span class="fa-span icon-72"></span> <?php break; 249 case '114': ?> <span class="fa-span icon-73"></span> <?php break; 250 case '115': ?> <span class="fa-span icon-74"></span> <?php break; 251 case '116': ?> <span class="fa-span icon-75"></span> <?php break; 252 case '117': ?> <span class="fa-span icon-76"></span> <?php break; 253 case '118': ?> <span class="fa-span icon-77"></span> <?php break; 254 case '119': ?> <span class="fa-span icon-78"></span> <?php break; 255 case '120': ?> <span class="fa-span icon-79"></span> <?php break; 256 case '121': ?> <span class="fa-span icon-80"></span> <?php break; 257 case '122': ?> <span class="fa-span icon-90"></span> <?php break; 258 case '123': ?> <span class="fa-span icon-100"></span> <?php break; 259 case '124': ?> <span class="fa-span icon-101"></span> <?php break; 260 case '125': ?> <span class="fa-span icon-102"></span> <?php break; 261 case '126': ?> <span class="fa-span icon-103"></span> <?php break; 262 case '127': ?> <span class="fa-span icon-104"></span> <?php break; 263 case '128': ?> <span class="fa-span icon-105"></span> <?php break; 264 case '129': ?> <span class="fa-span icon-106"></span> <?php break; 265 case '130': ?> <span class="fa-span icon-107"></span> <?php break; 266 case '131': ?> <span class="fa-span icon-108"></span> <?php break; 267 case '132': ?> <span class="fa-span icon-109"></span> <?php break; 268 case '133': ?> <span class="fa-span icon-110"></span> <?php break; 269 case '134': ?> <span class="fa-span icon-111"></span> <?php break; 270 case '135': ?> <span class="fa-span icon-112"></span> <?php break; 271 case '136': ?> <span class="fa-span icon-113"></span> <?php break; 272 case '137': ?> <span class="fa-span icon-114"></span> <?php break; 273 case '138': ?> <span class="fa-span icon-115"></span> <?php break; 274 case '139': ?> <span class="fa-span icon-116"></span> <?php break; 275 case '140': ?> <span class="fa-span icon-117"></span> <?php break; 276 case '141': ?> <span class="fa-span icon-118"></span> <?php break; 277 case '142': ?> <span class="fa-span icon-119"></span> <?php break; 278 case '143': ?> <span class="fa-span icon-120"></span> <?php break; 279 case '144': ?> <span class="fa-span icon-121"></span> <?php break; 280 case '145': ?> <span class="fa-span icon-122"></span> <?php break; 281 case '146': ?> <span class="fa-span icon-123"></span> <?php break; 282 case '147': ?> <span class="fa-span icon-124"></span> <?php break; 283 case '148': ?> <span class="fa-span icon-125"></span> <?php break; 284 case '149': ?> <span class="fa-span icon-126"></span> <?php break; 285 case '150': ?> <span class="fa-span icon-127"></span> <?php break; 286 case '151': ?> <span class="fa-span icon-128"></span> <?php break; 287 case '152': ?> <span class="fa-span icon-129"></span> <?php break; 288 case '153': ?> <span class="fa-span icon-130"></span> <?php break; 289 case '154': ?> <span class="fa-span icon-131"></span> <?php break; 290 case '155': ?> <span class="fa-span icon-132"></span> <?php break; 291 case '156': ?> <span class="fa-span icon-133"></span> <?php break; 292 case '157': ?> <span class="fa-span icon-134"></span> <?php break; 293 case '158': ?> <span class="fa-span icon-135"></span> <?php break; 294 case '159': ?> <span class="fa-span icon-136"></span> <?php break; 295 case '160': ?> <span class="fa-span icon-137"></span> <?php break; 296 case '161': ?> <span class="fa-span icon-138"></span> <?php break; 297 case '162': ?> <span class="fa-span icon-139"></span> <?php break; 298 case '163': ?> <span class="fa-span icon-140"></span> <?php break; 299 case '164': ?> <span class="fa-span icon-141"></span> <?php break; 300 case '165': ?> <span class="fa-span icon-142"></span> <?php break; 301 case '166': ?> <span class="fa-span icon-143"></span> <?php break; 302 case '167': ?> <span class="fa-span icon-144"></span> <?php break; 303 case '168': ?> <span class="fa-span icon-145"></span> <?php break; 304 case '169': ?> <span class="fa-span icon-146"></span> <?php break; 305 case '170': ?> <span class="fa-span icon-147"></span> <?php break; 306 case '171': ?> <span class="fa-span icon-148"></span> <?php break; 307 case '172': ?> <span class="fa-span icon-149"></span> <?php break; 308 case '173': ?> <span class="fa-span icon-150"></span> <?php break; 309 case '174': ?> <span class="fa-span icon-151"></span> <?php break; 310 case '175': ?> <span class="fa-span icon-152"></span> <?php break; 311 case '176': ?> <span class="fa-span icon-153"></span> <?php break; 312 case '177': ?> <span class="fa-span icon-154"></span> <?php break; 313 case '178': ?> <span class="fa-span icon-155"></span> <?php break; 314 case '179': ?> <span class="fa-span icon-156"></span> <?php break; 315 case '180': ?> <span class="fa-span icon-157"></span> <?php break; 316 case '181': ?> <span class="fa-span icon-158"></span> <?php break; 317 case '182': ?> <span class="fa-span icon-159"></span> <?php break; 318 case '183': ?> <span class="fa-span icon-160"></span> <?php break; 319 case '184': ?> <span class="fa-span icon-161"></span> <?php break; 320 case '185': ?> <span class="fa-span icon-162"></span> <?php break; 321 case '186': ?> <span class="fa-span icon-163"></span> <?php break; 322 case '187': ?> <span class="fa-span icon-164"></span> <?php break; 323 case '188': ?> <span class="fa-span icon-165"></span> <?php break; 324 case '189': ?> <span class="fa-span icon-166"></span> <?php break; 325 case '190': ?> <span class="fa-span icon-167"></span> <?php break; 326 case '191': ?> <span class="fa-span icon-168"></span> <?php break; 327 case '192': ?> <span class="fa-span icon-169"></span> <?php break; 328 328 } 329 329 -
scroll-to-top-button-awesome/trunk/inline-style.php
r1379220 r1410421 2 2 3 3 // get value from database 4 $get_from_database = get_option( 'scrollToTop_Options');5 6 $custom_css = '4 $get_from_database = get_option( 'scrollToTop_Options' ); 5 6 $custom_css = " 7 7 /* show button */ 8 @media screen and (max-width: ' . $get_from_database['visibility-max-width'] . 'px) {8 @media screen and (max-width: {$get_from_database['visibility-max-width']}px) { 9 9 .scrollToTopPlugin { 10 10 transform: scale(1.0); … … 12 12 } 13 13 /* hide button */ 14 @media screen and (max-width: ' . $get_from_database['visibility-min-width'] . 'px) {14 @media screen and (max-width: {$get_from_database['visibility-min-width']}px) { 15 15 .scrollToTopPlugin { 16 16 transform: scale(0); … … 21 21 .scrollToTopPlugin 22 22 { 23 width: ' . $get_from_database['scroll-bar-width']['width'] . ';23 width: {$get_from_database['scroll-bar-width']['width']}; 24 24 } 25 25 … … 27 27 .scrollToTopPlugin 28 28 { 29 height: ' . $get_from_database['scroll-bar-height']['height'] . ';29 height: {$get_from_database['scroll-bar-height']['height']}; 30 30 } 31 31 32 32 /* button border radius */ 33 33 .scrollToTopPlugin .scrollToTopPluginInner{ 34 border-radius: ' . $get_from_database['scroll-bar-border-radius']['padding-top'] . ' ' . $get_from_database['scroll-bar-border-radius']['padding-right'] . ' ' . $get_from_database['scroll-bar-border-radius']['padding-bottom'] . ' ' . $get_from_database['scroll-bar-border-radius']['padding-left'] . '; 34 border-radius: {$get_from_database['scroll-bar-border-radius']['padding-top']} 35 {$get_from_database['scroll-bar-border-radius']['padding-right']} 36 {$get_from_database['scroll-bar-border-radius']['padding-bottom']} 37 {$get_from_database['scroll-bar-border-radius']['padding-left']}; 35 38 } 36 39 37 40 /* button opacity */ 38 41 .scrollToTopPlugin .scrollToTopPluginInner{ 39 opacity: ' . $get_from_database['scroll-bar-opacity'] . ';42 opacity: {$get_from_database['scroll-bar-opacity']}; 40 43 } 41 44 42 45 /* fade duration */ 43 46 .scrollToTopPlugin{ 44 transition: opacity ' . $get_from_database['scroll-bar-fade-duration'] . 's ease, visibility ' . $get_from_database['scroll-bar-fade-duration'] . 's ease; 47 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 48 visibility {$get_from_database['scroll-bar-fade-duration']}s ease; 45 49 } 46 50 47 51 /* border */ 48 52 .scrollToTopPlugin .scrollToTopPluginInner{ 49 border-color: ' . $get_from_database['scroll-bar-border-setting']['border-color'] . ';50 border-style: ' . $get_from_database['scroll-bar-border-setting']['border-style'] . ';51 border-top-width: ' . $get_from_database['scroll-bar-border-setting']['border-top'] . ';52 border-right-width: ' . $get_from_database['scroll-bar-border-setting']['border-right'] . ';53 border-bottom-width: ' . $get_from_database['scroll-bar-border-setting']['border-bottom'] . ';54 border-left-width: ' . $get_from_database['scroll-bar-border-setting']['border-left'] . ';53 border-color: {$get_from_database['scroll-bar-border-setting']['border-color']}; 54 border-style: {$get_from_database['scroll-bar-border-setting']['border-style']}; 55 border-top-width: {$get_from_database['scroll-bar-border-setting']['border-top']}; 56 border-right-width: {$get_from_database['scroll-bar-border-setting']['border-right']}; 57 border-bottom-width: {$get_from_database['scroll-bar-border-setting']['border-bottom']}; 58 border-left-width: {$get_from_database['scroll-bar-border-setting']['border-left']}; 55 59 } 56 60 57 61 /* box shadow */ 58 62 .scrollToTopPlugin .scrollToTopPluginInner{ 59 box-shadow: ' . $get_from_database['button-box-shadow-horizontal'] . 'px ' . $get_from_database['button-box-shadow-vertical'] . 'px ' . $get_from_database['button-box-shadow-blur'] . 'px ' . $get_from_database['button-box-shadow-spread'] . 'px ' . $get_from_database['button-box-shadow-color'] . ' ' . $get_from_database['button-box-shadow-inset'] . '; 60 } 61 '; 63 box-shadow: {$get_from_database['button-box-shadow-horizontal']}px 64 {$get_from_database['button-box-shadow-vertical']}px 65 {$get_from_database['button-box-shadow-blur']}px 66 {$get_from_database['button-box-shadow-spread']}px 67 {$get_from_database['button-box-shadow-color']} 68 {$get_from_database['button-box-shadow-inset']}; 69 } 70 71 /* icons before */ 72 .scrollToTopPlugin i.fa:before, 73 .scrollToTopPlugin span.fa-span:before{ 74 transition: color 200ms ease !important 75 } 76 "; 62 77 // add the stylesheet 63 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css);78 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css ); 64 79 65 80 //---------------------------------------------------------------------------------------------------------- 66 81 67 82 // check if the horizontal align right 68 if ( $get_from_database['button-horizontal-align'] === 'right') {69 // custom css70 $custom_css_1 = '83 if ( $get_from_database['button-horizontal-align'] === 'right' ) { 84 // custom css 85 $custom_css_1 = ' 71 86 /* horizontal align right */ 72 87 .scrollToTopPlugin{ … … 74 89 } 75 90 '; 76 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_1);77 78 // check if the horizontal align left79 } else if ( $get_from_database['button-horizontal-align'] === 'left') {80 // custom css81 $custom_css_2 = '91 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_1 ); 92 93 // check if the horizontal align left 94 } else if ( $get_from_database['button-horizontal-align'] === 'left' ) { 95 // custom css 96 $custom_css_2 = ' 82 97 /* horizontal align right */ 83 98 .scrollToTopPlugin{ … … 86 101 } 87 102 '; 88 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_2);89 90 // check if the horizontal align center91 } else if ( $get_from_database['button-horizontal-align'] === 'center') {92 // custom css93 $custom_css_3 = '103 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_2 ); 104 105 // check if the horizontal align center 106 } else if ( $get_from_database['button-horizontal-align'] === 'center' ) { 107 // custom css 108 $custom_css_3 = ' 94 109 /* horizontal align right */ 95 110 .scrollToTopPlugin{ … … 99 114 } 100 115 '; 101 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_3);116 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_3 ); 102 117 } 103 118 … … 105 120 106 121 // check if the vertical align bottom 107 if ( $get_from_database['button-vertical-align'] === 'bottom') {108 // custom css109 $custom_css_4 = '122 if ( $get_from_database['button-vertical-align'] === 'bottom' ) { 123 // custom css 124 $custom_css_4 = ' 110 125 /* vertical align bottom */ 111 126 .scrollToTopPlugin{ … … 113 128 } 114 129 '; 115 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_4);116 117 // check if the vertical align top118 } else if ( $get_from_database['button-vertical-align'] === 'top') {119 // custom css120 $custom_css_5 = '130 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_4 ); 131 132 // check if the vertical align top 133 } else if ( $get_from_database['button-vertical-align'] === 'top' ) { 134 // custom css 135 $custom_css_5 = ' 121 136 /* vertical align top */ 122 137 .scrollToTopPlugin{ … … 125 140 } 126 141 '; 127 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_5);142 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_5 ); 128 143 } 129 144 130 145 //--------------------------------------------------------------------------------------------------- BUTTON LABEL TYPE 131 if ( $get_from_database['button-label-type'] === 'font-icons') {132 // custom css133 $custom_css_6 = '146 if ( $get_from_database['button-label-type'] === 'font-icons' ) { 147 // custom css 148 $custom_css_6 = ' 134 149 /* icons size */ 135 150 .scrollToTopPlugin .scrollToTopPluginInner .scrollToTopPlugin_label{ … … 137 152 } 138 153 '; 139 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_6);140 141 // text settings142 } else if ( $get_from_database['button-label-type'] === 'text') {143 // custom css144 $custom_css_7 = '154 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_6 ); 155 156 // text settings 157 } else if ( $get_from_database['button-label-type'] === 'text' ) { 158 // custom css 159 $custom_css_7 = ' 145 160 /* text font size */ 146 161 .scrollToTopPlugin .scrollToTopPluginInner .scrollToTopPlugin_label{ … … 155 170 } 156 171 '; 157 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_7);172 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_7 ); 158 173 } 159 174 … … 161 176 //-------------------------------------------------------------------------------------------------------------- BUTTON COLOR 162 177 // check if the color type option is color then apply color setting 163 if ( $get_from_database['color-type-change'] === 'color') {164 // custom css165 $custom_css_8 = '178 if ( $get_from_database['color-type-change'] === 'color' ) { 179 // custom css 180 $custom_css_8 = ' 166 181 /* button background color */ 167 182 .scrollToTopPlugin .scrollToTopPluginInner{ … … 177 192 } 178 193 '; 179 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_8);180 181 182 // check if the hover animation is fade then apply background hover css183 if ($get_from_database['scroll-bar-hover-animations'] === 'fade' or184 $get_from_database['scroll-bar-hover-animations'] === 'hvr-grow' or185 $get_from_database['scroll-bar-hover-animations'] === 'hvr-shrink' or186 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse' or187 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse-grow' or188 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse-shrink' or189 $get_from_database['scroll-bar-hover-animations'] === 'hvr-push' or190 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pop' or191 $get_from_database['scroll-bar-hover-animations'] === 'hvr-bounce-in' or192 $get_from_database['scroll-bar-hover-animations'] === 'hvr-bounce-out' or193 $get_from_database['scroll-bar-hover-animations'] === 'hvr-float' or194 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-horizontal' or195 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-vertical' or196 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-bottom' or197 $get_from_database['scroll-bar-hover-animations'] === 'hvr-buzz-out'198 ) {199 // custom css200 $custom_css_8_1 = '194 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_8 ); 195 196 197 // check if the hover animation is fade then apply background hover css 198 if ( $get_from_database['scroll-bar-hover-animations'] === 'fade' or 199 $get_from_database['scroll-bar-hover-animations'] === 'hvr-grow' or 200 $get_from_database['scroll-bar-hover-animations'] === 'hvr-shrink' or 201 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse' or 202 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse-grow' or 203 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pulse-shrink' or 204 $get_from_database['scroll-bar-hover-animations'] === 'hvr-push' or 205 $get_from_database['scroll-bar-hover-animations'] === 'hvr-pop' or 206 $get_from_database['scroll-bar-hover-animations'] === 'hvr-bounce-in' or 207 $get_from_database['scroll-bar-hover-animations'] === 'hvr-bounce-out' or 208 $get_from_database['scroll-bar-hover-animations'] === 'hvr-float' or 209 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-horizontal' or 210 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-vertical' or 211 $get_from_database['scroll-bar-hover-animations'] === 'hvr-wobble-bottom' or 212 $get_from_database['scroll-bar-hover-animations'] === 'hvr-buzz-out' 213 ) { 214 // custom css 215 $custom_css_8_1 = ' 201 216 /* button background hover color */ 202 217 .scrollToTopPlugin:hover .scrollToTopPluginInner, … … 207 222 } 208 223 '; 209 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_8_1);210 }211 212 //------------------------------------------------------- check if the color type option is gradient then apply gradient setting213 } else if ( $get_from_database['color-type-change'] === 'gradient') {214 // custom css215 $custom_css_9 = '224 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_8_1 ); 225 } 226 227 //------------------------------------------------------- check if the color type option is gradient then apply gradient setting 228 } else if ( $get_from_database['color-type-change'] === 'gradient' ) { 229 // custom css 230 $custom_css_9 = ' 216 231 /* button background color */ 217 232 .scrollToTopPlugin .scrollToTopPluginInner{ … … 223 238 } 224 239 '; 225 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_9);226 227 //---------------------------------------------------------------------------------- check if the color type option is image228 } else if ( $get_from_database['color-type-change'] === 'image') {229 // custom css230 $custom_css_10 = '240 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_9 ); 241 242 //---------------------------------------------------------------------------------- check if the color type option is image 243 } else if ( $get_from_database['color-type-change'] === 'image' ) { 244 // custom css 245 $custom_css_10 = ' 231 246 /* button background image */ 232 247 .scrollToTopPlugin .scrollToTopPluginInner{ … … 239 254 } 240 255 '; 241 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_10);256 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_10 ); 242 257 243 258 } … … 245 260 //--------------------------------------------------------------------------------------- text color 246 261 if ( 247 $get_from_database['color-type-change'] === 'color' or248 $get_from_database['color-type-change'] === 'gradient' or249 $get_from_database['color-type-change'] === 'image'262 $get_from_database['color-type-change'] === 'color' or 263 $get_from_database['color-type-change'] === 'gradient' or 264 $get_from_database['color-type-change'] === 'image' 250 265 ) { 251 // custom css252 $custom_css_8_1 = '266 // custom css 267 $custom_css_8_1 = ' 253 268 /* button text color */ 254 269 .scrollToTopPlugin .scrollToTopPluginInner{ … … 264 279 } 265 280 '; 266 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_8_1);281 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_8_1 ); 267 282 } 268 283 269 284 //------------------------------------------------------------------------- text shadow 270 if ( $get_from_database['button-label-type-hide'] === '1') {271 // custom css272 $custom_css_11 = '285 if ( $get_from_database['button-label-type-hide'] === '1' ) { 286 // custom css 287 $custom_css_11 = ' 273 288 /* button text shadow */ 274 289 .scrollToTopPlugin .scrollToTopPluginInner{ … … 276 291 } 277 292 '; 278 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_11);293 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_11 ); 279 294 280 295 } 281 296 282 297 //------------------------------------------------------------------------- button reveal effects 283 switch ( $get_from_database['scroll-bar-reveal-effects']) {284 // zoom285 case 'zoom':286 $custom_css_effects = ' 298 switch ( $get_from_database['scroll-bar-reveal-effects'] ) { 299 // zoom 300 case 'zoom': 301 $custom_css_effects = " 287 302 /* zoom animation */ 288 303 .scrollToTopPlugin{ … … 290 305 visibility: hidden; 291 306 transform: scale(0); 292 transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease; 307 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 308 visibility {$get_from_database['scroll-bar-fade-duration']}s ease, 309 transform {$get_from_database['scroll-bar-fade-duration']}s ease; 293 310 } 294 311 .scrollToTopPlugin.showHide{ … … 297 314 transform: scale(1.0); 298 315 } 299 ';300 break;301 302 // zoom from bottom left303 case 'zoom-from-bottom-left':304 $custom_css_effects = ' 316 "; 317 break; 318 319 // zoom from bottom left 320 case 'zoom-from-bottom-left': 321 $custom_css_effects = " 305 322 /* zoom animation */ 306 323 .scrollToTopPlugin{ … … 309 326 transform: scale(0); 310 327 transform-origin:left bottom; 311 transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease; 328 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 329 visibility {$get_from_database['scroll-bar-fade-duration']}s ease, 330 transform {$get_from_database['scroll-bar-fade-duration']}s ease; 312 331 } 313 332 .scrollToTopPlugin.showHide{ … … 316 335 transform: scale(1.0); 317 336 } 318 ';319 break;320 321 // zoom from top left322 case 'zoom-from-top-left':323 $custom_css_effects = ' 337 "; 338 break; 339 340 // zoom from top left 341 case 'zoom-from-top-left': 342 $custom_css_effects = " 324 343 /* zoom animation */ 325 344 .scrollToTopPlugin{ … … 328 347 transform: scale(0); 329 348 transform-origin:top left; 330 transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease; 349 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 350 visibility {$get_from_database['scroll-bar-fade-duration']}s ease, 351 transform {$get_from_database['scroll-bar-fade-duration']}s ease; 331 352 } 332 353 .scrollToTopPlugin.showHide{ … … 335 356 transform: scale(1.0); 336 357 } 337 ';338 break;339 340 // zoom from top right341 case 'zoom-from-top-right':342 $custom_css_effects = ' 358 "; 359 break; 360 361 // zoom from top right 362 case 'zoom-from-top-right': 363 $custom_css_effects = " 343 364 /* zoom animation */ 344 365 .scrollToTopPlugin{ … … 347 368 transform: scale(0); 348 369 transform-origin:top right; 349 transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease; 370 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 371 visibility {$get_from_database['scroll-bar-fade-duration']}s ease, 372 transform {$get_from_database['scroll-bar-fade-duration']}s ease; 350 373 } 351 374 .scrollToTopPlugin.showHide{ … … 354 377 transform: scale(1.0); 355 378 } 356 ';357 break;358 359 // zoom from bottom right360 case 'zoom-from-bottom-right':361 $custom_css_effects = ' 379 "; 380 break; 381 382 // zoom from bottom right 383 case 'zoom-from-bottom-right': 384 $custom_css_effects = " 362 385 /* zoom animation */ 363 386 .scrollToTopPlugin{ … … 366 389 transform: scale(0); 367 390 transform-origin:bottom right; 368 transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease; 391 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 392 visibility {$get_from_database['scroll-bar-fade-duration']}s ease, 393 transform {$get_from_database['scroll-bar-fade-duration']}s ease; 369 394 } 370 395 .scrollToTopPlugin.showHide{ … … 373 398 transform: scale(1.0); 374 399 } 375 ';376 break;377 378 // default379 default:380 $custom_css_effects = ' 400 "; 401 break; 402 403 // default 404 default: 405 $custom_css_effects = " 381 406 /* fade animation */ 382 407 .scrollToTopPlugin{ 383 408 opacity: 0; 384 409 visibility: hidden; 385 transition: opacity 600ms ease, visibility 600ms ease; 386 } 387 .scrollToTopPlugin.showHide{ 388 opacity: 1; 389 visibility: visible; 390 } 391 '; 392 } 393 wp_add_inline_style('front-stylesheet-scrollToTop', $custom_css_effects); 410 transition: opacity {$get_from_database['scroll-bar-fade-duration']}s ease, 411 visibility {$get_from_database['scroll-bar-fade-duration']}s ease; 412 } 413 .scrollToTopPlugin.showHide{ 414 opacity: 1; 415 visibility: visible; 416 } 417 "; 418 } 419 wp_add_inline_style( 'front-stylesheet-scrollToTop', $custom_css_effects ); 394 420 395 421 //------------------------------------------------------------------------- custom css apply 396 if ( isset($get_from_database['scroll-bar-custom-css'])) {397 wp_add_inline_style('front-stylesheet-scrollToTop', $get_from_database['scroll-bar-custom-css']);398 } 422 if ( isset( $get_from_database['scroll-bar-custom-css'] ) ) { 423 wp_add_inline_style( 'front-stylesheet-scrollToTop', $get_from_database['scroll-bar-custom-css'] ); 424 } -
scroll-to-top-button-awesome/trunk/readme.txt
r1410242 r1410421 91 91 * Improved some performance by optimize the css and js files. 92 92 93 = 3.1 = 94 * Some bugs fix 95 93 96 == Upgrade Notice == 94 97 -
scroll-to-top-button-awesome/trunk/section/animation.php
r1410242 r1410421 56 56 'id' => 'scroll-bar-fade-duration', 57 57 'type' => 'slider', 58 'title' => __( ' Fade Duration', 'scrollToTopButtonAwesome' ),59 'subtitle' => __( ' This is how long it takes for the transition to fade the button in and out.', 'scrollToTopButtonAwesome' ),58 'title' => __( 'All Animation Speed', 'scrollToTopButtonAwesome' ), 59 'subtitle' => __( 'Animation apply on text, button, background etc.', 'scrollToTopButtonAwesome' ), 60 60 'desc' => __( 'This Value is in seconds', 'scrollToTopButtonAwesome' ), 61 61 "default" => 2, … … 63 63 "step" => 1, 64 64 "max" => 120, 65 ), 66 // reveal effects 67 array( 68 'id' => 'scroll-bar-reveal-effects', 69 'type' => 'select', 70 'title' => __( 'Button Reveal Effect', 'scrollToTopButtonAwesome' ), 71 'subtitle' => __( 'This option is used to change the button reveal animation.', 'scrollToTopButtonAwesome' ), 72 "default" => 'fade', 73 'options' => array( 74 'fade' => __( 'Fade', 'scrollToTopButtonAwesome' ), 75 'zoom' => __( 'Zoom', 'scrollToTopButtonAwesome' ), 76 'zoom-from-bottom-left' => __( 'Zoom from bottom left', 'scrollToTopButtonAwesome' ), 77 'zoom-from-top-left' => __( 'Zoom from top left', 'scrollToTopButtonAwesome' ), 78 'zoom-from-top-right' => __( 'Zoom from top right', 'scrollToTopButtonAwesome' ), 79 'zoom-from-bottom-right' => __( 'Zoom from bottom right', 'scrollToTopButtonAwesome' ), 80 ), 65 81 ), 66 82 // visibility duration … … 76 92 "max" => 120, 77 93 ), 78 // reveal effects79 array(80 'id' => 'scroll-bar-reveal-effects',81 'type' => 'select',82 'title' => __( 'Button reveal effects', 'scrollToTopButtonAwesome' ),83 'subtitle' => __( 'This option is used to change the button reveal animation.', 'scrollToTopButtonAwesome' ),84 "default" => 'fade',85 'options' => array(86 'fade' => __( 'Fade', 'scrollToTopButtonAwesome' ),87 'zoom' => __( 'Zoom', 'scrollToTopButtonAwesome' ),88 'zoom-from-bottom-left' => __( 'Zoom from bottom left', 'scrollToTopButtonAwesome' ),89 'zoom-from-top-left' => __( 'Zoom from top left', 'scrollToTopButtonAwesome' ),90 'zoom-from-top-right' => __( 'Zoom from top right', 'scrollToTopButtonAwesome' ),91 'zoom-from-bottom-right' => __( 'Zoom from bottom right', 'scrollToTopButtonAwesome' ),92 ),93 ),94 94 ), 95 95 ) );
Note: See TracChangeset
for help on using the changeset viewer.