Skip to content

Commit

Permalink
version bump and bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Jun 10, 2024
1 parent 05158a9 commit bf4f7be
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 80 deletions.
5 changes: 5 additions & 0 deletions assets/css/adminbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@
}
.jquery-kylefoxModal {
z-index: 99999;
}
.ReactModal__Overlay .modal_wrapper .modalbody .components-input-control__container .components-select-control__input {
height: 38px;
min-height: 38px;
padding-left: 10px;
}
52 changes: 52 additions & 0 deletions assets/css/elementor-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -910,4 +910,56 @@
}
#schedulepress-elementor-modal .dialog-lightbox-warning .post-type-message span strong{
text-transform: capitalize;
}
.elementor-panel-footer-wpsp-modal.elementor-topbar-panel {
-webkit-tap-highlight-color: transparent;
background-color: transparent;
outline: 0px;
border: 0px;
margin: 0px;
border-radius: 0px;
cursor: pointer;
user-select: none;
vertical-align: middle;
appearance: none;
color: inherit;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-weight: 400;
font-size: 0.875rem;
line-height: 1.43;
letter-spacing: 0.01071em;
display: flex;
-webkit-box-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
align-items: center;
position: relative;
text-decoration: none;
min-height: 32px;
padding: 4px 16px;
box-sizing: border-box;
white-space: nowrap;
}
.elementor-panel-footer-wpsp-modal.elementor-topbar-panel div {
min-width: 37px;
}
.elementor-panel-footer-wpsp-modal.elementor-topbar-panel div svg{
user-select: none;
width: 1.25em;
height: 1.25em;
display: inline-block;
fill: currentcolor;
flex-shrink: 0;
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
font-size: 1.5rem;
}
.elementor-panel-footer-wpsp-modal #elementor-panel-footer-wpsp-modal-label button{
padding: 7px;
background: #3e3e3e;
border: none;
border-radius: 3px;
cursor: pointer;
}
.elementor-panel-footer-wpsp-modal #elementor-panel-footer-wpsp-modal-label button:hover{
background-color: rgba(255, 255, 255, 0.24);
}
2 changes: 1 addition & 1 deletion assets/css/wpspl-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -910,4 +910,4 @@
position: relative;
display: flex;
align-items: center;
}
}
8 changes: 2 additions & 6 deletions assets/js/elementor-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,8 @@
});

$(document).ready(function() {
jQuery('#elementor-editor-wrapper-v2 .eui-box .MuiGrid-root:first-child .eui-stack:last-child').append(`
jQuery('#elementor-editor-wrapper-v2 .MuiGrid-root:first-child .MuiStack-root:last-child').append(`
<div class="elementor-panel-footer-wpsp-modal"><span id="elementor-panel-footer-wpsp-modal-label" class="eui-box eui-tooltip MuiBox-root css-0"><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium eui-icon-button wpsp-elementor-topbar-panel-button" tabindex="0" type="button" aria-label="Preview Changes"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;display:block;width:18px;margin:0 auto;" xml:space="preserve">
<style type="text/css">
.st0{fill:#A4AFB7;}
#elementor-panel-footer-wpsp-modal:hover .st0{fill:#d5dadf;}
</style>
<g>
<g>
<path class="st0" d="M212.3,462.4C95,462.4-0.4,366.9-0.4,249.7S95,37,212.3,37c37,0,73.2,9.6,105.1,27.9
Expand Down Expand Up @@ -280,7 +276,7 @@
// Append your HTML content to the specified element
jQuery('#document-save-options .MuiMenu-list').append(`
<hr class="MuiDivider-root MuiDivider-fullWidth eui-divider css-1px5dlw">
<div class="elementor-panel-footer-wpsp-modal MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters eui-menu-item css-108tsqf" tabindex="-1" role="menuitem">
<div class="elementor-panel-footer-wpsp-modal elementor-topbar-panel MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters eui-menu-item css-108tsqf" tabindex="-1" role="menuitem">
<div class="MuiListItemIcon-root eui-list-item-icon css-5n5rd1"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium eui-svg-icon css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 4.75C4.66848 4.75 4.35054 4.8817 4.11612 5.11612C3.8817 5.35054 3.75 5.66848 3.75 6V17C3.75 17.3315 3.8817 17.6495 4.11612 17.8839C4.35054 18.1183 4.66848 18.25 5 18.25H19C19.3315 18.25 19.6495 18.1183 19.8839 17.8839C20.1183 17.6495 20.25 17.3315 20.25 17V9C20.25 8.66848 20.1183 8.35054 19.8839 8.11612C19.6495 7.8817 19.3315 7.75 19 7.75H12C11.8011 7.75 11.6103 7.67098 11.4697 7.53033L8.68934 4.75H5ZM3.05546 4.05546C3.57118 3.53973 4.27065 3.25 5 3.25H9C9.19891 3.25 9.38968 3.32902 9.53033 3.46967L12.3107 6.25H19C19.7293 6.25 20.4288 6.53973 20.9445 7.05546C21.4603 7.57118 21.75 8.27065 21.75 9V17C21.75 17.7293 21.4603 18.4288 20.9445 18.9445C20.4288 19.4603 19.7293 19.75 19 19.75H5C4.27065 19.75 3.57118 19.4603 3.05546 18.9445C2.53973 18.4288 2.25 17.7293 2.25 17V6C2.25 5.27065 2.53973 4.57118 3.05546 4.05546Z"></path></svg></div><div class="MuiListItemText-root MuiListItemText-dense eui-list-item-text css-1tsvksn"><span class="MuiTypography-root MuiTypography-body2 MuiListItemText-primary css-14tqbo1">SchedulePress</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion includes/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public function schedulepress_el_tab () {
</div>
</div>

<div id="elementor-panel-footer-sub-menu-item-wpsp" class="elementor-panel-footer-sub-menu-item elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'SchedulePress', 'wp-scheduled-posts' ); ?>">
<div id="elementor-panel-footer-sub-menu-item-wpsp" class="elementor-panel-footer-sub-menu-item tooltip-target" data-tooltip="<?php esc_attr_e( 'SchedulePress', 'wp-scheduled-posts' ); ?>">
<i class="elementor-icon eicon-folder" aria-hidden="true"></i>
<span class="elementor-title"><?php esc_html_e( 'SchedulePress', 'wp-scheduled-posts' ); ?></span>
</div>
Expand Down
Loading

0 comments on commit bf4f7be

Please sign in to comment.