.htaccess000055500000000355150732266540006360 0ustar00 Order allow,deny Deny from all eb-admin.css000064400000147730150732266540006760 0ustar00/*================================================ * Plugin Name: Eagle Booking * Version: 1.1.5 * Author Name: Jomin Muskaj (Eagle-Themes) * Author URI: eagle-themes.com =================================================*/ label { color: #455b72; font-weight: 600; } .eb-pull-right { float: right; } .eb-admin-page .eb-form { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 50px; grid-row-gap: 50px; } .eb-admin-page .eb-form input, .eb-admin-page .eb-form select, .eb-admin-page .eb-form textarea, .eb-admin-page .eb-form .guestspicker { box-shadow: none; border-color: transparent; margin: 0; padding: 0; line-height: 20px; } .eb-admin-page .eb-form input, .eb-admin-page .eb-form textarea, .eb-admin-page .eb-form .guestspicker { padding: 15px 15px; display: block; width: 100%; border: 1px solid #e3e3e3; border-radius: 2px; box-shadow: none; outline: none; } .eb-admin-page .eb-form input:focus, .eb-admin-page .eb-form .guestspicker:focus { border-color: #d3d3d3; outline: none; box-shadow: none; } .eb-admin-page .eb-form .guestspicker { width: auto; } .eb-admin-page .eb-form select { padding: 0px 15px; height: 52px; min-width: 100%; outline: none; box-shadow: none; border: 1px solid #e3e3e3; } .eb-admin-page .eb-form select:focus, .eb-admin-page .eb-form select:active { outline: none; box-shadow: none; border-color: #d3d3d3; } .eb-admin-page .eb-form input.empty, .eb-admin-page .eb-form select.empty, .eb-admin-page .eb-form textarea.empty, .eb-admin-page .eb-form .guestspicker.empty { border-color: red; } .eb-admin-page .eb-form input[readonly], .eb-admin-page .eb-form select[readonly], .eb-admin-page .eb-form textarea[readonly] { background: #fff; } .eb-admin-page .eb-form label { display: block; color: #455b72; font-weight: 600; position: absolute; top: -12px; left: 10px; background: #fff; padding: 2px 5px; border-radius: 10px; } .eb-admin-page .form-group { position: relative; } .eb-admin-page .eb-form .column { width: 33%; float: left; display: inline-block; padding-right: 20px; box-sizing: border-box; } .eb-admin-page .eb-form table { width: 100%; } .eb-admin-page .status-button { padding-top: 10px; } .eb-admin-page .status-button button { background: #19a1f7; box-shadow: none; border: none; outline: none; padding: 12px 10px; cursor: pointer; color: #fff; font-size: 14px; text-transform: uppercase; font-weight: 600; width: 100%; -webkit-transition: .3s; transition: .3s; border-radius: 2px; } .eb-admin-page .status-button button.dark { background: #606060; } .eb-admin-page .status-button button:hover { background: #1a9aeb; } .eb-admin-page .status-button button.dark:hover { background: #333; } .eb-admin-page .status-button button.display-none { display: none; } /* Payment Details */ .eb-booking-details .inner { padding: 30px; border: 1px solid #e6e6e6; } .eb-booking-details .booking-details-header { display: grid; grid-template-columns: 1fr 5fr; column-gap: 20px; align-items: center; margin-bottom: 30px; } .eb-booking-details .booking-details-header .room-image img { max-width: 100%; border-radius: 50%; } .eb-booking-details .booking-details-header .room-title h2 { margin-top: 0; margin-bottom: 10px; color: #2e3339; font-size: 18px; font-weight: 700; } .eb-booking-details .booking-details-header .room-title span { color:#7e808c; font-size: 13px; } .eb-booking-details .booking-details-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 15px; margin-bottom: 30px; align-items: center; } .eb-booking-details .booking-details-form input, .eb-booking-details .booking-details-form select { border: 1px solid #cecece; border-radius: 2px; padding: 5px 24px 5px 10px; } .eb-booking-details .status-button { display: grid; grid-template-columns: 4fr 1fr; column-gap: 15px; align-items: center; } .eb-booking-details .status-button .delete-button { background: #e92828; padding: 5px 5px; color: #fff; font-size: 16px; line-height: 28px; border-radius: 2px; } .eb-booking-details .room-buttons { display: grid; grid-auto-flow: column; column-gap: 15px; margin-top: 30px; align-items: baseline; } .eb-booking-details .room-buttons a { background: #e6e6e6; color: #606060; text-decoration: none; text-align: center; padding: 10px 10px; font-size: 12px; font-weight: 500; cursor: pointer; outline: none; box-shadow: none; border-radius: 2px; transition: .3s; } .eb-booking-details .room-buttons a:hover { background: #e1e1e1; } .eb-booking-details .room-buttons a i { margin-right: 3px; font-size: 11px; } .eb-wrapper { position: relative; min-height: 600px; margin: 20px 20px 0 0; color: #383556; border: 1px solid #e5e5e5; background: #fff; border-radius: 8px; overflow: hidden; } .eb-wrapper .eb-admin-btn { display: inline-block; padding: 0 12px; line-height: 30px; color: #fff; font-weight: 500; background: #19a1f7; border-radius: 2px; text-decoration: none; box-shadow: none; border: none; font-size: 14px; transition: .3s; } .eb-wrapper .eb-admin-btn.eb-admin-btn-md { padding: 5px 20px; } .eb-wrapper .eb-admin-btn:hover, .eb-wrapper .eb-admin-btn:focus, .eb-wrapper .eb-admin-btn:active { background: #2c88c0; outline: none; box-shadow: none; cursor: pointer; } .eb-wrapper .eb-new-booking-btn { display: inline-block; padding: 0 16px; line-height: 34px; color: #fff; font-weight: 500; background: #19a1f7; border-radius: 2px; text-decoration: none; font-size: 14px; transition: .3s; } .eb-wrapper .eb-new-booking-btn:hover, .eb-wrapper .eb-new-booking-btn:focus, .eb-wrapper .eb-new-booking-btn:active { background: #2c88c0; outline: none; box-shadow: none; } .eb-wrapper .eb-admin-list-group table { border-collapse: collapse; border: 1px solid #e7ecf2; box-shadow: none; } .eb-wrapper .eb-admin-list-group table th { background: #f8f8f9; padding: 15px 20px; border-top: 1px solid #e7eaea; border-bottom: 1px solid #e7eaea; margin: 0; margin-top: 30px; } .eb-wrapper .eb-admin-list-group table tr { background: #fff; border-bottom: 1px solid #e7ecf2; } .eb-wrapper .updated { display: none; } .eb-no-bookings { text-align: center; padding: 150px 0; } .eb-no-bookings p { color: #455b72; font-size: 15px; } .eb-no-bookings a { color: #19a1f7; margin-top: 20px; font-size: 14px; text-decoration: none; border: 1px solid #19a1f7; border-radius: 2px; font-weight: 600; padding: 10px 25px; display: inline-block; transition: .3s; } .eb-no-bookings a:hover, .eb-no-bookings a:focus, .eb-no-bookings a:active { background: #19a1f7; outline: none; box-shadow: none; color: #fff; } .eb-no-bookings i { font-size: 42px; margin-bottom: 20px; color: #c6c6c6; } .eb-admin-warning { background: #fdf3e5; padding: 10px 10px; color: #6e6e6e; } .eb-airbnb, .eb-bookingcom { position: relative; display: flex; align-items: center; } .eb-airbnb:before { content: ''; width: -webkit-fill-available; background: url(../../../assets/images/admin/airbnb_icon.png); background-size: contain; background-repeat: no-repeat; height: 16px; } .eb-bookingcom:before { content: ''; width: -webkit-fill-available; background: url(../../../assets/images/admin/bookingcom_icon.png); background-size: contain; background-repeat: no-repeat; height: 16px; } .eb-popover-bookings .eb-bookingcom:before { width: 55px; margin-top: 5px; } /* days */ .cmb2GridRow { width: 80%; float: right; padding: 15px 0; padding-left: 15px; } .cmb2-id-eagle-booking-mtb-room-price-type { border-top: 1px solid #e9e9e9; } span.cmb2-metabox-description { display: block; } .col-day { width: 12.3%; display: inline-block; } input.disabled, input:disabled, select.disabled, select:disabled, textarea.disabled, textarea:disabled { background: rgb(241, 241, 241); border-color: rgba(222, 222, 222, .75); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); color: rgba(51, 51, 51, .5); } /* SELECT2 */ .select2-container { display: block !important; } .select2-container--default .select2-selection--single .select2-selection__rendered { margin-top: 5px !important; } .select2-container--default .select2-selection--single { height: 40px !important; } /* Checkbox */ .cmb2-radio-list.cmb2-list li { margin-bottom: 10px; } .cmb2-radio-list.cmb2-list li:last-child { margin-bottom: 0; } /* BOOKINGS */ .booking-search { background: #f8f8f9; padding: 10px 30px; border-top: 1px solid #e7eaea; border-bottom: 1px solid #e7eaea; margin: 0; margin-top: 30px; } .booking-search label { font-weight: 600; } .booking-search select { min-width: 200px; margin-left: 10px; border: 2px solid #e7eaea; padding: 4px 14px; border-radius: 4px; outline: none; box-shadow: none; } .booking-search select:focus { outline: none; box-shadow: none; border-color: #cecece; } .bookings-table { width: 100%; background-color: #ccc; border-collapse: collapse; font-size: 14px; line-height: 20px; box-sizing: border-box; display: block; overflow: auto; } .bookings-search { float: right; display: inline-block; } .bookings-search .search-box { width: 220px; transition: .3s; min-width: 200px; margin-left: 10px; border: 2px solid #e7eaea; padding: 4px 14px; border-radius: 4px; } .bookings-search .search-box:focus { width: 400px; outline: none; box-shadow: none; border: 2px solid #cecece; } .bookings-search .search-button { min-height: 38px; min-width: 100px; margin-left: 10px; margin-top: 1px; background: #19a1f7; color: #fff; font-weight: 600; border: 1px solid #19a1f7; border-radius: 4px; transition: .3s; } .bookings-search .search-button:hover, .bookings-search .search-button:active, .bookings-search .search-button:focus { background: #2c88c0; outline: none; box-shadow: none; color: #fff; border: 1px solid #19a1f7; } .bookings-table tr td { padding: 10px 30px; } .bookings-table .thead { width: 100%; font-weight: 500; border-bottom: 1px solid #ededed; } .bookings-table .tfoot { border-top: 1px solid #e1e1e1; border-bottom: 0px solid #e1e1e1; background-color: #fff; } .bookings-table tbody, .bookings-table tr { width: 100%; background: #fff; border-bottom: 1px solid #e7ecf2; } .bookings-table .tbody:last-child { border-bottom: 0; } .eb-admin input.empty, .eb-admin select.empty { border-color: red; } .eb-admin .eb-action-buttons .eb-edit-action, .eb-admin .eb-action-buttons .eb-delete-action, .eb-admin .eb-action-buttons .eb-cancel-action { width: 32px; height: 32px; border-radius: 50%; line-height: 32px; color: #909090; text-align: center; font-size: 14px; margin-right: 10px; display: inline-block; text-decoration: none; transition: .3s; border: 0; } .eb-admin .eb-action-buttons .eb-edit-action:hover, .eb-admin .eb-action-buttons .eb-delete-action:hover, .eb-admin .eb-action-buttons .eb-cancel-action:hover, .eb-admin .eb-action-buttons .eb-edit-action:active, .eb-admin .eb-action-buttons .eb-delete-action:active, .eb-admin .eb-action-buttons .eb-edit-action:focus, .eb-admin .eb-action-buttons .eb-delete-action:focus, .eb-admin .eb-action-buttons .eb-cancel-action:focus { outline: none; box-shadow: none; cursor: pointer; } .eb-admin .eb-action-buttons .eb-edit-action:hover { background: #eaf3f2; color: #26a39e; } .eb-admin .eb-action-buttons .eb-delete-action:hover { background: #fae7e6; color: #ce0e02; } .eb-admin .eb-action-buttons .eb-cancel-action:hover { background: #ebf4e3; color: #6c763a; } .eb-admin .switch { position: relative; display: inline-block; width: 40px; height: 22px; } .eb-admin .switch input { opacity: 0; width: 0; height: 0; } .eb-admin .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e5e5e5; -webkit-transition: .4s; transition: .4s; } .eb-admin .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 3px; background-color: white; -webkit-transition: .4s; transition: .4s; } .eb-admin input:checked + .slider { background-color: #19a1f7; } input:focus + .slider { box-shadow: 0 0 1px #19a1f7; } .eb-admin input:checked + .slider:before { -webkit-transform: translateX(16px); -ms-transform: translateX(16px); transform: translateX(16px); } /* Rounded sliders */ .eb-admin .slider.round { border-radius: 50px; } .eb-admin .slider.round:before { border-radius: 50%; } /* Tooltip */ [data-eb-tooltip] { position: relative; z-index: 2; cursor: pointer; border-bottom: 1px dotted #606060; padding-bottom: 2px; } [data-eb-tooltip]:before, [data-eb-tooltip]:after { visibility: hidden; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; pointer-events: none; } [data-eb-tooltip]:before { position: absolute; bottom: 100%; left: 50%; margin-bottom: 5px; margin-left: -100px; padding: 10px; width: 200px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background-color: #000; background-color: hsla(0, 0%, 20%, 0.9); color: #fcfcfc; content: attr(data-eb-tooltip); text-align: center; font-size: 12px; font-weight: normal; line-height: 1.4; letter-spacing: 0.5px; } [data-eb-tooltip]:after { position: absolute; bottom: 100%; left: 50%; margin-left: -5px; width: 0; border-top: 5px solid #000; border-top: 5px solid hsla(0, 0%, 20%, 0.9); border-right: 5px solid transparent; border-left: 5px solid transparent; content: " "; font-size: 0; line-height: 0; } [data-eb-tooltip]:hover:before, [data-eb-tooltip]:hover:after { visibility: visible; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100); opacity: 1; } .bookings-table tr:hover .contact-customer { display: inline-block; } .booking-status { padding: 3px 3px; border-radius: 2px; font-size: 13px; font-weight: 400; min-width: 120px; text-align: center; display: inline-block; } .booking-status.status-pending { background: #e97776; color: #90302f; } .booking-status.status-pending-payment { background: #ebdbb1; color: #8a7436; } .booking-status.status-completed { background: #c8e8d1; color: #379950; } .booking-status.status-canceled { background: #d82222; color: #f5f5f5; } /* EDIT BOOKING */ .postbox .title { border-bottom: 1px solid #eee; font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; } /* NEW DESIGN START */ .eb-booking-details-page { display: grid; grid-template-columns: 4fr 1fr; padding: 30px; grid-column-gap: 50px; } .eb-booking-details-page .booking-header { display: grid; grid-template-columns: 15% 50% 35%; margin-bottom: 40px; } .eb-booking-details-page .booking-title { margin-top: 0; margin-bottom: 10px; padding: 0; font-weight: 600; color: #606060; } .eb-booking-details-page h3 { font-weight: 600; color: #606060; } .eb-booking-details-page .action-button a { background: #e3e3e3; padding: 0 10px; display: inline-block; text-decoration: none; margin-left: 5px; line-height: 28px; text-align: center; font-size: 11px; font-weight: 600; border-radius: 2px; color: #455b72; cursor: pointer; } .eb-booking-details-page .action-button a:focus, .eb-booking-details-page .action-button a:hover { background: #d3d3d3; outline: none; box-shadow: none; } .eb-booking-details-page .action-button a i { margin-right: 3px; } .hotel-logo-print { display: none; } .eb-booking-details-page .booking-header:after { content: ''; display: block; width: 100%; clear: both; } .eb-booking-details-page .booking-price { margin-top: 30px; } .eb-booking-details-page .booking-price thead th { text-align: left; background: #f3f3f3; color: #455b72; font-weight: 600; padding: 6px 6px; } .eb-booking-details-page .booking-price td { padding: 6px 6px; } .eb-booking-details-page .booking-price td h4 { margin: 2px 0; } .eb-booking-details-page .btn.btn-delete { display: block; text-align: center; padding: 12px 10px; background: #ff4d4d; color: #fff; border-color: #ff4d4d; } .eb-booking-details-page .btn.btn-delete:focus, .eb-booking-details-page .btn.btn-delete:active, .eb-booking-details-page .btn.btn-delete:hover { outline: none; box-shadow: none; background: #ce0e02; color: #fff; } .eb-booking-details-page .update-mssg { border-left: 4px solid; border-radius: 2px; padding: 2px 20px; margin-bottom: 20px; } .eb-booking-details-page .update-mssg.success { border-color: #46b450; background: #eff9f1; } .eb-booking-details-page .update-mssg.error { border-color: #d94f4f; background: #f9e2e2; } /* New Booking Page */ .eb-new-booking-page { display: grid; grid-template-columns: 4fr 1fr; padding: 30px; grid-column-gap: 50px; } .eb-new-booking-page .eb-new-booking-service { background: #fff; border: 1px solid #e3e3e3; display: inline-block; margin-right: 10px; padding: 5px 15px; margin-bottom: 20px; border-radius: 1px; -webkit-transition: .2s; transition: .2s; } .eb-new-booking-page .eb-new-booking-service input { width: 15px; height: 15px; display: inline-block; margin-right: 8px; margin-top: 0; } .eb-new-booking-page .eb-new-booking-service label { display: inline-block; margin: 0; display: inline-block; margin: 0; position: relative; top: 0; left: 0; } /* NEW BOOKINGS PAGE */ .eagle-booking-stats { display: -webkit-box; display: flex; margin: 30px; } .eagle-booking-stats .stat-item { position: relative; width: 100%; margin-left: 20px; padding: 30px 20px; background: #19a1f7; border-radius: 4px } .eagle-booking-stats .stat-item:first-child { margin-left: 0; } .eagle-booking-stats .stat-item .stat-icon { position: absolute; right: 20px; top: 20%; font-size: 18px; width: 50px; height: 50px; line-height: 50px; text-align: center; border-radius: 50%; display: inline-block; background: #2eaaf9; color: #fff; } .eagle-booking-stats .stat-item .stat-title { font-size: 16px; font-weight: 600; color: #ffffff; line-height: 22px; padding-right: 2rem; margin-top: 5px; } .eagle-booking-stats .stat-item .stat-value { color: #ffffff; margin-top: 20px; font-size: 22px; font-weight: 600; } .eb-booking-line .room-title { margin: 0; } .eb-booking-line .room-title a { color: #606060; font-size: 17px; font-weight: normal; line-height: 24px; text-decoration: none; } .eb-booking-line .room-title a:hover, .eb-booking-line .room-title a:active, .eb-booking-line .room-title a:focus { outline: none; box-shadow: none; } .eb-booking-line .room-details .room-branch { color: #999; font-size: 13px; margin-top: 2px; } .eb-pagination { display: block; text-align: right; margin: 30px 30px; } .eb-pagination li { display: inline-block; margin-left: 10px; margin-bottom: 0; } .eb-pagination li a { background: #fff; line-height: 30px; color: #858a99; font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 12px; border: 1px solid #e7eaea; } .eb-pagination li.current a, .eb-pagination li a:active, .eb-pagination li a:focus, .eb-pagination li a:hover { background: #f8f8f9; outline: none; box-shadow: none; } .bookings-pagination .number { margin-left: 10px; } .bookings-pagination .number a { background: #fff; line-height: 30px; color: #858a99; font-size: 14px; text-decoration: none; padding: 5px 10px; border: 1px solid #ccc; } .bookings-pagination .number.active a { background: #e5e5e5; } .bookings-pagination .number a:hover, .bookings-pagination .number a:active, .bookings-pagination .number a:focus { outline: none; box-shadow: none; } .eb-booking-details-page th { text-align: left; } /* Print booking details */ @media print { #adminmenumain, #wpadminbar, #wpfooter, .room-image, .action-button, .wp-heading-inline, .page-title-action, .booking-status, .notice, .eb-admin-header, .eb-admin-title, .room-buttons, .status-button, .eb-booking-details, .booking-price p { height: 0; display: none; visibility: hidden; padding: 0; margin: 0; } .eb-wrapper, .eb-booking-details .inner { border: 0; padding: 0; margin: 0; } .eb-booking-details-page { display: block; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; } .eb-booking-details-page .eb-main-details, .eb-admin-page .box { margin: 0; border: 0; padding: 0 30px; } .eb-booking-details-page p { margin-top: 0; } .eb-booking-details-page .booking-header { display: block; margin-bottom: 0; } .eb-booking-details-page .booking-title { font-size: 18px; } .eb-booking-details-page .room-details { display: inline-block; float: left; } .hotel-logo-print { display: block; margin-left: 60px; font-size: 22px; font-weight: 600; } .eb-admin-page .eb-form { display: grid; grid-template-columns: 1fr 1fr; grid-row-gap: 15px; } .eb-admin-page .eb-form input, .eb-admin-page .eb-form textarea, .eb-admin-page .eb-form .guestspicker { padding: 0; height: 20px; margin-top: 0; } .eb-admin-page .eb-form label { padding-left: 0; padding-bottom: 0; margin-bottom: 0; position: relative; left: 0; } .eb-booking-details-page .booking-header .booking-image { display: none; } .eb-booking-details-page .form-group { padding-bottom: 0; margin-bottom: 5px; } .eb-booking-details-page .form-group input, .eb-booking-details-page .form-group textarea { display: inline-block; padding: 0; border: none; } .eb-booking-details-page .form-group textarea { min-height: 50px; resize: none; } .eb-booking-details-page .booking-price { margin-top: 0; margin-bottom: 0; padding: 0; } .eb-booking-details-page .payment-details { margin-top: 0; margin-left: 0; } .eb-booking-details-page .payment-details .inside { display: grid; grid-template-columns: auto auto auto; grid-template-rows: 50px; grid-column-gap: 50px; } .eb-booking-details-page .payment-details select { padding: 0; height: auto; border: 0; -moz-appearance: none; -webkit-appearance: none; } .eb-booking-details-page .payment-details .status-button { display: none; } .eb-booking-details-page .title { border-bottom-color: transparent; padding-bottom: 0; } .eb-booking-details-page th p { padding: 0; line-height: 0; } #wpcontent { margin-left: 0; padding-left: 0; } } @page { size: auto; margin: 0mm; } /* METABOX */ #eagle_booking_mtb_room_meta .cmb-tab-nav { background: #f7f8f9; } #eagle_booking_mtb_room_meta .cmb-tabs ul.cmb-tab-nav li a { padding: 13px 10px; border-color: #e9e9e9; border-top: 0; border-right: 0; border-left: 0; font-size: 13px; } #eagle_booking_mtb_room_meta .cmb-tabs ul.cmb-tab-nav li.cmb-tab-active a { background: #e9e9e9; color: #606060; border-color: #e9e9e9; font-size: 13px; } #eagle_booking_mtb_room_meta .cmb-tabs ul.cmb-tab-nav:after { background-color: #f7f8f9; } #eagle_booking_mtb_room_meta .cmb2GridRow { padding: 8px 15px; } #eagle_booking_mtb_room_meta .cmb-th label { margin-top: 6px; color: #555; font-size: 12px; } .cmb2-switch { margin-right: 15px; margin-bottom: 0px !important; float: left; } .cmb-type-group .cmb-row, .cmb2-postbox .cmb-row { display: block; clear: both; padding-bottom: 8px !important; padding-top: 5px !important; margin-bottom: 0px !important; } .cmb-type-radio-image .cmb2-radio-list li { margin-right: 10px; } /* CMB2 ICONS */ .fip-icons-container i.fas, .selected-icon i.fas { font-family: "Font Awesome 5 Free" !important; font-weight: 900; } #eagle_booking_mtb_room_meta.cmb2-postbox .cmb-tabs-panel:first-of-type { display: none; } .fip-icons-container i.fab, .selected-icon i.fab { font-family: "Font Awesome 5 Brands"; } .cmb2-wrap input[readonly] { background: #fff; } .cmb2-postbox .cmb2-wrap input { font-size: 14px; max-width: 100%; padding: 0px 10px !important; min-height: 15px; min-width: 400px; position: relative; } .cmb2-postbox .cmb2-wrap input[type=checkbox], .cmb2-postbox .cmb2-wrap input[type=radio] { margin: 8px 0px 9px 0px; padding: 0; min-width: 10px; } .cmb2-postbox .cmb2-wrap select { max-width: 400px; margin-top: 0; } .cmb2-postbox .cmb2-wrap input[type="checkbox"]:before { margin-left: -10px; } .cmb2-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__display { padding-left: 20px; } .cmb2-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { top: 4px; margin-left: 5px; border-right: 0; } .cmb2-wrap .select2-container--default .select2-search--inline .select2-search__field { display: none; } .cmb2-postbox .select2-container { max-width: 400px; display: inline-block !important; } .cmb2-postbox p.cmb2-metabox-description { color: #757575; font-style: italic; margin: 0; padding-top: 0.5em; display: inline-block; margin-left: 10px; } .cmb2-postbox .cmb2-wrap .cmb2GridRow input { min-width: 70px; max-width: 70px; display: inline-block; } .cmb2-postbox .cmb-tabs span.cmb2-metabox-description { display: inline-block; line-height: 27px; font-size: 11px; } /* Conditioal CMB2 */ .cmb2-postbox .cmb-row.field_is_hidden { display: none !important; } .cmb2-media-status .img-status .cmb2-remove-wrapper .cmb2-remove-file-button { background: url(../../../include/metabox/cmb2/images/ico-delete.png); } .select2-container--default .select2-selection--multiple .select2-selection__choice { padding: 5px 10px !important; width: 100%; background: #f5f5f5 !important; border: 1px solid #d5d5d5 !important; border-radius: 1px !important; } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-right: 10px !important; } .redux-container .select2-container--default .select2-selection--multiple .select2-selection__choice { width: auto; } .redux-container .select2-container--default .select2-selection--multiple .select2-selection__clear { display: none; } .redux-container .redux-main .redux-field-container { padding: 20px 0; max-width: 750px; } .redux-container-sortable .checkbox-container label { margin-top: -2px !important; } /* -------------------------------------------------------------------------- * DATERANGEPICKER & GUESTS PICKER ---------------------------------------------------------------------------*/ .daterangepicker { color: #808080; } .daterangepicker table { border-spacing: 0; } .eb-datepicker.form-control { display: block; cursor: pointer; } .eb-datepicker.form-control[readonly] { background: #fff; } .daterangepicker.dropdown-menu { margin-top: 0; padding: 10px; border: 1px solid #efefef; box-shadow: 0 12px 26px 0 rgba(178, 178, 178, .13); border-radius: 2px; } .daterangepicker:before { border-bottom: 7px solid #efefef; z-index: 9; } .daterangepicker .calendar .calendar-title { margin: 5px 0; color: #b5bec4; font-weight: 500; font-size: 14px; text-transform: uppercase; } .daterangepicker .calendar td { width: 35px; height: 35px; font-weight: 600; line-height: 17px; border: 0; } .daterangepicker .calendar td.in-range { background: rgba(25, 161, 247, 0.5); color: #fff; } .daterangepicker .calendar td.wrong-month { visibility: hidden; } .daterangepicker .calendar td.start-date, .daterangepicker .calendar td.active, .daterangepicker .calendar td.active:hover { background: #19a1f7; position: relative; color: #fff; } .daterangepicker td.start-date.end-date { border-radius: 0; } .daterangepicker .calendar td.end-date { background: #19a1f7; color: #fff; } .daterangepicker .calendar td.disabled, .daterangepicker .calendar option.disabled { color: #ccc; text-decoration: none; } .daterangepicker .calendar th { font-weight: 600; line-height: 30px; } .daterangepicker .calendar th.month { font-weight: 800; } .daterangepicker_input { display: none; } .daterangepicker label { color: #999; font-weight: 500; font-size: 14px; text-transform: uppercase; } .daterangepicker label a { margin-left: 5px; color: #999; } /* Guests Picker*/ .guestspicker { line-height: 28px; cursor: pointer; } .eb-guestspicker .eb-guestspicker-content { position: absolute; width: 238px; margin-top: 0; padding: 15px; visibility: hidden; opacity: 0; background: #fff; border: 1px solid #efefef; color: #858a99; box-shadow: 0 12px 26px 0 rgba(178, 178, 178, .13); border-radius: 2px; z-index: 99; } .eb-guestspicker.active .eb-guestspicker-content { visibility: visible; opacity: 1; } .eb-guestspicker .eb-guestspicker-content:before { top: -7px; border-right: 7px solid transparent; border-left: 7px solid transparent; border-bottom: 7px solid #efefef; position: absolute; display: inline-block; content: ''; } .eb-guestspicker .guests-buttons { display: -webkit-box; display: flex; align-items: center; margin-bottom: 20px; } .eb-guestspicker .guests-buttons:last-child { margin-bottom: 0; } .eb-guestspicker-content .qtyButtons:first-child { margin-top: 8px } .eb-guestspicker-content .qtyButtons:last-child { margin-bottom: 3px } .eb-guestspicker .guests-button { margin-left: auto; margin-top: 5px; } .eb-guestspicker .guests-button input { outline: 0; font-size: 15px; text-align: center; width: 30px; padding: 5px; background: transparent; border: 0; box-shadow: none; pointer-events: none; display: inline-block; } .eb-guestspicker .description label { display: block; top: 0; left: 0; position: relative; padding: 0; margin-bottom: 5px; } .eb-guestspicker .ages { font-size: 12px; line-height: 12px; } .eb-guestspicker .plus, .eb-guestspicker .minus { width: 32px; height: 32px; line-height: 32px; font-size: 10px; background: #fafafa; border: 1px solid #e3e3e3; display: inline-block; text-align: center; cursor: pointer; position: relative; } .eb-guestspicker .plus:hover, .eb-guestspicker .minus:hover { background: #efefef; } .eb-guestspicker .plus:active, .eb-guestspicker .minus:active { box-shadow: rgb(255, 255, 255) 0px 0px 0px 4px, rgb(113, 113, 113) 0px 0px 0px 5px, rgba(255, 255, 255, 0.5) 0px 0px 0px 6px !important; -webkit-transition: box-shadow 0.2s ease 0s; transition: box-shadow 0.2s ease 0s; } .eb-guestspicker .plus::before, .eb-guestspicker .minus::before { font-family: "Font Awesome 5 Free"; font-weight: 600; } .eb-guestspicker .plus:before { content: "\f067" } .eb-guestspicker .minus:before { content: "\f068" } /* Responsive */ @media (max-width: 1919.98px) { .eagle-booking-stats .stat-item .stat-icon { top: 10px; right: 10px; font-size: 16px; width: 40px; height: 40px; line-height: 40px; } .eagle-booking-stats .stat-item .stat-title { font-size: 16px; } .eagle-booking-stats .stat-item .stat-value { font-size: 22px; } } @media (max-width: 1599.98px) { .eb-booking-details-page .booking-header { grid-template-columns: 20% 45% 35%; } .eb-booking-details-page .action-button a { margin-bottom: 10px; } } @media (max-width: 1199.98px) { .eagle-booking-stats .stat-item .stat-icon { top: 5px; right: 5px; font-size: 14px; width: 30px; height: 30px; line-height: 30px; } .eagle-booking-stats .stat-item .stat-title { font-size: 14px; } .eagle-booking-stats .stat-item .stat-value { font-size: 18px; } .eb-booking-details-page { grid-template-columns: 70% 30%; } .eb-booking-details-page .booking-header { grid-template-columns: 25% 40% 35%; } .eb-booking-details-page .action-button a { white-space: nowrap; max-width: 8px; overflow: hidden; } .eb-admin-page .eb-form { grid-template-columns: auto auto; } .bookings-table { display: block; max-width: -moz-fit-content; max-width: fit-content; margin: 0 auto; overflow-x: auto; white-space: nowrap; } } @media (max-width: 991.98px) { .eb-booking-details-page .booking-header { grid-template-columns: 35% 35% 30%; } .eagle-booking-stats { max-width: -moz-fit-content; margin: 0 auto; overflow-x: auto; white-space: nowrap; } .bookings-search, .booking-search label, .booking-search select { display: block; width: 100%; max-width: 100%; margin-left: 0; float: none; margin-top: 10px; } .booking-search form { display: flex; justify-content: space-between; } .bookings-search .search-box { margin-left: 0; width: 80%; } .eb-booking-details-page, .eb-new-booking-page { display: block; } } #adminmenu .toplevel_page_eagle_bookings .wp-menu-image img { opacity: 1; } /* Calendar View */ .eb-calendar-view { padding: 30px; min-height: 600px; overflow-y: scroll; } .eb-calendar-view .calendar-month { text-align: center; padding: 25px; background: #fff; border-bottom: 0; } .eb-calendar-view .calendar-month span { display: inline-block; margin-right: 20px; } .eb-calendar-view .calendar-month button { cursor: pointer; border: 1px solid #e5e5e5; color: #606060; font-size: 12px; width: 25px; height: 25px; border-radius: 4px; } .eb-calendar-view .calendar-days { width: 100%; border-collapse: collapse; background: #fff; } .eb-calendar-view th, .eb-calendar-view td { border: 1px solid #e5e5e5; padding: 15px 5px; font-weight: normal; } /* .eb-calendar-view th:first-child, .eb-calendar-view td:first-child { border-left: none; } .eb-calendar-view th:last-child, .eb-calendar-view td:last-child { border-right: none; } */ .eb-calendar-view td.eb-room-booked:hover, .eb-calendar-view td.eb-room-booked.open { background: #ebebeb; } .eb-calendar-view .calendar-day span { display: block; margin-bottom: 5px; color: #999; } .eb-calendar-view .calendar-day span strong { color: #606060; } .eb-calendar-view .calendar-room .room-title { padding-left: 15px; font-size: 12px; font-weight: 500; } .eb-calendar-view .calendar-room .room-title h3 { font-size: 14px; margin-bottom: 2px; } .eb-calendar-view .calendar-room .room-title a { text-decoration: none; color: #606060; position: relative; } .eb-calendar-view .room-qnt { display: inline-block; top: -5px; margin-left: 5px; margin-right: 2px; background: #19a1f7; border-radius: 2px; width: 16px; height: 16px; line-height: 16px; text-align: center; color: #fff; font-size: 12px; font-weight: normal; } .eb-calendar-view .calendar-bookings-footer .room-qnt { width: 10px; height: 10px; } .eb-calendar-view .calendar-room .room-title a:hover, .eb-calendar-view .calendar-room .room-title a:focus, .eb-calendar-view .calendar-room .room-title a:active { color: #303030; outline: none; box-shadow: none; } .eb-calendar-view .calendar-room .room-title .room-branch { color: #999; font-size: 12px; margin-top: 2px; } .eb-room-availability { position: relative; } .eb-room-availability:after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; margin-left: auto; margin-right: auto; left: 0; right: 0; top: 0; bottom: 0; margin-top: auto; margin-bottom: auto; text-align: center; } .eb-room-still-available, .eb-room-not-available { cursor: pointer; } .eb-room-still-available:after { background: #e59647; } .eb-room-not-available:after { background: #dd3333; } .eb-room-blocked:after { background: #505050; } .calendar-bookings-footer { display: flex; padding-top: 20px; justify-content: space-between; align-items: center; } .calendar-bookings-footer ul { display: inline-block; } .availability-calendar-list-availability { margin-top: 20px; } .availability-calendar-list-availability li { display: inline-block; font-size: 14px; margin-right: 15px; } .availability-calendar-list-availability li:last-child { margin-right: 0; } .availability-calendar-list-availability li span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; } .availability-calendar-list-availability li span.available { background: #e59647; } .availability-calendar-list-availability li span.not-available { background: #dd3333; } .availability-calendar-list-availability li span.blocked { background: #505050; } /* Calendar Booking Status */ .eb-calendar-booking-status { padding: 2px 5px; background: #606060; color: #fff; border-radius: 2px; font-size: 12px; margin-right: 10px; } /* ------------------------------------------------------------------- */ /* EB BOOKINGS CALENDAR POPOVER ---------------------------------------------------------------------- */ .eb-popover { position: absolute; width: 450px; box-sizing: border-box; z-index: 99; display: none; padding-bottom: 10px; } .eb-popover .inner { width: 100%; min-height: 300px; border: 1px solid #eaedf2; border-radius: 4px; box-shadow: 0 0 20px rgba(0, 0, 0, .2); background: #fff; } .eb-popover.right .inner:after { content: ''; border: 7px solid transparent; border-right-color: #f5f5f5; display: block; width: 0; height: 0; bottom: auto; left: -12px; top: 18px; position: absolute; } .eb-popover.left .inner:after { content: ''; border: 7px solid transparent; border-left-color: #f5f5f5; display: block; width: 0; height: 0; bottom: auto; right: -14px; top: 18px; position: absolute; } .eb-popover .inner h2 { margin-top: 0; font-size: 14px; line-height: 20px; color: #303030; text-align: center; padding: 14px; margin-bottom: 0; border-bottom: 1px solid #ededed; background: #f5f5f5; } .eb-popover .inner #content { overflow: auto; min-height: 250px; } .eb-popover .eb-popover-bookings { width: 100%; border-collapse: collapse; background: #fff; } .eb-popover .eb-popover-bookings tr { border-bottom: 1px solid #e7ecf2; font-weight: normal; } .eb-popover .eb-popover-bookings tr th, .eb-popover .eb-popover-bookings tr td { padding: 8px 10px; } .eb-popover .eb-popover-bookings tr th { text-align: left; color: #606060; font-weight: 600; } .eb-popover .inner .action-icon { text-decoration: none; color: #606060; width: 24px; height: 24px; display: inline-block; text-align: center; line-height: 24px; } .eb-popover .inner .action-icon:focus, .eb-popover .inner .action-icon:hover, .eb-popover .inner .action-icon:active { outline: none; box-shadow: none; background: #ededed; border-radius: 50%; } .eb-popover .inner .action-icon i { font-size: 11px; } .eb-popover .eb-popover-bookings .status { display: inline-block; width: 100%; height: 10px; border-radius: 2px; margin-right: 5px; } .eb-popover .eb-popover-bookings .status.pending { background: #e97776; } .eb-popover .eb-popover-bookings .status.pending-payment { background: #d8c490; } .eb-popover .eb-popover-bookings .status.completed { background: #c8e8d1; } .eb-popover .inner .popup-footer { border-top: 1px solid #f3f3f3; padding: 0 15px; text-align: center; } .eb-popover .inner .popup-footer .booking-status-explanation li { display: inline-block; margin-right: 15px; margin-bottom: 0; } .eb-popover .inner .popup-footer .booking-status-explanation .status { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; } .eb-popover .inner .popup-footer .booking-status-explanation .status.pending { background: #e97776; } .eb-popover .inner .popup-footer .booking-status-explanation .status.pending-payment { background: #d8c490; } .eb-popover .inner .popup-footer .booking-status-explanation .status.completed { background: #c8e8d1; } /* ------------------------------------------------------------------- */ /* EB BOOKINGS CALENDAR POPOVER ---------------------------------------------------------------------- */ #eb-loader { animation: animate 1.5s linear infinite; clip: rect(0, 80px, 80px, 40px); height: 80px; width: 80px; position: absolute; left: calc(50% - 40px); top: calc(50% - 40px); } @keyframes animate { 0% { transform: rotate(0deg) } 100% { transform: rotate(220deg) } } #eb-loader:after { animation: animate2 1.5s ease-in-out infinite; clip: rect(0, 80px, 80px, 40px); content: ''; border-radius: 50%; height: 80px; width: 80px; position: absolute; } @keyframes animate2 { 0% { box-shadow: inset #1dc1f8 0 0 0 3px; transform: rotate(-140deg); } 50% { box-shadow: inset #1dc1f8 0 0 0 3px; } 100% { box-shadow: inset #1dc1f8 0 0 0 3px; transform: rotate(140deg); } } /* -------------------------------------------------------------------------- * EB ADMIN HEADER ---------------------------------------------------------------------------*/ .eb-admin-header { display: grid; padding: 20px 30px; grid-template-columns: 1fr 1fr; align-items: center; } .eb-admin-header .eb-admin-brand { display: grid; grid-template-columns: 50px 1fr; align-items: center; } .eb-admin-header .eb-admin-brand .eb-admin-logo { background: #19a1f7; width: 40px; height: 40px; border-radius: 4px; text-align: center; outline: none; box-shadow: none; overflow: hidden; position: relative; } .eb-admin-header .eb-admin-brand .eb-admin-logo img { height: 26px; display: block; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } .eb-admin-header .eb-admin-brand .eb-admin-slogan { vertical-align: bottom; } .eb-admin-header .eb-admin-brand .eb-admin-slogan span { display: block; font-size: 15px; line-height: 20px; color: #909090; font-weight: 500; } .eb-admin-header .eb-admin-help { text-align: right; } .eb-admin-header .eb-admin-help a { outline: none; box-shadow: none; } .eb-admin-header .eb-admin-help i { font-size: 22px; color: #bebebe; padding: 5px; border: 1px solid #dedede; border-radius: 50%; transition: .3s; } .eb-admin-header .eb-admin-help i:hover { color: #aeaeae; border: 1px solid #bebebe; } .eb-admin-title { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #f5f3f0; padding: 20px 30px; border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; } .eb-admin-title .eb-admin-new-booking { text-align: right; } .eb-admin-title h1 { font-size: 22px; color: #404040; position: relative; } .eb-admin-title h1 .heading-label { font-size: 12px; line-height: 14px; position: absolute; top: -5px; margin-left: 5px; background: #ff385c; color: #fff; padding: 2px 10px 4px 10px; border-radius: 4px; } .eb-admin-dashboard-inner { padding: 30px; } #add-post-type-eagle_rooms { display: block !important; } /* EB Dashboard */ .eb-admin-dashboard .eb-license { max-width: 750px; } .eb-admin-dashboard .eb-license-form { display: flex; justify-content: space-between; } .eb-admin-dashboard .eb-license-form label { display: block; margin-bottom: 10px; margin-top: 2px; } .eb-admin-dashboard .eb-license-form input { min-width: 400px; height: 50px; border: 1px solid #c5c5c5; } .eb-admin-dashboard .eb-license-activated { color: #85c462; font-weight: 600; } .eb-admin-dashboard .eb-admin-notice { display: flex; align-items: center; border: 1px solid #dfdfdf; background: #fff; padding: 10px; margin-bottom: 30px; border-radius: 2px; color: #3c434a; margin-left: 0; margin-top: 20px; } .eb-admin-dashboard .eb-admin-notice { border-color: #daf3ec; background: #f1faf8; } .eb-admin-dashboard .eb-admin-notice i { font-size: 22px; line-height: 40px; width: 40px; height: 40px; border-radius: 50px; margin-left: 8px; margin-right: 15px; } .eb-admin-dashboard .eb-admin-notice.eb-admin-notice-info i { color: #10AC84; background: rgba(16,172,132,0.1); } .eb-admin-dashboard .eb-license-form .eb-activate-btn { background-color: #19a1f7; border-color: #19a1f7; outline: none; box-shadow: none; border: none !important; min-width: 300px; color: #fff; padding: 12px 15px; font-size: 14px; font-weight: 500; line-height: 22px; text-transform: uppercase; cursor: pointer; border: 0; border-radius: 3px; transition: .3s; } /* Popup */ .eb-popup { visibility: hidden; position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; height: 100%; margin: 0 auto; z-index: 99; text-align: center; background: rgb(0 0 0 / 20%); } .eb-popup.open { visibility: visible; } .eb-popup .eb-popup-inner { visibility: hidden; opacity: 0; position: relative; max-width: 500px; padding: 30px 30px; text-align: center; background: #fff; border-radius: 4px; margin: 0 auto; transition: all 0.2s ease-in-out; transform: scale(.9); } .eb-popup.open .eb-popup-inner { visibility: visible; opacity: 1; transform: scale(1); } .eb-popup .eb-popup-inner .eb-close-popup { position: absolute; right: 20px; top: 15px; cursor: pointer; opacity: .7; transition: .3s; } .eb-popup .eb-popup-inner .eb-close-popup:hover { opacity: 1; } .eb-popup .eb-popup-inner .eb-close-popup i { font-size: 16px; color: #909090; } .eb-popup .eb-popup-inner .eb-popup-icon { margin: 0 auto; margin-bottom: 30px; width: 60px; height: 60px; line-height: 50px; border-radius: 50%; background: #eee; color: #666; } .eb-popup .eb-popup-inner .eb-popup-icon.success { background: #eaf3f2; color: #26a39e; } .eb-popup .eb-popup-inner .eb-popup-icon.failed { background: #fae7e6; color: #ce0e02; } .eb-popup .eb-popup-inner .eb-popup-icon i { font-size: 26px; line-height: 60px; display: block; } .eb-popup .eb-popup-inner .title { margin-top: 0; font-size: 18px; } .eb-popup .eb-popup-inner p { font-size: 15px; color: #6e6e6e; } .eb-popup .eb-popup-inner .btn { min-width: 230px; display: block; background: #fff; border: 1px solid #222; border-radius: 4px; margin: 0 auto; margin-top: 30px; padding: 10px 20px; color: #222; font-weight: 600; font-size: 15px; line-height: 19px; cursor: pointer; transition: .3s; } .eb-popup .eb-popup-inner .btn:hover, .eb-popup .eb-popup-inner .btn:active, .eb-popup .eb-popup-inner .btn:focus, .eb-popup .eb-popup-inner .btn:hover:focus { display: block; background: #222; color: #fff; border-color: #222; outline: none; } .eb-popup .eb-popup-inner .btn.btn-delete { background: #fff; border: 1px solid #dadeec; color: #ff4d4d; } .eb-popup .eb-popup-inner .btn.btn-delete:hover, .eb-popup .eb-popup-inner .btn.btn-delete:active, .eb-popup .eb-popup-inner .btn.btn-delete:focus, .eb-popup .eb-popup-inner .btn.btn-delete:hover:focus { display: block; background: #ff4d4d; color: #fff; border-color: #ff4d4d; outline: none; } .eb-popup .eb-popup-inner .btn.btn-create { background: #fff; border: 1px solid #26a39e; color: #26a39e; } .eb-popup .eb-popup-inner .btn.btn-create:hover, .eb-popup .eb-popup-inner .btn.btn-create:active, .eb-popup .eb-popup-inner .btn.btn-create:focus, .eb-popup .eb-popup-inner .btn.btn-create:hover:focus { display: block; background: #26a39e; color: #fff; border-color: #26a39e; outline: none; } /* Button Animation ------------------------------------- */ .eb-btn-loader { display: block; width: 100%; height: 19px; text-align: center; pointer-events: none; } .eb-btn-loader .eb-spinner { background: #fff; height: 100%; width: 3px; margin-left: 3px; display: inline-block; -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out; animation: sk-stretchdelay 1.2s infinite ease-in-out; } .eb-btn-loader .spinner2 { -webkit-animation-delay: -1.1s; animation-delay: -1.1s } .eb-btn-loader .spinner3 { -webkit-animation-delay: -1s; animation-delay: -1s } .eb-btn-loader .spinner4 { -webkit-animation-delay: -.9s; animation-delay: -.9s } .eb-btn-loader .spinner5 { -webkit-animation-delay: -.8s; animation-delay: -.8s } @-webkit-keyframes sk-stretchdelay { 0%, 40%, to { -webkit-transform: scaleY(.4) } 20% { -webkit-transform: scaleY(1) } } @keyframes sk-stretchdelay { 0%, 40%, to { transform: scaleY(.4); -webkit-transform: scaleY(.4) } 20% { transform: scaleY(1); -webkit-transform: scaleY(1) } } .eb-notice { background: #242526; min-width: 100px; z-index: 99; padding: 14px 20px; padding-left: 45px; border-radius: 4px; position: fixed; right: 30px; bottom: 30px; color: #fff; font-size: 14px; } .eb-notice::before { content: ''; font-family: "Font Awesome 5 Free"; position: absolute; left: 15px; width: 20px; height: 20px; font-size: 12px; font-weight: 600; line-height: 22px; border-radius: 50%; background: #3a3b3c; color: #fff; text-align: center; } .eb-notice.eb-success::before { content: "\f00c"; background: #eaf3f2; color: #26a39e; } .eb-notice.eb-error::before { content: "\f12a"; background: #fae7e6; color: #ce0e02; } .eb-error.error { margin-left: 0; margin-top: 20px; } .admin_page_eb_dashboard .notice { display: none; } .eb-upload-file { color: #868686; cursor: pointer; min-height: 50px; position: relative; border: 2px dashed #dcdcde; background: #fff; border-radius: 2px; padding: 30px; overflow: hidden; display: grid; align-items: center; text-align: center; } .eb-upload-file img { max-width: 100%; height: auto; margin: 0 auto; } .eb-upload-file .remove { position: absolute; right: 20px; top: 15px; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: #fae7e6; color: #ce0e02; } .eb-branches-select { width: 100%; margin: 15px 0; } /* Taxes */ .eb-admin-taxes-fees .action-buttons .eb-edit-tax, .eb-admin-taxes-fees .action-buttons .eb-delete-tax { width: 32px; height: 32px; border-radius: 50%; line-height: 32px; color: #909090; text-align: center; font-size: 14px; margin-right: 10px; display: inline-block; text-decoration: none; transition: .3s; } .eb-admin-taxes-fees .action-buttons .eb-edit-tax:hover, .eb-admin-taxes-fees .action-buttons .eb-delete-tax:hover, .eb-admin-taxes-fees .action-buttons .eb-edit-tax:active, .eb-admin-taxes-fees .action-buttons .eb-delete-tax:active, .eb-admin-taxes-fees .action-buttons .eb-edit-tax:focus, .eb-admin-taxes-fees .action-buttons .eb-delete-tax:focus { outline: none; box-shadow: none; cursor: pointer; } .eb-admin-taxes-fees .action-buttons .eb-edit-tax:hover { background: #eaf3f2; color: #26a39e; } .eb-admin-taxes-fees .action-buttons .eb-delete-tax:hover { background: #fae7e6; color: #ce0e02; } .eb-admin-taxes-fees table th { padding: 8px 20px; color: #606060; font-weight: 600; } .eb-admin-taxes-fees table td { padding: 8px 20px; line-height: 30px; } /* iCal*/ .eb-wrapper .eb-admin-list-group table td table { border: 0; width: 100%; } .eb-wrapper .eb-admin-list-group table td table tr { margin-bottom: 5px; border-bottom: 0; } .eb-wrapper .eb-admin-list-group table td table tr td { padding: 0px 0px; border: 0; } .eb-wrapper .eb-admin-list-group .eb_ical_new_url { width: 80%; } #adminmenu .wp-submenu a { position: relative; } #adminmenu .wp-submenu a small { font-size: 10px; line-height: 14px; position: absolute; top: 5px; margin-left: 10px; background: #ff385c; color: #fff; padding: 2px 6px 3px 6px; border-radius: 4px; } /* ENDLESS ROTATE */ .eb-rotate{ animation: rotate 1s linear infinite; } @keyframes rotate{ to{ transform: rotate(360deg); } } .eb-wrapper .eb-admin-list-group .room-title { margin: 0; color: #606060; font-size: 16px; font-weight: normal; line-height: 32px; text-decoration: none; margin-left: 20px; } /* Responsive */ /* Large devices (desktops, less than 1200px) */ @media (max-width: 1199.98px) { .booking-status-col { display: none; } }options.css000064400000027536150732266540007000 0ustar00@media only screen and (min-width:690px) { #redux-header img { display: inline-block; position: relative; top: 3px; } .redux-container #redux-intro-text, .redux-main #redux-sticky #info_bar .expand_options { display: none; } .redux-container #redux-header { padding: 0; border: none; text-align: left; } /* HEADER BACKGROUND */ #redux-header { background-color: #ff3f55 !important; } /* DARK PART OF HEADER */ .redux-container .display_header { background-color: #e94156; margin: 0 !important; padding: 20px 25px; float: none; display: inline-block; } .redux-container .notice-yellow { background-color: #fff; color: #77cc6d; } .form-table td { padding-left: 20px; } .redux_field_th { line-height: 20px; } .redux-container #info_bar, .redux-main, .redux-container #redux-footer { background-color: #fff !important; } .redux-container .secondary-header { float: none; color: rgba(255, 255, 255, 0.7); padding: 20px 20px 0px 20px; display: inline-block; } html .redux-main .redux-container-switch .cb-disable.selected, .wp-customizer .redux-container-switch .cb-disable.selected, html .redux-main .redux-container-switch .cb-enable.selected { background-image: none !Important; -webkit-box-shadow: none !important; box-shadow: none !important; } .admin-color-fresh .select2-results .select2-highlighted, .wp-customizer .select2-results .select2-highlighted { background-color: #19a1f7 !important; } .admin-color-fresh .redux-main .redux-container-switch .cb-enable.selected { background-color: #4fb845 !important; border-color: #4fb845 !important; } .admin-color-fresh .redux-container-switch .cb-disable.selected { background-color: #ed6f6f !important; border-color: #ed6f6f !important; } .admin-color-fresh .redux-container-image_select .redux-image-select-selected img, .wp-customizer .redux-container-image_select .redux-image-select-selected img { border-color: #19a1f7 !important; } .admin-color-fresh .redux-container .redux-main .button:not(.wp-picker-default) { text-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; border: none; opacity: 1; background-color: #ebebeb; border: 1px solid #ebebeb; margin: 6px 3px; -webkit-transition: all 0.13s linear; transition: all 0.13s linear; border-radius: 2px; } .themes .wbc-progress-back { height: 30px; } .wbc_importer .importer-button { margin-top: 0 !important; margin-bottom: 0 !important; } .redux-main #redux_ajax_overlay { background-color: #fff; opacity: 0.55; } .redux-container .wp-picker-container input[type=text].wp-color-picker { margin-left: 5px; } .admin-color-fresh .redux-container .redux-main .wp-picker-clear { margin-top: 0 !important; margin-bottom: 0 !important; } .redux-container .redux-main .button:not(.wp-picker-default) { margin: 6px 3px; } .admin-color-fresh .redux-container .redux-main .button:hover { background-color: #f4f4f4; } .admin-color-fresh .redux-container .redux-main .button.button-primary:hover { opacity: 0.8; border: none; } .admin-color-fresh .redux-main .button.remove-image, .redux-main .removeCSS { color: #fff !important; background-color: #23282d !important; } .admin-color-fresh .redux-container .redux-main .theme-browser .button-primary { background-color: #19a1f7 !important; background-image: none !Important; text-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; color: #fff !important; -webkit-transition: all 0.13s linear; transition: all 0.13s linear; border: none; } .admin-color-fresh .redux-container .redux-main .theme-browser .button-primary:hover { opacity: 0.8; } .admin-color-fresh .redux-container .redux-main .button.button-primary { background-color: #4fb845 !important; background-image: none !Important; text-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; color: #fff !important; border: none; } .admin-color-fresh .noUi-connect { background-color: #19a1f7 !important; background-image: none !Important; } .redux-container #redux-header .display_header h2 { font-size: 16px; } .redux-container #redux-header .display_header span { color: #fff; } .redux-container #redux-header .rAds { display: none !important; } .redux-container .secondary-header h4 { text-shadow: none; font-weight: 400 !important; } .redux-container .redux-sidebar, .redux-container .display_header { width: 250px; -webkit-box-sizing: border-box; box-sizing: border-box; } .redux-sidebar .redux-group-menu li.active a, .redux-sidebar .redux-group-menu li.active a:hover, .redux-sidebar .redux-group-menu li.activeChild a, .redux-sidebar .redux-group-menu li.activeChild a:hover { width: 250px; -webkit-box-sizing: border-box; box-sizing: border-box; } .redux-container .redux-main img { max-width: 500px; } .redux-container-color_gradient .colorGradient { vertical-align: middle; } .redux-container-color_gradient .colorGradient strong { vertical-align: middle; top: 5px; position: relative; } .redux-container .redux-main { margin-left: 250px; } .redux-container #redux-header .display_header span.redux-dev-mode-notice { font-weight: 400 !important; background: transparent; border: 1px solid #fff; border-radius: 1px; } #redux-header h2 { max-width: 170px; margin-left: 5px; display: inline-block; } .redux-main { margin-left: 250px; } .redux-container #redux-header .display_header .redux-dev-mode-notice-container { bottom: 13px; left: auto; right: 25px; top: 34px; font-size: 12px; } .redux-container .el-chevron-down { font-size: 8px !important; right: 20px !important; margin-top: -6px !important; } .redux-sidebar .redux-group-menu li.activeChild.hasSubSections a, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections a { text-shadow: none; } .redux-sidebar .redux-group-tab-link-a i { font-size: 18px; line-height: 18px; } .redux-image-select label { font-size: 12px; } tr.five-columns { width: 20%; margin-top: 20px; min-width: 160px; float: none; } tr.five-columns th { display: block; width: auto !important; } .redux-container-image_select .redux-image-select img { margin: 5px; } .redux-container-image_select .redux-image-select { padding: 5px; } .redux-image-select label span { padding: 0; display: block; text-align: center; } .redux-main #redux-sticky #info_bar { height: 38px; padding-top: 6px; } .redux-sidebar .redux-group-menu li a { padding: 16px 4px 16px 25px; } .redux-sidebar .redux-group-tab-link-a span.group_title { padding-left: 30px; } .redux-main { border-left: none !important; } .redux-container .redux-sidebar { position: relative; } .redux-container { background-color: #23282d !important; background-image: none !important; } body .redux-container .redux-sidebar .redux-group-menu li a { background-color: #23282d; border-color: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); text-shadow: none !Important; opacity: 1; } html .redux-container .redux-sidebar .redux-group-menu * { font-weight: 400 !important; } html .redux-container .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a { background-color: #f6f6f6; color: rgba(0, 0, 0, 1); } html body .redux-container .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li a:hover { background-color: #e9e9e9 !important; color: rgba(0, 0, 0, 1) !important; } html .redux-container .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a { background-color: #f6f6f6 !important; color: rgba(0, 0, 0, 1); font-weight: 600 !important; } html .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a span, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections ul.subsection li.active a span { font-weight: 600 !important; } html .redux-container .redux-sidebar .redux-group-tab-link-a i { color: #75819b; text-shadow: none !important; } html .redux-container .redux-sidebar .redux-group-tab-link-li.activeChild i, html .redux-container .redux-sidebar .redux-group-tab-link-li:hover i, html .redux-container .redux-sidebar .redux-group-tab-link-li.active i { color: #fff !important; } body .redux-sidebar .redux-group-menu li>a:hover { background-color: #49505e; color: #fff; } html .redux-sidebar .redux-group-menu li.redux-group-tab-link-li.active>a, html .redux-container .redux-sidebar .redux-group-menu li.activeChild.hasSubSections a { background-color: #fff; color: #000; } html .redux-sidebar .redux-group-menu li.active.hasSubSections .active a:after, html .redux-container .redux-sidebar .redux-group-menu li.activeChild.hasSubSections .active a:after, .wp-customizer .redux-sidebar .redux-group-menu li.active.hasSubSections .active a:after, .wp-customizer .redux-sidebar .redux-group-menu li.activeChild.hasSubSections .active a:after { display: none !important; } .redux-container .ui-corner-all { display: none; } } .top-margin { margin-top: 15px; display: inline-block; } .masonry_table { width: 100%; margin: 0px 0px 20px; } .masonry_table td { padding-left: 0; } .redux-main .redux-typography-container .select_wrapper { max-width: 31% !important; } /* BUTTONS */ .admin-color-fresh .redux-container-switch .cb-disable, .admin-color-fresh .redux-container-switch .cb-enable, .admin-color-fresh .ui-state-default, .admin-color-fresh .ui-widget-content .ui-state-default, .admin-color-fresh .ui-widget-header .ui-state-default, .wp-customizer .redux-container-switch .cb-disable, .wp-customizer .redux-container-switch .cb-enable, .wp-customizer .ui-state-default, .wp-customizer .ui-widget-content .ui-state-default, .wp-customizer .ui-widget-header .ui-state-default, .admin-color-fresh .redux-field-container .ui-buttonset .ui-state-active { -webkit-box-shadow: none; box-shadow: none; border: none; background-image: none; font-weight: 600; } /* DEMO IMPORTER */ .requirements { margin: 60px 0; width: 500px; border-spacing: 0 5px; } .requirements thead th { padding-bottom: 10px; font-size: 12px; text-align: left; } .requirements td { margin-bottom: 10px; } .requirements .required-value, .requirements .current-value { position: relative; margin-left: 10px; padding: 1px 5px; font-size: 12px; } .requirements .current-value { padding-left: 20px; } .requirements .current-value:before { content: ''; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; position: absolute; margin-right: 10px; } .requirements .current-value.success:before { background: #4fb845; } .requirements .current-value.failure:before { background: #ff1a15; } /* Hide Eagle Booking Rdux Custom Footer */ .redux-custom-footer { display: none; } .themes .wbc-progress-bar { max-height: 100%; } /* Redux Framework 4 */ #redux-connect-message { display: none; } #redux-connect-message, .redux-update-google-fonts { display: none; } .redux-main .redux-typography-container .typography-preview { margin-top: 30px; } ical.js000064400000022135150732266700006025 0ustar00 /*================================================ * Plugin Name: Eagle Booking / Admin iCal [Beta] * Version: 1.3.6 * Author: Eagle Themes (Jomin Muskaj) * Author URI: eagle-booking.com =================================================*/ (function ($) { "use strict"; /* Document is Raedy Lets Start */ $(document).ready(function () { /*----------------------------------------------------*/ /* New Entry Form /*----------------------------------------------------*/ $(".eb-new-entry").on("click", function (event) { $(this).closest('.eb-entry-line').find('.eb-no-entry').hide(); $(this).closest('.eb-entry-line').find(".eb_ical_new_url").parent().parent().show(); }) /*----------------------------------------------------*/ /* Cancel Edit /*----------------------------------------------------*/ $('body').on('click', '.eb-cancel-action', function(event) { $(this).closest('.eb-entry-line').find(".eb_ical_new_url").parent().parent().hide(); // Only if there is no any other entry $(this).closest('.eb-entry-line').find('.eb-no-entry').show(); }); /*----------------------------------------------------*/ /* Create Entry /*----------------------------------------------------*/ $('.eb-create-entry').on('click', function(event) { // Check before submit var eb_form_has_error = false; // Get required fields var fields = { line: $(this).closest('.eb-entry-line').find('.eb_ical_new_line'), url: $(this).closest('.eb-entry-line').find('.eb_ical_new_url'), room_id: $(this).closest('.eb-entry-line').find('.eb_ical_new_url').data('room-id'), } // // Check if any required field is empty fields.url.each( function() { if( !this.value ) { eb_form_has_error = true; $(this).addClass("empty"); } }); // Let's send back to PHP if ( eb_form_has_error == false ) { // Handler to the ajax request var eb_create_entry = null; // If there is a previous ajax request, then abort it if( eb_create_entry != null ) { eb_create_entry.abort(); eb_create_entry = null; } // Set the data var data = { action: 'admin_create_url', nonce: ical.nonce, url: fields.url.val(), ical_room_id: fields.room_id, } eb_create_entry = $.ajax({ type: 'POST', dataType: "json", url: ical.ajaxurl, data: data }) // Always .always( function (response) {} ) // Done .done( function (response) { // Lets check the returned status if ( response.status === 'success' ) { var response_class = 'success'; // Remove "Add New Line" fields.line.hide(); // Add the content of the new line var new_line = $('Testjoni'); // $(new_line).insertAfter('.eb_ical_new_url').fadeIn(); $('' + fields.url.val() + '').insertAfter(fields.line) // alert(fields.url.val()); } else { var response_class = 'failed'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); } ) // Fail .fail( function (response) { console.log('Request Failed'); }) } }); /*----------------------------------------------------*/ /* Delete Entry /*----------------------------------------------------*/ $('.eb-delete-action').on('click', function(event) { // Get required fields var fields = { line: $(this).closest('.eb-entry-line'), url_id: $(this).closest('.eb-url-line').data('row-id'), } // Handler to the ajax request var eb_delete_entry = null; // If there is a previous ajax request, then abort it if( eb_delete_entry != null ) { eb_delete_entry.abort(); eb_delete_entry = null; } // Set the data var data = { action: 'admin_delete_url', nonce: ical.nonce, url_id: fields.url_id } eb_delete_entry = $.ajax({ type: 'POST', dataType: "json", url: ical.ajaxurl, data: data }) // Always .always( function (response) {} ) // Done .done( function (response) { // Lets check the returned status if ( response.status === 'success' ) { var response_class = 'success'; $('.eb-url-line[data-row-id="'+ fields.url_id +'"]').fadeOut(300); } else { var response_class = 'failed'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); } ) // Fail .fail( function (response) { console.log('Request Failed'); }) }); /*----------------------------------------------------*/ /* Sync Room /*----------------------------------------------------*/ $('.eb-sync-action').on('click', function(event) { // rotate icon $(this).addClass('eb-rotate'); $(this).removeAttr('data-eb-tooltip'); // Get required fields var fields = { room_id: $(this).data('entry-id'), } // Handler to the ajax request var eb_sync_entry = null; // If there is a previous ajax request, then abort it if( eb_sync_entry != null ) { eb_sync_entry.abort(); eb_sync_entry = null; } // Set the data var data = { action: 'admin_sync_ical', nonce: ical.nonce, room_id: fields.room_id } eb_sync_entry = $.ajax({ type: 'POST', dataType: "json", url: ical.ajaxurl, data: data }) // Always .always( function (response) { console.log(response); } ) // Done .done( function (response) { // remove rotate icon $('.eb-edit-action').removeClass('eb-rotate'); // Check if booking deleted successfully if ( response.status === 'success' ) { var response_class = 'success'; } else { var response_class = 'error'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300);}, 3000); } ) // Fail .fail( function (response) { console.log(response); }) }); }); })(jQuery); bookings.js000064400000035342150732266700006734 0ustar00(function ($) { "use strict"; /** * Button Animation * Version: 1.0 * Can be called externally */ function eb_button_loading( btn_id, btn_action = '' ) { var btn = $( btn_id ); if ( btn_action === 'hide' ) { btn.find('.eb-btn-loader').remove(); btn.find('.eb-btn-text').show(); btn.css('pointer-events',''); btn.blur(); } else { var eb_loader_dom = ''; btn.append( eb_loader_dom ); btn.find('.eb-btn-text').hide(); btn.css('pointer-events','none'); } // Firefox fix: on "Go Back" $(window).unload(function () { $(window).unbind('unload'); }); } /* Document is Raedy */ $(document).ready(function () { /*----------------------------------------------------*/ /* Open Delete Confirmation [Admin] /*----------------------------------------------------*/ $(document).on('click', '.eb-delete-booking, #eb_delete_booking', function(event) { event.preventDefault(event); event.stopPropagation(event); var eb_popup = $('.eb-popup'); eb_popup.addClass('open'); var booking_line = $(this).closest( "tr" ); var booking_id = booking_line.data('booking-id'); $('#eb_booking_id_text').text(booking_id); $('#eb_delete_booking_confirmation').data('booking-id', booking_id); // Close PopUp $(".eb-close-popup").on('click', function() { $('.eb-popup').removeClass('open'); }); // Cose on click outside of the popup $(window).on('click', function() { eb_popup.removeClass('open'); }); // Avoid Close on inner click $(".eb-popup-inner").on('click', function(event) { event.stopPropagation(); }); }) /*----------------------------------------------------*/ /* Delete Booking [Admin] /*----------------------------------------------------*/ $('#eb_delete_booking_confirmation').on('click', function(event) { eb_button_loading(this); event.preventDefault(event); var eb_popup = $('.eb-popup'); var booking_id = $(this).data('booking-id'); var booking_line = $('*[data-booking-id='+booking_id+']'); // Handler to the ajax request var eb_delete_booking = null; // If there is a previous ajax request, then abort it if( eb_delete_booking != null ) { eb_delete_booking.abort(); eb_delete_booking = null; } // Set the data var data = { action: 'admin_delete', nonce: booking_variables.nonce, booking_id: booking_id } eb_delete_booking = $.ajax({ type: 'POST', url: booking_variables.ajaxurl, data: data }) // Always .always( function (response) { }) // Done .done( function (response) { // Check if booking deleted successfully if ( response.status === 'success' ) { // Remove Line booking_line.fadeOut(300); // Booking details page redeirect to the booking page if ( $('.eb-admin-booking-details').length ) { setTimeout( function() { document.location.href = response.redirect_url; }, 3000); } var response_class = 'success'; } else { var response_class = 'error'; } // Close popup eb_popup.removeClass('open'); // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Button Loader setTimeout( function() { eb_button_loading('#eb_delete_booking_confirmation', 'hide'); }, 1000); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); }) // Fail .fail( function (response) { console.log('Request Failed'); }) }); /*----------------------------------------------------*/ /* Confirmation PopUp [Admin] /*----------------------------------------------------*/ function eb_confirmation_popup(popup_heading, popup_text, popup_status) { var eb_popup = $('.eb-popup'); // Open PopUp on call eb_popup.toggleClass('open'); // Set heading if set $('#eb_popup_heading', this).text(popup_heading); // Set text if set $('#eb_popup_text', this).text(popup_text); // Close PopUp $(".eb-close-popup", this).on('click', function() { $('.eb-popup').removeClass('open'); }); // Avoid Close on inner click $(".eb-popup-inner", this).on('click', function(event) { event.stopPropagation(); }); // Cose on click outside of the popup $(window).on('click', function() { eb_popup.removeClass('open'); }); // New Booking if ( popup_status === 'available' ) { $('#eb_popup_heading').prepend('
') } else { $('#eb_popup_heading').prepend('
') } } /*----------------------------------------------------*/ /* Check Availablity [Admin] /*----------------------------------------------------*/ $("#eb_check_availability").on('click', function(event) { event.preventDefault(); var eb_form_has_error = false; var form_field = { room_id: $('#eb_room_id'), dates: $('.eb-datepicker'), price: $('#eb_price'), firstname: $('#eb_firstname'), lastname: $('#eb_lastname') } // Check if any required field is empty form_field.room_id.add(form_field.dates).add(form_field.firstname).add(form_field.lastname).add(form_field.price).each( function() { if( !this.value ) { eb_form_has_error = true; $(this).addClass("empty"); } }); if ( eb_form_has_error == false ) { eb_button_loading(this); // Handler to the ajax request var check_availability = null; // If there is a previous ajax request, then abort it if( check_availability != null ) { check_availability.abort(); check_availability = null; } // Set the data var data = { action: 'admin_availability', nonce: booking_variables.nonce, room_id: form_field.room_id.val(), checkin: $('.eb_checkin').val(), checkout: $('.eb_checkout').val(), } check_availability = $.ajax({ type: 'POST', url: booking_variables.ajaxurl, data: data }) .always( function (response) {}) .done( function (response) { // Check if room is available if ( response.status === 'available' ) { // Show Delete Button $('#eb_create_booking_confirmation').show(); } else { // Hide Delete Button $('#eb_create_booking_confirmation').hide(); } eb_button_loading('#eb_check_availability', 'hide'); // Open Confirmation Box eb_confirmation_popup(response.heading, response.text, response.status); }) .fail( function (response) {}) } }); /*----------------------------------------------------*/ /* Create Booking [Admin] /*----------------------------------------------------*/ $("#eb_create_booking_confirmation").on('click', function(event) { eb_button_loading(this); event.preventDefault(); var eb_form_has_error = false; var form_field = { room_id: $('#eb_room_id'), dates: $('#eagle_booking_datepicker'), adults: $('#eagle_booking_adults'), children: $('#eagle_booking_children'), guests: $('#eagle_booking_guests'), price: $('#eb_price'), deposit: $('#eb_deposit'), firstname: $('#eb_firstname'), lastname: $('#eb_lastname') } // Check if any required field is empty form_field.room_id.add(form_field.dates).add(form_field.firstname).add(form_field.lastname).add(form_field.price).each( function() { if( !this.value ) { eb_form_has_error = true; $(this).addClass("empty"); } }); if ( eb_form_has_error == false ) { // Handler to the ajax request var eb_cretate_booking = null; // If there is a previous ajax request, then abort it if( eb_cretate_booking != null ) { eb_cretate_booking.abort(); eb_cretate_booking = null; } // Set the data var data = { action: 'admin_create', nonce: booking_variables.nonce, room_id: form_field.room_id.val(), checkin: $('.eb_checkin').val(), checkout: $('.eb_checkout').val(), adults: form_field.adults.val(), children: form_field.children.val(), guests: form_field.guests.val(), price: form_field.price.val(), deposit: form_field.deposit.val(), firstname: form_field.firstname.val(), lastname: form_field.lastname.val(), email: $('#eb_email').val(), phone: $('#eb_phone').val(), address: $('#eb_address').val(), city: $('#eb_city').val(), country: $('#eb_country').val(), zip: $('#eb_zip').val(), arrival: $('#eb_arrival').val(), requests: $('#eb_requests').val(), services: $('#eb_services').val(), status: $('#eb_status').val(), payment: $('#eb_payment_method').val(), } eb_cretate_booking = $.ajax({ type: 'POST', url: booking_variables.ajaxurl, data: data }) .always( function (response) { console.log(response); }) .done( function (response) { // Check if booking deleted successfully if ( response.status === 'success' ) { var response_class = 'success'; setTimeout( function() { document.location.href = response.redirect_url; }, 3000); } else { var response_class = 'error'; } // Close PopUp Confirmation $('.eb-popup').toggleClass('open'); eb_button_loading(this, 'hide'); // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); }) .fail( function (response) { }) } }); /*----------------------------------------------------*/ /* Remove 'empty' class on focus /*----------------------------------------------------*/ $('input').on("focus", function(){ $(this).removeClass("empty"); }) /*----------------------------------------------------*/ /* Additional Services /*----------------------------------------------------*/ $( ".eb-additional-service" ).change(function() { if ( $( this ).is( ":checked" ) ) { var eb_service_value = $( this ).val(); var eb_service_previous_value = $("#eb_services").val(); $( "#eb_services" ).val( eb_service_value + eb_service_previous_value ); } else { var eb_service_value = $( this ).val(); var eb_service_previous_value = $("#eb_services").val(); var eb_checkbox_services = eb_service_previous_value.replace(eb_service_value, ""); $( "#eb_services" ).val( eb_checkbox_services ); } }); }); })(jQuery); eb-admin.js000064400000033641150732266700006575 0ustar00/*================================================ * Plugin Name: Eagle Booking * Version: 1.1.6 * Author Name: Jomin Muskaj (Eagle-Themes) * Author URI: eagle-themes.com =================================================*/ (function ($) { "use strict"; /* Document is Raedy */ $(document).ready(function () { // ============================================= // DATERANGEPICKER // ============================================= var eb_calendar_min_date = new Date(); var eb_calendar_max_date = moment(eb_calendar_min_date).add(eb_js_settings.eb_calendar_availability_period, 'M').endOf('month'); var eagle_booking_date_format = eb_js_settings.eagle_booking_date_format.toUpperCase(); var eb_signle_room = false; // Check if calendar is on single room if ( $('form').hasClass('room-booking-form') ) { eb_signle_room = true; } $(".eb-datepicker").each(function () { var calendar = $(this); $(calendar).daterangepicker({ autoUpdateInput: false, autoApply: true, alwaysShowCalendars: true, linkedCalendars: true, isInvalidDate: function(date) { if ( typeof eb_booked_dates!== 'undefined' && eb_booked_dates != '' ) { return !!(eb_booked_dates.indexOf(date.format('YYYY/MM/DD')) > 0); } }, minDate: eb_calendar_min_date, maxDate: eb_calendar_max_date, locale: { format: eagle_booking_date_format, separator: " → ", "daysOfWeek": [ eb_js_settings.eb_calendar_sunday, eb_js_settings.eb_calendar_monday, eb_js_settings.eb_calendar_tuesday, eb_js_settings.eb_calendar_wednesday, eb_js_settings.eb_calendar_thursday, eb_js_settings.eb_calendar_friday, eb_js_settings.eb_calendar_saturday, ], "monthNames": [ eb_js_settings.eb_calendar_january, eb_js_settings.eb_calendar_february, eb_js_settings.eb_calendar_march, eb_js_settings.eb_calendar_april, eb_js_settings.eb_calendar_may, eb_js_settings.eb_calendar_june, eb_js_settings.eb_calendar_july, eb_js_settings.eb_calendar_august, eb_js_settings.eb_calendar_september, eb_js_settings.eb_calendar_october, eb_js_settings.eb_calendar_november, eb_js_settings.eb_calendar_december, ], "firstDay": 1 } }), $(calendar).on("apply.daterangepicker", function () { // Displayd Format var checkin = $(calendar).data('daterangepicker').startDate.format(eagle_booking_date_format); var checkout = $(calendar).data('daterangepicker').endDate.format(eagle_booking_date_format); // Display Date $(this).val(checkin + " " + " " + " → " + " " + " " + checkout); // Add value to hidden inouts $('.eb_checkin').val(checkin); $('.eb_checkout').val(checkout); // Update Booking Filters only for the search page (filters) if ($("div").hasClass("search-filters")) { eb_search_filters(); } if ($("div").hasClass("search-filters") || $("div").hasClass("calendar")) { eb_get_nights(calendar); } // Disable all booked & blocked room on the signle room calendar if ( eb_signle_room == true ) { var i, eb_booked_date; // Loop all booked dates until the condition for( i = 0; i < eb_booked_dates.length; i++ ) { eb_booked_date = moment(eb_booked_dates[i]).format('YYYY/MM/DD'); var checkin_new = $(calendar).data('daterangepicker').startDate.format('YYYY-MM-DD'); var checkout_new = $(calendar).data('daterangepicker').endDate.format('YYYY-MM-DD'); if ( moment(eb_booked_date).isBetween(checkin_new, checkout_new) ) { $(this).data('daterangepicker').setStartDate(checkout); $(this).val("").focus(); // Break loop on the first match break; } } } }) }) // ============================================= // CALCULATE NIGHTS NUMBER // ============================================= function eb_get_nights( calendar ) { var eagle_booking_checkin = $(calendar).parent().find('.eb_checkin').val(); var eagle_booking_checkout = $(calendar).parent().find('.eb_checkout').val(); var eagle_booking_start_date = moment(eagle_booking_checkin, eb_js_settings.eagle_booking_date_format.toUpperCase()).format('YYYY-MM-DD');; var eagle_booking_end_date = moment(eagle_booking_checkout, eb_js_settings.eagle_booking_date_format.toUpperCase()).format('YYYY-MM-DD');; var booking_nights = (new Date(eagle_booking_end_date)) - (new Date(eagle_booking_start_date)); var eagle_booking_nights_number = booking_nights / (1000 * 60 * 60 * 24); if (eagle_booking_nights_number < 0) { var eagle_booking_nights_number = '0'; } return eagle_booking_nights_number; } // ============================================= // GUESTS SELECT // ============================================= $('.eb-guestspicker .guestspicker').on('click', function (event) { $('.eb-guestspicker').toggleClass('active'); event.preventDefault(); }); $(window).click(function () { $('.eb-guestspicker').removeClass('active'); }); $('.eb-guestspicker').on('click', function (event) { event.stopPropagation(); }); function guestsSum() { var arr = $('.booking-guests'); var guests = 0; for (var i = 0; i < arr.length; i++) { if (parseInt(arr[i].value, 10)) guests += parseInt(arr[i].value, 10); } if (guests > 0) { var cardQty = document.querySelector(".gueststotal"); cardQty.innerHTML = guests; } // Add the new value to geust input $("#eagle_booking_guests").val(guests); } guestsSum(); $(function () { $(".plus, .minus").on("click", function () { var button = $(this); var oldValue = button.parent().find("input").val(); var min_value = button.parent().find("input").attr("min"); if (button.hasClass('plus')) { var newVal = parseFloat(oldValue) + 1; } else { if (oldValue > min_value) { var newVal = parseFloat(oldValue) - 1; } else { newVal = min_value; } } button.parent().find("input").val(newVal); guestsSum(); if ($('form').hasClass('booking-search-form')) { eagle_booking_filters(); } }); }); /*----------------------------------------------------*/ /* Bookings Filters /*----------------------------------------------------*/ // bind change event to select $('.eb_bookings_filter').on('change', function () { var url = $(this).val(); // get selected value if (url) { // require a URL window.location = url; // redirect } return false; }); /*----------------------------------------------------*/ /* Bookings Calendar AJAX /*----------------------------------------------------*/ function eb_calendar_room_availability() { // handler to the ajax request var eb_ajax_calendar_room_availability_xhr = null; $('.eb-room-booked').on('mouseenter', function(event) { // Remove any previous active $('.eb-room-booked').removeClass("open"); var popover = $('#eb-room-availability-popup'); var eb_loader = '
'; popover.append(eb_loader); $('#eb-calendar-title').hide(); $('#eb-calendar-title-loading').show(); // Empty any previous results $("#eb-room-availability-popup #content").empty(); $("#eb-calendar-date").empty(); $("#eb-calendar-room-title").empty(); // Popover Position var pos = $(this).position(); var date_width = $(this).outerWidth(); var calendar_width = $('.eb-calendar-view').outerWidth(); var popover_width = $('#eb-room-availability-popup').outerWidth(); // Display popover in the left side if ( (calendar_width - pos.left) < popover_width + 50 ) { var popover_pos = pos.left - popover_width; popover.removeClass('right'); popover.addClass('left'); // Display popover in the right side } else { var popover_pos = pos.left + date_width; popover.removeClass('left'); popover.addClass('right'); } popover.css({ position: "absolute", top: pos.top + "px", left: (popover_pos) + "px", }).show(); var eb_date = $(this).data("date"); var eb_displayed_date = $(this).data("displayed-date"); var eb_room_id = $(this).data("room-id"); var eb_room_title = $(this).data("room-title"); // if there is a previous ajax request, then abort it if( eb_ajax_calendar_room_availability_xhr != null ) { eb_ajax_calendar_room_availability_xhr.abort(); eb_ajax_calendar_room_availability_xhr = null; } // Start the AJAX request eb_ajax_calendar_room_availability_xhr = $.ajax({ url: eb_admin_ajax.eb_admin_calendar_ajax, method: 'GET', dataType: 'json', data: { action: 'eb_admin_calendar_action', eb_date: eb_date, eb_room_id: eb_room_id, eb_calendar_nonce: eb_admin_ajax.eb_admin_ajax_nonce, }, // Success success: function (eb_calendar_room_availability_data) { // Appened new results $("#eb-room-availability-popup #content").append(eb_calendar_room_availability_data.output); $("#eb-room-availability-popup #content #bookings").append(eb_calendar_room_availability_data.bookings); $('#eb-calendar-title-loading').hide(); $('#eb-calendar-title').show(); $('#eb-calendar-date').text(eb_displayed_date); $('#eb-calendar-room-title').text(eb_room_title); }, error: function (eb_ajax_calendar_room_availability_xhr, textStatus, errorThrown) { // Console mssg - debug purpose console.log(errorThrown); }, complete: function () { // Remove loader $('#eb-loader').remove(); }, }); }); /*----------------------------------------------------*/ /* Booking Calendar POPOVER /*----------------------------------------------------*/ $('.eb-room-booked').on('click', function(event) { $(this).addClass("open").siblings().removeClass("open"); }); $('.eb-room-booked').on('mouseleave', function(event) { if ( !$(this).hasClass('open') ) { $('#eb-room-availability-popup').hide(); } }); $('body').on('click', function(event) { if ( !$(event.target).closest('.eb-room-booked, #eb-room-availability-popup').length ) { $('#eb-room-availability-popup').hide(); } }); } eb_calendar_room_availability(); /*----------------------------------------------------*/ /* Media Upload /*----------------------------------------------------*/ function media_upload(button_class) { $('body').on('click', button_class, function (e) { var upload_file_box = $(this); // If the media frame already exists, reopen it. if (frame) { frame.open(); return; } // Create a new media frame var frame = wp.media({ library: { type: 'image' }, multiple: false }); frame.on('select', function () { // Get media attachment details from the frame state var attachment = frame.state().get('selection').first().toJSON(); upload_file_box.parent().find('.eb-upload-file-url').val(attachment.url); upload_file_box.find('.eb-upload-file-remove').css('display', 'block'); upload_file_box.find('.eb-upload-file-text').css('display', 'none'); upload_file_box.find('.eb-upload-file-preview').attr('src', attachment.url).css('display', 'block'); }); frame.open(); return false; }); } media_upload('.eb-upload-file'); // Remove File $('body').on('click', ".eb-upload-file-remove", function (e) { var upload_file_remove = $(this); upload_file_remove.css('display', 'none'); upload_file_remove.parent().find('.eb-upload-file-text').css('display', 'block'); upload_file_remove.parent().find('.eb-upload-file-url').val(""); upload_file_remove.parent().find('.eb-upload-file-preview').attr('src', "").css('display', 'none'); preventDefault(e); }); // Clear the form after the submit $('#submit').click(function () { var upload_file_submit_button = $(this); // Look for a div WordPress produces for an invalid form element if ( !$('#addtag .form-invalid').length ) { upload_file_submit_button.parent().parent().find('.eb-upload-file-preview').attr('src', "").css('display', 'none'); } }); }); })(jQuery); taxesfees.js000064400000045716150732266700007116 0ustar00/*================================================ * Plugin Name: Eagle Booking / Admin Taxes * Version: 1.2.9.4 * Author: Eagle Themes (Jomin Muskaj) * Author URI: eagle-booking.com =================================================*/ (function ($) { "use strict"; /* Document is Raedy Lets Start */ $(document).ready(function () { /*----------------------------------------------------*/ /* New Entry Form /*----------------------------------------------------*/ $(".eb-new-entry").on("click", function (event) { event.preventDefault(); var cat = $(this).data('cat'); // Clear any previous value $(this).closest('form').find("input[type=text]").val(""); $('.eb-new-'+cat+'-line').toggle(); $('.eb-'+cat+'-no-entry').hide(); }) /*----------------------------------------------------*/ /* Create Entry /*----------------------------------------------------*/ $('.eb-create-entry').on('click', function(event) { // Check before submit var eb_form_has_error = false; var fields = { cat: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_cat'), title: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_title'), type: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_type'), amount: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_amount'), global: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_global'), services: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_services'), // fees: $(this).closest('.eb-admin-taxes-fees').find('#eb_entry_fees') } if ( $(fields.global).is(":checked") ) { fields.global = 1; } else { fields.global = 0; } if ( $(fields.services).is(":checked") ) { fields.services = 1; } else { fields.services = 0; } // if ( $(fields.fees).is(":checked") ) { // fields.fees = 1; // } else { // fields.fees = 0; // } // Check if any required field is empty fields.title.add(fields.type).add(fields.amount).each( function() { if( !this.value ) { eb_form_has_error = true; $(this).addClass("empty"); } }); if ( eb_form_has_error == false ) { // Handler to the ajax request var eb_create_entry = null; // If there is a previous ajax request, then abort it if( eb_create_entry != null ) { eb_create_entry.abort(); eb_create_entry = null; } // Set the data var data = { action: 'admin_create_entry', entry_nonce: taxes_fees.nonce, entry_cat: fields.cat.val(), entry_title: fields.title.val(), entry_type: fields.type.val(), entry_amount: fields.amount.val(), entry_global: fields.global, entry_services: fields.services, // entry_fees: fields.fees } eb_create_entry = $.ajax({ type: 'POST', url: taxes_fees.ajaxurl, data: data }) // Always .always( function (response) {} ) // Done .done( function (response) { // Lets check the returned status if ( response.status === 'success' ) { // Hide New Line Form $('.eb-new-'+data.entry_cat+'-line').hide(); if ( fields.global == 1 ) { var global_checkbox_text = 'Yes'; } else { var global_checkbox_text = 'No'; } if ( fields.services == 1 ) { var services_checkbox_text = 'Yes'; } else { var services_checkbox_text = 'No'; } // if ( fields.fees == 1 ) { // var fees_checkbox_text = 'Yes'; // } else { // var fees_checkbox_text = 'No'; // } // Appened the new tr after last tr if ( data.entry_cat === 'eb_taxes' ) { var new_line = $( '' + fields.title.val() + '\ ' + fields.amount.val() + '\ ' + global_checkbox_text + '\ ' + services_checkbox_text + '\ \ '); } else { var new_line = $( '\ ' + fields.title.val() + '\ ' + fields.type.val().replace(/_/g, ' ') + '\ ' + fields.amount.val() + '\ ' + global_checkbox_text + '\ \ '); } // Add the line after the specific table $('.eb-admin-taxes-fees[data-cat="'+ data.entry_cat +'"]').find('tr').last().after(new_line); var response_class = 'success'; } else { var response_class = 'failed'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); }) // Fail .fail( function (response) { console.log('Request Failed'); }) } }); /*----------------------------------------------------*/ /* Update Entry /*----------------------------------------------------*/ $('body').on('click', '.eb-update-entry', function(event) { // Check before submit var eb_form_has_error = false; var fields = { cat: $(this).data('cat'), id: $(this).data('entry-id'), title: $('#eb_update_entry_title'), type: $('#eb_update_entry_type'), amount: $('#eb_update_entry_amount'), global: $('#eb_update_entry_global'), services: $('#eb_update_entry_services'), // fees: $('#eb_update_entry_fees'), } if ( $(fields.global).is(":checked") ) { fields.global = 1; } else { fields.global = 0; } if ( $(fields.services).is(":checked") ) { fields.services = 1; } else { fields.services = 0; } // if ( $(fields.fees).is(":checked") ) { // fields.fees = 1; // } else { // fields.fees = 0; // } // Check if any required field is empty fields.title.add(fields.type).add(fields.amount).each( function() { if( !this.value ) { eb_form_has_error = true; $(this).addClass("empty"); } }); if ( eb_form_has_error == false ) { // Handler to the ajax request var eb_update_entry = null; // If there is a previous ajax request, then abort it if( eb_update_entry != null ) { eb_update_entry.abort(); eb_update_entry = null; } // Set the returned data var data = { action: 'admin_update_entry', entry_nonce: taxes_fees.nonce, entry_cat: fields.cat, entry_id: fields.id, entry_title: fields.title.val(), entry_type: fields.type.val(), entry_amount: fields.amount.val(), entry_global: fields.global, entry_services: fields.services, // entry_fees: fields.fees } if ( fields.global == 1 ) { var global_text = 'Yes'; } else { var global_text = 'No'; } if ( fields.services == 1 ) { var services_text = 'Yes'; } else { var services_text = 'No'; } // if ( fields.fees == 1 ) { // var fees_text = 'Yes'; // } else { // var fees_text = 'No'; // } eb_update_entry = $.ajax({ type: 'POST', url: taxes_fees.ajaxurl, data: data }) // Always .always( function (response) {} ) // Done .done( function (response) { // Lets check the returned status if ( response.status === 'success' ) { var response_class = 'success'; // Hide the edit line $('.eb-entry-edit[data-entry-id="'+ fields.id +'"]').hide(); // Show again the line ( without new values )wp_posts $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').show(); // Lets change the old values $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').find('.eb-entry-title').text(fields.title.val()); $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').find('.eb-entry-amount').text(data.entry_amount); $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').find('.eb-entry-global').text(global_text); if ( data.entry_cat === 'eb_fees' ) { $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').find('.eb-entry-type').text(fields.type.val().replace(/_/g, ' ')); } else { $('.eb-entry-line[data-entry-id="'+ fields.id +'"]').find('.eb-entry-services').text(services_text); } // BUG: inputs still have the old values } else { var response_class = 'failed'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); }) // Fail .fail( function (response) { console.log('Request Failed'); }) } }); /*----------------------------------------------------*/ /* Delete Entry /*----------------------------------------------------*/ $('.eb-delete-entry').on('click', function(event) { var entry_id = $(this).data('entry-id'); var entry_line = $(this).closest( "tr" ); var entry_cat = $(this).data('cat'); // Handler to the ajax request var eb_delete = null; // If there is a previous ajax request, then abort it if( eb_delete != null ) { eb_delete.abort(); eb_delete = null; } // Set the data var data = { action: 'admin_delete_entry', nonce: taxes_fees.nonce, id: entry_id, cat: entry_cat } eb_delete = $.ajax({ type: 'POST', url: taxes_fees.ajaxurl, data: data }) // Always .always( function (response) {} ) // Done .done( function (response) { // Lets check the returned status if ( response.status === 'success' ) { var response_class = 'success'; // Remove Deleted Line entry_line.fadeOut(300); } else { var response_class = 'failed'; } // Show notification box & and remove it after 3s var eb_notice = $('
'+ response.mssg +'
'); $(eb_notice).hide().appendTo("body").fadeIn(300); // Remove Notice setTimeout( function() { $('.eb-notice').fadeOut(300); }, 3000); }) // Fail .fail( function (response) { console.log('Request Failed'); }) }); /*----------------------------------------------------*/ /* Edit Entry /*----------------------------------------------------*/ $('.eb-edit-entry').on('click', function(event) { var entry_line = $(this).closest( "tr" ); var fields = { cat: $(this).data('cat'), id: $(this).data('entry-id'), title: entry_line.find('.eb-entry-title').text(), type: entry_line.find('.eb-entry-type').text(), amount: entry_line.find('.eb-entry-amount').text(), global: entry_line.find('.eb-entry-global').text(), services: entry_line.find('.eb-entry-services').text(), // fees: entry_line.find('.eb-entry-fees').text(), } if ( fields.global === 'Yes' ) { var global_checkbox = 'checked'; } else { var global_checkbox = ''; } if ( fields.services === 'Yes' ) { var services_checkbox = 'checked'; } else { var services_checkbox = ''; } // if ( fields.fees === 'Yes' ) { // var fees_checkbox = 'checked'; // } else { // var fees_checkbox = ''; // } // Appened the edit for instead of $this tr (taxes or fees) if ( fields.cat === 'eb_taxes' ) { var new_line = $(' \ \ \