Changeset 2744168
- Timestamp:
- 06/17/2022 02:03:22 PM (4 years ago)
- Location:
- hellowoofy-com/trunk
- Files:
-
- 5 edited
-
assets/css/cards.css (modified) (1 diff)
-
endpoints/class-mws-custom-endpoints.php (modified) (3 diffs)
-
hellowoofy-com.php (modified) (2 diffs)
-
public/slider-html.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hellowoofy-com/trunk/assets/css/cards.css
r2742936 r2744168 1 1 .woocommerce-page img { 2 2 3 height: inherit; 3 } 4 5 } 6 4 7 #mwsBtn { 5 <?php echo esc_html( $icon_pos ); ?> 8 6 9 display: none; 10 7 11 position: fixed; 12 8 13 bottom: 20px; 9 z-index: 99; 14 15 z-index: 99999; 16 10 17 font-size: 18px; 18 11 19 border: none; 20 12 21 outline: none; 22 13 23 cursor: pointer; 14 } 24 25 } 26 15 27 a.max_slider_logo { 28 16 29 text-decoration: none !important; 17 } 30 31 } 32 18 33 .max_small_device{ 34 19 35 display: none; 20 } 36 37 } 38 21 39 .max_large_device{ 40 22 41 display: block; 23 } 42 43 } 44 24 45 .modal-header{ 46 25 47 border:none !important; 26 } 48 49 } 50 27 51 .modal-dialog { 52 28 53 width: 100%; 54 29 55 height: 100%; 30 } 56 57 } 58 59 60 31 61 32 62 33 63 .mws_modal_content_cont{ 64 34 65 width:100%; display: flex; 35 } 66 67 } 68 36 69 .modal_content_lft{ 70 37 71 width: 19%; 38 } 72 73 } 74 39 75 .modal_content_rght{ 76 40 77 width: 80%; 41 } 78 79 } 80 42 81 .modal_content_lft a{ 82 43 83 text-decoration: none; 84 44 85 position: fixed; 86 45 87 bottom: 20px; 88 46 89 z-index: 99; 90 47 91 border: none; 92 48 93 outline: none; 94 49 95 cursor: pointer; 50 } 96 97 } 98 51 99 .mwx_power_by{ 100 52 101 text-align: center; 102 53 103 font-size: 24px; 104 54 105 font-weight: 600; 106 55 107 line-height: 31px; 56 } 108 109 } 110 57 111 .modal_content_lft a img{ 112 58 113 width: 220px; 59 } 114 115 } 116 60 117 .modal_content_lft a:hover{ 118 61 119 text-decoration: none; 62 } 120 121 } 122 123 63 124 64 125 .entry-points { 126 65 127 display: flex; 128 66 129 overflow-y: visible; 130 67 131 scrollbar-width: none; 132 68 133 padding-right: 36px; 134 69 135 padding-left: 36px; 70 } 136 137 } 138 71 139 .entry-point-card-img { 140 72 141 object-fit: cover; 142 73 143 width: 100%; 144 74 145 height: 100%; 146 75 147 box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2); 148 76 149 border-radius: 16px; 77 } 150 151 } 152 78 153 .entry-point-card-container:after { 154 79 155 top: 0; 156 80 157 right: 0; 158 81 159 left: 0; 160 82 161 bottom: 0; 162 83 163 background: linear-gradient( 164 84 165 180deg, 166 85 167 rgba(0, 0, 0, 0.0001) 49.88%, 168 86 169 rgba(0, 0, 0, 0.9) 100% 170 87 171 ); 172 88 173 height: 100%; 174 89 175 width: 100%; 176 90 177 position: absolute; 178 91 179 border-radius: 16px; 180 92 181 content: ""; 93 } 182 183 } 184 94 185 .entry-point-arrow { 186 95 187 z-index: 1; 188 96 189 cursor: pointer; 190 97 191 background-repeat: no-repeat; 192 98 193 background-position: 50%; 194 99 195 background-size: 14px 24px; 196 100 197 border: 0px; 198 101 199 background-color: #000000; 200 102 201 outline: transparent; 202 103 203 height: 48px; 204 104 205 width: 48px; 206 105 207 min-width: 48px; 208 106 209 position: absolute; 210 107 211 border-radius: 50%; 212 108 213 padding: 0px; 214 109 215 box-shadow: 0px 0px 10px rgba(60, 64, 67, 0.3); 216 110 217 visibility: hidden; 218 111 219 background-image: url('data:image/svg+xml;charset=utf-8,<svg width="14" height="24" viewBox="0 0 14 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 2.82L8.65317 12L0 21.18L2.66397 24L14 12L2.66397 0L0 2.82Z" fill="white"/></svg>'); 112 } 220 221 } 222 223 113 224 114 225 .visible { 226 115 227 visibility: visible; 116 } 228 229 } 230 231 117 232 118 233 .entry-point-left-arrow { 234 119 235 left: 68px; 236 120 237 transform: rotate(-180deg); 121 } 238 239 } 240 241 122 242 123 243 .entry-point-right-arrow { 244 124 245 right: 68px; 125 } 246 247 } 248 249 126 250 127 251 .entry-point-card-container { 252 128 253 flex-shrink: 0; 254 129 255 cursor: pointer; 256 130 257 position: relative; 258 131 259 width: 250px; 260 132 261 height: 350px; 262 133 263 opacity: 1; 264 134 265 transform: scale(1); 266 135 267 visibility: visible; 268 136 269 transition: opacity 0.33s, transform 0.33s, visibility 0.33s; 137 } 270 271 } 272 138 273 .entry-point-card-container2 { 274 139 275 flex-shrink: 0; 276 140 277 cursor: pointer; 278 141 279 position: relative; 280 142 281 width: 220px; 282 143 283 height: 350px; 284 144 285 opacity: 1; 286 145 287 transform: scale(1); 288 146 289 visibility: visible; 290 147 291 transition: opacity 0.33s, transform 0.33s, visibility 0.33s; 148 } 292 293 } 294 149 295 .max_width{ 296 150 297 width: 220px !important; 298 151 299 height: 300px !important; 152 } 300 301 } 302 303 153 304 154 305 .entry-point-card-container.hidden { 306 155 307 opacity: 0; 308 156 309 visibility: hidden; 157 } 310 311 } 312 313 158 314 159 315 .background-cards { 316 160 317 display: flex; 318 161 319 align-items: center; 320 162 321 z-index: -1; 322 163 323 position: absolute; 324 164 325 top: 0; 326 165 327 right: 0; 328 166 329 bottom: 0; 330 167 331 transition: transform 0.2s; 332 168 333 transform: translate3d(0px, 0px, 0px); 169 } 334 335 } 336 337 170 338 171 339 .entry-point-card-container:hover .background-cards { 340 172 341 transform: translate3d(24px, 0px, 0px); 173 } 342 343 } 344 345 174 346 175 347 .background-card-1 { 348 176 349 background: #000000; 350 177 351 margin: 0px 2px; 352 178 353 width: 10px; 354 179 355 height: 368px; 356 180 357 border-top-right-radius: 16px; 358 181 359 border-bottom-right-radius: 16px; 182 } 360 361 } 362 363 183 364 184 365 .background-card-2 { 366 185 367 background: #4d4d4d; 368 186 369 width: 10px; 370 187 371 height: 336px; 372 188 373 border-top-right-radius: 16px; 374 189 375 border-bottom-right-radius: 16px; 190 } 376 377 } 378 379 191 380 192 381 .author-container { 382 193 383 position: absolute; 384 194 385 display: flex; 386 195 387 align-items: center; 388 196 389 top: 24px; 390 197 391 left: 24px; 198 } 392 393 } 394 395 199 396 200 397 .card-headline-container { 398 201 399 position: absolute; 400 202 401 bottom: 2px; 402 203 403 text-align: left; 404 204 405 padding: 24px; 406 205 407 z-index: 1; 206 } 408 409 } 410 207 411 .card-headline-container_admin { 412 208 413 position: absolute; 414 209 415 bottom: -24px; 416 210 417 padding: 24px; 418 211 419 z-index: 1; 420 212 421 right: -15px; 213 } 422 423 } 424 425 214 426 215 427 .entry-point-card-headline { 428 216 429 color: #fff; 430 217 431 font-weight: 700; 432 218 433 font-family: "Poppins", sans-serif; 434 219 435 text-transform: uppercase; 436 220 437 /* font-size: 24px;*/ 438 221 439 line-height: 26px; 222 } 440 441 } 442 443 223 444 224 445 .entry-point-card-subtitle { 446 225 447 color: #fff; 448 226 449 font-weight: 700; 450 227 451 font-family: "Noto Sans", sans-serif; 452 228 453 text-transform: uppercase; 454 229 455 font-size: 11px; 456 230 457 line-height: 15px; 231 } 458 459 } 460 461 232 462 233 463 .logo-container { 464 234 465 display: flex; 466 235 467 align-items: center; 468 236 469 justify-content: center; 470 237 471 width: 38px; 472 238 473 height: 38px; 474 239 475 position: relative; 476 240 477 margin-right: 10px; 241 } 478 479 } 480 481 242 482 243 483 .logo-ring { 484 244 485 width: 46px; 486 245 487 height: 46px; 488 246 489 background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' width='100%25' height='100%25' preserveAspectRatio='none'><defs><linearGradient id='gradient'><stop offset='0' style='stop-color:%232BAC95' /><stop offset='1' style='stop-color:%236EB6F9' /></linearGradient></defs><ellipse ry='100' rx='100' cy='110' cx='110' style='fill:none;stroke:url(%23gradient);stroke-width:6;' /></svg>"); 490 247 491 border-radius: 100%; 492 248 493 position: absolute; 249 } 494 495 } 496 497 250 498 251 499 .entry-point-card-logo { 500 252 501 border-radius: 100%; 502 253 503 width: 38px; 504 254 505 height: 38px; 506 255 507 filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.25)); 256 } 508 509 } 510 257 511 .main_cont{ 512 258 513 display:flex; flex-wrap: wrap; width:100%; 259 } 514 515 } 516 260 517 .single_story_cont { 518 261 519 width:25%; padding-top:20px; 262 } 520 521 } 522 263 523 .story_link{ 524 264 525 display:flex; 526 265 527 justify-content:center; 266 } 528 529 } 530 267 531 /* The Modal (background) */ 268 .modal { 532 533 .mws_modal { 534 269 535 display: none; /* Hidden by default */ 536 270 537 position: fixed; /* Stay in place */ 271 z-index: 1000; /* Sit on top */ 538 539 z-index: 999999; /* Sit on top */ 540 272 541 left: 0; 542 273 543 top: 0; 544 274 545 width: 100%; /* Full width */ 546 275 547 height: 100%; /* Full height */ 548 276 549 overflow: auto; /* Enable scroll if needed */ 550 277 551 background-color: rgb(0,0,0); /* Fallback color */ 552 278 553 background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ 279 } 554 555 } 556 557 280 558 281 559 /* Modal Content/Box */ 560 282 561 .modal-content { 562 283 563 background-color: #fefefe; /* 15% from the top and centered */ 564 284 565 padding: 20px; 566 285 567 border: 1px solid #888; 568 286 569 width: 100%; 570 287 571 min-height: -webkit-fill-available; 288 } 572 573 } 574 575 289 576 290 577 /* The mwsClose Button */ 578 291 579 .mwsClose { 580 292 581 color: #aaa; 582 293 583 float: right; 584 294 585 font-size: 28px; 586 295 587 font-weight: bold; 296 } 588 589 } 590 591 297 592 298 593 .mwsClose:hover, 594 299 595 .mwsClose:focus { 596 300 597 color: black; 598 301 599 text-decoration: none; 600 302 601 cursor: pointer; 303 } 602 603 } 604 605 304 606 305 607 @media only screen and (max-width: 1280px) { 608 306 609 .entry-point-card-container{ 610 307 611 width: 234px !important; 612 308 613 height: 350px !important; 309 } 310 } 614 615 } 616 617 } 618 311 619 @media only screen and (max-width: 1024px) { 620 312 621 .entry-point-card-container{ 622 313 623 width: 165px !important; 624 314 625 height: 230px !important; 315 } 626 627 } 628 316 629 .modal_content_lft a img{ 630 317 631 width: 180px; 318 } 632 633 } 634 319 635 .entry-point-card-container2 { 636 320 637 flex-shrink: 0; 638 321 639 cursor: pointer; 640 322 641 position: relative; 642 323 643 width: 220px; 644 324 645 height: 350px; 646 325 647 opacity: 1; 648 326 649 transform: scale(1); 650 327 651 visibility: visible; 652 328 653 transition: opacity 0.33s, transform 0.33s, visibility 0.33s; 329 } 330 } 654 655 } 656 657 } 658 331 659 @media only screen and (max-width: 920px) { 660 332 661 .single_story_cont { 662 333 663 width: 33%; 334 } 664 665 } 666 335 667 .max_large_device{ 668 336 669 display: none; 670 337 671 } 672 338 673 .max_small_device{ 674 339 675 display: block; 676 340 677 } 341 } 678 679 } 680 342 681 @media only screen and (max-width: 600px) { 682 343 683 .single_story_cont { 684 344 685 width: 49%; 345 } 686 687 } 688 346 689 .mwx_power_by{ 690 347 691 font-size: 16px; 348 } 692 693 } 694 349 695 .modal_content_lft a img{ 696 350 697 width: 100px; 351 } 352 353 } 698 699 } 700 701 702 703 } 704 354 705 @media only screen and (max-width: 420px) { 706 355 707 .entry-point-card-container { 708 356 709 width: 125px !important; 710 357 711 height: 170px !important; 358 } 712 713 } 714 359 715 .mwx_power_by{ 716 360 717 font-size: 12px; 361 } 718 719 } 720 362 721 .mws_modal_content_cont{ 722 363 723 display: block; 364 } 724 725 } 726 365 727 .modal_content_lft { 728 366 729 width: 100%; 730 367 731 text-align: center; 368 } 732 733 } 734 369 735 .modal_content_rght{ 736 370 737 width: 100%; 371 } 738 739 } 740 372 741 .modal_content_lft a { 742 373 743 text-decoration: none; 744 374 745 z-index: 99; 746 375 747 position: relative; 748 376 749 border: none; 750 377 751 outline: none; 752 378 753 cursor: pointer; 754 379 755 padding-left: 0px; 380 } 756 757 } 758 381 759 .entry-point-card-headline{ 760 382 761 display: none; 383 } 384 385 386 } 762 763 } 764 765 766 767 768 769 } 770 771 387 772 388 773 /* Mobile CSS rules here*/ 774 389 775 @media only screen and (hover: none) and (pointer: coarse) { 776 390 777 .entry-point-card-container { 778 391 779 /* width: 180px; 780 392 781 height: 300px; */ 393 } 782 783 } 784 785 786 394 787 395 788 396 789 .entry-point-card-container.hidden { 790 397 791 transform: scale(1.2); 398 } 792 793 } 794 795 399 796 400 797 .author-container { 798 401 799 top: 16px; 800 402 801 left: 16px; 403 } 802 803 } 804 805 404 806 405 807 .logo-container, 808 406 809 .entry-point-card-logo { 810 407 811 width: 20px; 812 408 813 height: 20px; 409 } 814 815 } 816 817 410 818 411 819 .logo-ring { 820 412 821 width: 26px; 822 413 823 height: 26px; 414 } 824 825 } 826 827 415 828 416 829 .entry-point-card-subtitle { 830 417 831 font-size: 10px; 832 418 833 line-height: 14px; 419 } 834 835 } 836 837 420 838 421 839 .entry-point-card-headline { 840 422 841 font-size: 18px; 842 423 843 line-height: 20px; 424 } 844 845 } 846 847 425 848 426 849 .card-headline-container { 850 427 851 padding: 16px; 428 } 852 853 } 854 855 429 856 430 857 .background-cards { 858 431 859 display: none; 432 } 433 } 860 861 } 862 863 } -
hellowoofy-com/trunk/endpoints/class-mws-custom-endpoints.php
r2742261 r2744168 158 158 $user_id = stristr( $key_decode, '=', true ); 159 159 $image_url = $request->get_param( 'journalPostFeaturedImage' ); 160 echo $image_url; 160 161 161 162 // create array for Post. … … 231 232 */ 232 233 public function max_woofy_insert_attachment( $image_url, $post_id = null, $user_id ) { 233 if ( ! function_exists( 'media_handle_upload' )234 && user_can( $user_id, 'edit_posts' ) ) {235 234 require_once ABSPATH . 'wp-admin/includes/media.php'; 236 235 require_once ABSPATH . 'wp-admin/includes/file.php'; … … 244 243 } 245 244 return wp_get_attachment_image_src( $img_id ); 246 } else { 247 return new WP_Error( 400, __( "Check 'media_handle_upload' failed", 'woofy' ) ); 248 } 245 249 246 } 250 247 -
hellowoofy-com/trunk/hellowoofy-com.php
r2742936 r2744168 4 4 * Plugin URI: https://hellowoofy.com/hellowoofy-wordpress-plugin/ 5 5 * Description: Create marketing content automatically using data science. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: HelloWoofy.com 8 8 * Author URI: https://hellowoofy.com … … 39 39 } 40 40 if ( ! defined( 'MWS_PLUGIN_VERSION' ) ) { 41 define( 'MWS_PLUGIN_VERSION', '1.0. 7' );41 define( 'MWS_PLUGIN_VERSION', '1.0.8' ); 42 42 } 43 43 -
hellowoofy-com/trunk/public/slider-html.php
r2742936 r2744168 25 25 } 26 26 $get_selected_pages = get_option( 'max_select_page' ); 27 if ( ! empty( $get_selected_pages ) ) {27 if ( ! empty( $get_selected_pages ) && ! empty( $check_enable ) ) { 28 28 if ( in_array( $post_slug, $get_selected_pages ) ) { 29 29 wp_enqueue_style( 'mws_pubilc_card_css' ); … … 57 57 <?php } ?> 58 58 59 <div id="mwsModal" class="m odal">59 <div id="mwsModal" class="mws_modal"> 60 60 <!-- Modal content --> 61 61 <div class="modal-content"> -
hellowoofy-com/trunk/readme.txt
r2742936 r2744168 5 5 Requires at least: 3.5 6 6 Tested up to: 6.0 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 Requires PHP: 5.6.20 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.