Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafasoufi committed Sep 4, 2021
2 parents c7526d6 + 044b7e3 commit db10fa4
Show file tree
Hide file tree
Showing 25 changed files with 1,506 additions and 1,803 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion README.md

This file was deleted.

162 changes: 162 additions & 0 deletions asset/admin/css/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
.clearfix-ver:after, .clearfix-ver:before {
content: "";
display: table
}

.clearfix-ver:after {
clear: both
}

#ver-form-container {
width: 100%
}

.podcast_importer_form input[type=text] {
max-width: 70%;
width: 450px
}

em.ver-notice {
float: right;
font-size: .8em
}

.podcast_importer_form .ver-checkbox-container {
margin: 20px 0 10px 0
}

.podcast_importer_form .ver-checkbox-container span {
margin-left: 8px
}

.podcast_importer_form input[type=submit] {
margin-top: 40px
}

.podcast_importer_form select {
max-width: 70%;
min-width: 225px
}

input.podcast_feed {
min-width: 400px;
max-width: 90%
}

.podcast_importer_form select.post_type_select {
text-transform: capitalize
}

.ver-plugin-container label.ver-form-label {
margin-bottom: 5px;
margin-top: 20px;
display: block
}

h2.ver-importer-header {
margin: 0 0 40px 0
}

.ver-plugin-container {
padding: 40px;
margin: 10px 20px 10px 0;
background-color: #fff;
border: 1px solid #e3e3e3;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px
}

.existing-import-container .import-process-item {
padding: 6px 14px 4px 14px;
color: #848484;
background-color: #f9f9f9;
border: 1px solid #cfcfcf;
border-radius: 4px;
display: inline-block;
position: relative;
top: 0;
margin: 0 25px 0 0;
width: 65%
}

.existing-import-container ul li {
margin: 20px 0;
padding-bottom: 20px;
border-bottom: 1px solid #ddd
}

.existing-import-container ul li:last-child {
border: 0
}

.existing-import-container .delete-button {
margin-left: 10px;
float: right;
position: relative;
top: 1px
}

.wp-core-ui .ver-plugin-container .button-link-delete {
border-color: #a00
}

.wp-core-ui .ver-plugin-container .button-link-delete:hover {
border-color: #dc3232
}

.wp-core-ui .ver-plugin-container .button-link-delete:focus {
box-shadow: none
}

.wp-core-ui .ver-plugin-container .button-link-edit {
top: 1px;
float: right;
position: relative
}

span.ver-existing-post-notice {
font-style: italic;
font-size: 11px
}

span.ver-importer-notice {
margin: -30px 0 40px 0;
display: block;
font-style: italic
}

.tools_page_podcastimport.wp-core-ui .notice.is-dismissible {
padding-right: 0;
margin: 12px 20px 12px 0
}

.advanced-settings-wrapper, .edit-import-form {
max-height: 0;
overflow: hidden;
transition: .3s max-height
}

.edit-import-form.expanded, .expanded .advanced-settings-wrapper {
max-height: 9999px
}

.ver-importer-header.advanced-options {
margin-top: 2em;
cursor: pointer
}

h3.ver-importer-header.advanced-options:before {
content: "+";
font-size: 1.2em;
font-weight: 900;
margin-right: 15px
}

.expanded h3.ver-importer-header.advanced-options:before {
content: "–"
}

.existing-import-container .advanced-options:before {
display: none !important
}
34 changes: 34 additions & 0 deletions asset/admin/js/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
(function () {
const editButtons = document.querySelectorAll(".button-link-edit");

Array.from(editButtons).forEach((button) => {
button.addEventListener("click", (event) => {
event.preventDefault();

const importID = button.getAttribute("data-import-id");
const importForm = document.getElementById(
`edit-import-form--${importID}`
);

if (importForm.classList.contains("expanded")) {
importForm.classList.remove("expanded");
} else {
editButtons.forEach((button) => button.classList.remove("expanded"));

importForm.classList.add("expanded");
}
});
});
}())

jQuery(document).ready(function ($) {
'use strict';
$(".settings-wrapper").each(function () {
var $heading = $(this).find("h3");
var $wrapper = $(this);
$heading.click(function () {
$wrapper.toggleClass("expanded")
});
});
})

31 changes: 0 additions & 31 deletions assets/css/admin.css

This file was deleted.

Binary file removed assets/img/loading.gif
Binary file not shown.
34 changes: 0 additions & 34 deletions assets/js/admin.js

This file was deleted.

Loading

0 comments on commit db10fa4

Please sign in to comment.