Plugin Directory

Changeset 3402181


Ignore:
Timestamp:
11/25/2025 03:55:00 AM (3 weeks ago)
Author:
wpdevart
Message:

code improved

Location:
duplicate-page-or-post/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • duplicate-page-or-post/trunk/admin/css/duplicate_post_menu.css

    r2218607 r3402181  
    1 #save_all_parametrs{
    2     margin-right:20px;
    3 }
    4 .save_all_paramss{
    5   width: 160px;
    6   display: inline-block;
    7   float: right;
     1#save_all_parametrs {
     2    margin-right: 20px;
    83}
    94
    10 .main_parametrs_group_div{
    11     float:left;
    12     background-color:#fafafa;
    13     display:inline-block;
    14     width:100%;
     5.save_all_paramss {
     6    width: 160px;
     7    display: inline-block;
     8    float: right;
     9}
     10
     11.main_parametrs_group_div {
     12    float: left;
     13    background-color: #fafafa;
     14    display: inline-block;
     15    width: 100%;
    1516    box-sizing: border-box;
    1617    position: relative;
    1718    min-width: 430px;
    1819    border: 1px solid #e5e5e5;
    19     -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);
    20     box-shadow: 0 1px 1px rgba(0,0,0,.04); 
     20    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
     21    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    2122    margin-bottom: 20px;
    2223    padding: 0;
     
    2526}
    2627
    27 .main_parametrs_group_div:hover{
     28.main_parametrs_group_div:hover {
    2829    border: 1px solid #D5D5D5;
    2930}
    30 .head_panel_div{
    31     cursor:pointer;
    32     border-bottom:1px solid #e5e5e5;
     31
     32.head_panel_div {
     33    cursor: pointer;
     34    border-bottom: 1px solid #e5e5e5;
    3335}
    34 .main_parametrs_group_div.closed_params .head_panel_div{
    35     border-bottom:0px;
     36
     37.main_parametrs_group_div.closed_params .head_panel_div {
     38    border-bottom: 0px;
    3639}
    37 .title_parametrs_group{
     40
     41.title_parametrs_group {
    3842    display: inline-block;
    3943    -webkit-user-select: none;
     
    4145    -ms-user-select: none;
    4246    user-select: none;
    43     font-weight:bold;
     47    font-weight: bold;
    4448    font-size: 15px;
    4549    padding: 8px 12px;
     
    4751    line-height: 1.4;
    4852}
    49 .open_or_closed{
    50     float:right;
    51     height:20px;
     53
     54.open_or_closed {
     55    float: right;
     56    height: 20px;
    5257    right: 10px;
    5358    color: #aaa;
     
    5964    -webkit-font-smoothing: antialiased;
    6065    -moz-osx-font-smoothing: grayscale;
    61     text-decoration: none!important;
     66    text-decoration: none !important;
    6267}
    63 .head_panel_div:hover .open_or_closed{
    64     color:#777
     68
     69.head_panel_div:hover .open_or_closed {
     70    color: #777
    6571}
    66 .open_or_closed:before{
     72
     73.open_or_closed:before {
    6774    content: '\f142';
    68    
     75
    6976}
    70 .main_parametrs_group_div.closed_params .open_or_closed:before{
     77
     78.main_parametrs_group_div.closed_params .open_or_closed:before {
    7179    content: '\f140';
    7280}
    73 .main_parametrs_group_div.closed_params .inside_information_div{
    74     display:none;
     81
     82.main_parametrs_group_div.closed_params .inside_information_div {
     83    display: none;
    7584}
    76 .section_parametrs_table{
    77     border:0px !important;
     85
     86.section_parametrs_table {
     87    border: 0px !important;
    7888}
    79 .section_parametrs_table td{
     89
     90.section_parametrs_table td {
    8091    display: table-cell !important;
    8192}
    82 .section_parametrs_table > tbody > tr:nth-child(odd){
    83     background-color:rgba(176, 176, 176, 0.07);
     93
     94.section_parametrs_table>tbody>tr:nth-child(odd) {
     95    background-color: rgba(176, 176, 176, 0.07);
    8496}
    85 .section_parametrs_table > tbody > tr td{
    86     vertical-align:middle !important;   
     97
     98.section_parametrs_table>tbody>tr td {
     99    vertical-align: middle !important;
    87100}
    88 .section_parametrs_table > tbody > tr>td:nth-child(1){
    89     width:320px;
     101
     102.section_parametrs_table>tbody>tr>td:nth-child(1) {
     103    width: 320px;
    90104}
     105
    91106.saving_in_progress {
    92     position: relative;
    93     display: none;
    94     width: 20px;
    95     height: 20px;
    96     margin-left: 12px;
    97     top: 4px;
    98     background-image: url(../images/loading.gif);
    99     background-size: 100% 100%;
     107    position: relative;
     108    display: none;
     109    width: 20px;
     110    height: 20px;
     111    margin-left: 12px;
     112    top: 4px;
     113    background-image: url(../images/loading.gif);
     114    background-size: 100% 100%;
    100115}
    101 .padding_loading{
     116
     117.padding_loading {
    102118    width: 130px !important;
    103119}
    104 .sucsses_save{
     120
     121.sucsses_save {
    105122    position: relative;
    106     display:none;
     123    display: none;
    107124    width: 20px;
    108125    height: 20px;
     
    110127    top: 4px;
    111128    background-image: url(../images/success.png);
    112     background-size:100% 100%;
     129    background-size: 100% 100%;
    113130}
    114 .error_in_saving{
     131
     132.error_in_saving {
    115133    position: relative;
    116     display:none;
     134    display: none;
    117135    width: 20px;
    118136    height: 20px;
     
    120138    top: 4px;
    121139    background-image: url(../images/remove_element.png);
    122     background-size:100% 100%;
     140    background-size: 100% 100%;
    123141}
    124 .error_massage{
     142
     143.error_massage {
    125144    color: #BB1E1E;
    126145    font-size: 18px;
    127146    font-weight: bold;
    128147    padding-left: 21px;
    129     display:block;
     148    display: block;
    130149}
  • duplicate-page-or-post/trunk/admin/css/featured_plugins_css.css

    r3222777 r3402181  
    1 .featured_plugin_main{
     1.featured_plugin_main {
    22  background-color: #ffffff;
    33  -webkit-box-sizing: border-box;
     
    99  width: calc((100% - 90px)/3);
    1010  border-radius: 15px;
    11   box-shadow: 1px 1px 7px rgba(0,0,0,0.04);
     11  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.04);
    1212  padding: 20px 25px;
    1313  text-align: center;
    14   -webkit-transition:-webkit-transform 0.3s;
    15   -moz-transition:-moz-transform 0.3s;
    16   transition:transform 0.3s;   
     14  -webkit-transition: -webkit-transform 0.3s;
     15  -moz-transition: -moz-transform 0.3s;
     16  transition: transform 0.3s;
    1717  -webkit-transform: translateY(0);
    18   -moz-transform: translateY0);
     18  -moz-transform: translateY(0);
    1919  transform: translateY(0);
    2020  min-height: 344px;
    21  }
    22  .wpda_featured_plugins_title{
     21}
     22
     23.wpda_featured_plugins_title {
    2324  text-align: center;
    2425  font-size: 50px;
     
    2728  margin: 20px auto 25px;
    2829  line-height: 1.2;
    29  }
    30 .featured_plugin_main:hover{
     30}
     31
     32.featured_plugin_main:hover {
    3133  -webkit-transform: translateY(-2px);
    3234  -moz-transform: translateY(-2px);
    3335  transform: translateY(-2px);
    34  }
    35 .featured_plugin_image{
     36}
     37
     38.featured_plugin_image {
    3639  max-width: 128px;
    3740  margin: 0 auto;
    3841}
    39 .blue_button{
    40 display: inline-block;
    41 font-size: 15px;
    42 text-decoration: none;
    43 border-radius: 5px;
    44 color: #ffffff;
    45 font-weight: 400;
    46 opacity: 1;
    47 -webkit-transition: opacity 0.3s;
    48 -moz-transition: opacity 0.3s;
    49 transition: opacity 0.3s;
    50 background-color: #7052fb;
    51 padding: 10px 22px;
    52 text-transform: uppercase;
     42
     43.blue_button {
     44  display: inline-block;
     45  font-size: 15px;
     46  text-decoration: none;
     47  border-radius: 5px;
     48  color: #ffffff;
     49  font-weight: 400;
     50  opacity: 1;
     51  -webkit-transition: opacity 0.3s;
     52  -moz-transition: opacity 0.3s;
     53  transition: opacity 0.3s;
     54  background-color: #7052fb;
     55  padding: 10px 22px;
     56  text-transform: uppercase;
    5357}
     58
    5459.blue_button:hover,
    5560.blue_button:focus {
    56   color:#ffffff;
     61  color: #ffffff;
    5762  box-shadow: none;
    5863  outline: none;
    5964}
    60 .featured_plugin_image img{
     65
     66.featured_plugin_image img {
    6167  max-width: 100%;
    6268}
    63 .featured_plugin_image a{
     69
     70.featured_plugin_image a {
    6471  display: inline-block;
    6572}
    66 .featured_plugin_information{   
     73
     74.featured_plugin_title {
     75  color: #7052fb;
     76  font-size: 18px;
     77  display: inline-block;
     78}
     79
     80.featured_plugin_title a {
     81  text-decoration: none;
     82  font-size: 19px;
     83  line-height: 22px;
     84  color: #7052fb;
    6785
    6886}
    69 .featured_plugin_title{
    70 color: #7052fb;
    71 font-size: 18px;
    72 display: inline-block;
     87
     88.featured_plugin_title h4 {
     89  margin: 0px;
     90  margin-top: 20px;
     91  min-height: 44px;
    7392}
    74 .featured_plugin_title a{
    75 text-decoration:none;
    76 font-size: 19px;
    77 line-height: 22px;
    78 color: #7052fb;
    79      
     93
     94.featured_plugin_description {
     95  font-size: 14px;
     96  min-height: 63px;
    8097}
    81 .featured_plugin_title h4{
    82   margin: 0px;
    83   margin-top: 20px;     
    84   min-height: 44px;
    85 }
    86 .featured_plugin_description{
    87   font-size: 14px;
    88     min-height: 63px;
    89 }
    90 @media screen and (max-width: 1460px){
     98
     99@media screen and (max-width: 1460px) {
    91100  .featured_plugin_main {
    92101    margin-right: 20px;
     
    95104    padding: 20px 10px;
    96105  }
     106
    97107  .featured_plugin_description {
    98108    font-size: 13px;
     
    100110  }
    101111}
    102 @media screen and (max-width: 1279px){
     112
     113@media screen and (max-width: 1279px) {
    103114  .featured_plugin_main {
    104115    width: calc((100% - 60px)/2);
    105116    padding: 20px 20px;
    106117    min-height: 363px;
    107   } 
     118  }
    108119}
    109 @media screen and (max-width: 768px){
     120
     121@media screen and (max-width: 768px) {
    110122  .featured_plugin_main {
    111123    width: calc(100% - 30px);
     
    114126    margin: 0 auto 20px;
    115127    float: none;
    116   }
    117   .featured_plugin_title h4{
     128  }
     129
     130  .featured_plugin_title h4 {
    118131    min-height: auto;
    119   }
    120   .featured_plugin_description{
     132  }
     133
     134  .featured_plugin_description {
    121135    min-height: auto;
    122       font-size: 14px;
    123   } 
     136    font-size: 14px;
     137  }
    124138}
  • duplicate-page-or-post/trunk/admin/css/hire_expert.css

    r3222777 r3402181  
    1 
    2 .wpda_hire_exp_h1{
     1.wpda_hire_exp_h1 {
    32  text-align: center;
    43  font-size: 50px;
     
    87  line-height: 1.2;
    98}
    10 .hire_expert_main{
    11  background-color:white;
    12  width:calc(100% - 20px);
    13  padding:20px;
    14  text-align: center;
    15  box-sizing: border-box;
     9
     10.hire_expert_main {
     11  background-color: white;
     12  width: calc(100% - 20px);
     13  padding: 20px;
     14  text-align: center;
     15  box-sizing: border-box;
    1616  padding-left: 60px;
    1717}
     18
    1819.wpdevart_hire_main {
    1920  color: #060606;
     
    3435  transform: translateY(0);
    3536  min-height: 380px;
    36   background-image: linear-gradient(#1d2327,#2b2350);
     37  background-image: linear-gradient(#1d2327, #2b2350);
    3738  vertical-align: top;
    38   cursor:pointer;
     39  cursor: pointer;
    3940}
    40 .wpda_hire_buklet:hover,.wpda_hire_buklet:active,.wpda_hire_buklet{
    41 color:#060606;
    42 text-decoration:none;
     41
     42.wpda_hire_buklet:hover, .wpda_hire_buklet:active, .wpda_hire_buklet {
     43  color: #060606;
     44  text-decoration: none;
    4345}
    44 @media screen and (max-width: 1850px){
    45 .wpdevart_hire_main {
    46   margin-right: 25px;
    47   width: calc((100% - 125px)/5);
     46
     47@media screen and (max-width: 1850px) {
     48  .wpdevart_hire_main {
     49    margin-right: 25px;
     50    width: calc((100% - 125px)/5);
     51  }
    4852}
     53
     54@media screen and (max-width: 1450px) {
     55  .wpdevart_hire_main {
     56    margin-right: 25px;
     57    width: calc((100% - 100px)/4);
     58  }
    4959}
    50 @media screen and (max-width: 1450px){
    51 .wpdevart_hire_main {
    52   margin-right: 25px;
    53   width: calc((100% - 100px)/4);
     60
     61@media screen and (max-width: 1150px) {
     62  .wpdevart_hire_main {
     63    margin-right: 30px;
     64    width: calc((100% - 90px)/3);
     65  }
    5466}
     67
     68@media screen and (max-width: 900px) {
     69  .wpdevart_hire_main {
     70    margin-right: 30px;
     71    width: calc((100% - 60px)/2);
     72  }
    5573}
    56 @media screen and (max-width: 1150px){
    57 .wpdevart_hire_main {
    58   margin-right: 30px;
    59   width: calc((100% - 90px)/3);
     74
     75@media screen and (max-width: 500px) {
     76  .wpdevart_hire_main {
     77    margin-right: 0px;
     78    width: 100%;
     79  }
     80
     81  .hire_expert_main {
     82    width: 100%;
     83  }
    6084}
    61 }
    62 @media screen and (max-width: 900px){
    63 .wpdevart_hire_main {
    64   margin-right: 30px;
    65   width: calc((100% - 60px)/2);
    66 }
    67 }
    68 @media screen and (max-width: 500px){
    69 .wpdevart_hire_main {
    70   margin-right: 0px;
    71   width: 100%;
    72 }
    73 .hire_expert_main{
    74   width:100%;
    75 }
    76 }
     85
    7786.wpdevart_hire_main:hover {
    7887  box-shadow: 0 6px 20px 1px #151d22;
    7988}
     89
    8090.wpdevart_hire_image {
    8191  max-width: 128px;
    8292  margin: 0 auto;
    8393}
     94
    8495.wpdevart_hire_image img {
    8596  max-width: 100%;
    8697}
     98
    8799.wpdevart_hire_title {
    88100  color: #ffffff;
     
    92104  margin-top: 15px;
    93105}
     106
    94107.wpdevart_hire_description {
    95108  font-size: 14px;
     
    97110  color: #ffffff;
    98111}
    99 .wpda_hire_button{
     112
     113.wpda_hire_button {
    100114  background-color: #2b2350;
    101115  border: none;
     
    108122  cursor: pointer;
    109123}
    110 .wpda_hire_button:visited,.wpda_hire_button:hover,.wpda_hire_button:active,.wpda_hire_button{
    111 color: #ffffff;
     124
     125.wpda_hire_button:visited, .wpda_hire_button:hover, .wpda_hire_button:active, .wpda_hire_button {
     126  color: #ffffff;
    112127  text-decoration: none;
    113128  font-size: 18px;
    114129  font-weight: bold;
    115 border-radius:3px;
     130  border-radius: 3px;
    116131}
    117 .wpda_hire_button:hover{
    118 box-shadow: 0px 4px 11px 0px #151d22;
     132
     133.wpda_hire_button:hover {
     134  box-shadow: 0px 4px 11px 0px #151d22;
    119135}
  • duplicate-page-or-post/trunk/admin/js/duplicate_post_menu.js

    r2218607 r3402181  
    11
    2 function wpdevart_duplicate_post_save_admin_menu_parametrs(){
     2function wpdevart_duplicate_post_save_admin_menu_parametrs() {
    33    jQuery('#wpdevart_save_in_databese').addClass('padding_loading');
    4     jQuery('#wpdevart_save_in_databese').prop('disabled', true);       
    5     jQuery('#wpdevart_save_in_databese .saving_in_progress').css('display','inline-block');
    6     jQuery('#wpdevart_save_in_databese').attr('data-clickabel','no');
     4    jQuery('#wpdevart_save_in_databese').prop('disabled', true);
     5    jQuery('#wpdevart_save_in_databese .saving_in_progress').css('display', 'inline-block');
     6    jQuery('#wpdevart_save_in_databese').attr('data-clickabel', 'no');
    77    var clickabel
    8     var wpdevart_data={};
    9     jQuery("#wpdevart_parametrs_table > tbody > tr input").each(function(){
    10         wpdevart_data[jQuery(this).attr("id")]=jQuery(this).val();
     8    var wpdevart_data = {};
     9    jQuery("#wpdevart_parametrs_table > tbody > tr input").each(function () {
     10        wpdevart_data[jQuery(this).attr("id")] = jQuery(this).val();
    1111    });
    12     jQuery("#wpdevart_parametrs_table > tbody > tr select").each(function(){
    13         wpdevart_data[jQuery(this).attr("id")]=jQuery(this).val();
    14     }); 
    15    
     12    jQuery("#wpdevart_parametrs_table > tbody > tr select").each(function () {
     13        wpdevart_data[jQuery(this).attr("id")] = jQuery(this).val();
     14    });
     15
    1616    jQuery.ajax({
    17         type:'POST',
    18         url: wpdevart_js_object.ajax_url+'?action=wpdevart_duplicate_post_parametrs_save_in_db',
     17        type: 'POST',
     18        url: wpdevart_js_object.ajax_url + '?action=wpdevart_duplicate_post_parametrs_save_in_db',
    1919        data: wpdevart_data,
    20     }).done(function(date) {
    21         jQuery('#wpdevart_save_in_databese .saving_in_progress').css('display','none');
    22         if(date=="1"){                     
    23             jQuery('#wpdevart_save_in_databese .sucsses_save').css('display','inline-block');
    24             setTimeout(function(){jQuery('#wpdevart_save_in_databese').attr('data-clickabel','yes');jQuery('#wpdevart_save_in_databese .sucsses_save').hide('fast');jQuery('#wpdevart_save_in_databese').removeClass('padding_loading');jQuery('#wpdevart_save_in_databese').prop('disabled', false);   },1800);
    25             jQuery('#wpdevart_save_in_databese').attr('data-clickabel','no');
     20    }).done(function (date) {
     21        jQuery('#wpdevart_save_in_databese .saving_in_progress').css('display', 'none');
     22        if (date == "1") {
     23            jQuery('#wpdevart_save_in_databese .sucsses_save').css('display', 'inline-block');
     24            setTimeout(function () { jQuery('#wpdevart_save_in_databese').attr('data-clickabel', 'yes'); jQuery('#wpdevart_save_in_databese .sucsses_save').hide('fast'); jQuery('#wpdevart_save_in_databese').removeClass('padding_loading'); jQuery('#wpdevart_save_in_databese').prop('disabled', false); }, 1800);
     25            jQuery('#wpdevart_save_in_databese').attr('data-clickabel', 'no');
    2626        }
    27         else{
    28             jQuery('#wpdevart_save_in_databese .error_in_saving').css('display','inline-block');
     27        else {
     28            jQuery('#wpdevart_save_in_databese .error_in_saving').css('display', 'inline-block');
    2929            jQuery('#wpdevart_save_in_databese').parent().find('.error_massage').eq(0).html(date);
    3030        }
    3131    });
    3232}
    33 jQuery(document).ready(function(){
    34         jQuery("#wpdevart_save_in_databese").click(function(){
    35             if(jQuery('#wpdevart_save_in_databese').attr('data-clickabel')=="yes"){
    36                 wpdevart_duplicate_post_save_admin_menu_parametrs();
    37             }
    38         })
     33jQuery(document).ready(function () {
     34    jQuery("#wpdevart_save_in_databese").click(function () {
     35        if (jQuery('#wpdevart_save_in_databese').attr('data-clickabel') == "yes") {
     36            wpdevart_duplicate_post_save_admin_menu_parametrs();
     37        }
    3938    })
     39})
  • duplicate-page-or-post/trunk/readme.txt

    r3308912 r3402181  
    44Tags: duplicate page, duplicate post, clone, clone page, clone post
    55Requires at least: 3.4.0
    6 Tested up to: 6.8
    7 Stable tag: 1.6.4
     6Tested up to: 6.8.3
     7Stable tag: 1.6.5
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    335335
    336336*  tested
     337
     338= 1.6.4 =
     339
     340*  code improved
  • duplicate-page-or-post/trunk/wpdevart-duplicate-post.php

    r3308912 r3402181  
    55* Author URI: https://wpdevart.com/
    66* Description: Duplicate Page or Post is an great tool that allow to duplicate pages and posts. Now you can do it in one click.
    7 * Version: 1.6.4
     7* Version: 1.6.5
    88* Author: wpdevart
    99* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.