- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
163 lines
5.0 KiB
PHP
Executable File
163 lines
5.0 KiB
PHP
Executable File
<?php
|
|
|
|
if(!isset($submitBut))
|
|
$submitBut="submit";
|
|
$id=0;
|
|
|
|
?>
|
|
<form method="post" name="<?php echo $module;?>_add_form" id="quick_form_<?php echo $data["id"];?>" class="validate" novalidate="novalidate">
|
|
<fieldset class="inline-edit-col-left">
|
|
<legend class="inline-edit-legend">Quick Edit</legend>
|
|
<div class="inline-edit-col">
|
|
<?php
|
|
|
|
|
|
$i=0;
|
|
|
|
?>
|
|
|
|
<?php
|
|
foreach($fields_list as $field)
|
|
{
|
|
|
|
|
|
if(isset($data[$field["name"]]))
|
|
$field["value"]=$data[$field["name"]];
|
|
elseif(!isset($data["value"]))
|
|
$field["value"]="";
|
|
if($field["name"]=="year_end" && $field["name"]==0)
|
|
$field["value"]="Encore";
|
|
|
|
if($i==4)
|
|
{
|
|
|
|
?>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset class="inline-edit-col-center inline-edit-categories">
|
|
<div class="inline-edit-col">
|
|
<?php
|
|
}
|
|
if($i==5)
|
|
{
|
|
|
|
?>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset class="inline-edit-col-right" >
|
|
<div class="inline-edit-col" style="padding-top:30px">
|
|
<?php
|
|
}
|
|
$i++;
|
|
$id_field=$module."_".$field["name"];
|
|
if($field["type"]=='text' || $field["type"]=='password' || $field["type"]=='number')
|
|
{
|
|
?>
|
|
<label>
|
|
<?php /*if($i>=4)
|
|
echo "<br>";*/?>
|
|
<span class="title" <?php if($i>=5) echo 'style="width:120px"';?> ><?php echo $field["title"];?></span>
|
|
<span class="input-text-wrap">
|
|
|
|
<input <?php if($i>=5) echo 'style="width:80%"';?> type="text" name="<?php echo $field["name"];?>" class="ptitle" value="<?php echo mb_convert_encoding($field["value"], 'ISO-8859-1', 'UTF-8');?>" /></span>
|
|
</label>
|
|
|
|
<?php
|
|
}
|
|
if($field["type"]=='textarea')
|
|
{
|
|
|
|
?>
|
|
<label class="inline-edit-tags">
|
|
<span class="title"><?php echo $field["title"];?></span>
|
|
<textarea cols="22" rows="1" name="<?php echo $field["name"];?>" class="tax_input_post_tag"><?php echo mb_convert_encoding($field["value"], 'ISO-8859-1', 'UTF-8');?></textarea>
|
|
</label>
|
|
|
|
<?php
|
|
}
|
|
if($field["type"]=='select')
|
|
{
|
|
|
|
?>
|
|
|
|
<label>
|
|
<span class="title" <?php if($i>=4) echo 'style="width:120px"';?>><?php echo $field["title"];?></span>
|
|
<span class="input-text-wrap">
|
|
<select class="ptitle" <?php if($i>=4) echo 'style="width:80%"';?> name="<?php echo $field["name"];?>">
|
|
<option value="0">Select Item</option>
|
|
<?php
|
|
if(isset($field["options"]))
|
|
foreach($field["options"] as $tit)
|
|
{
|
|
$selected="";
|
|
if(isset($field["value"]) && $field["value"]==$tit["id"])
|
|
$selected="selected='selected'";
|
|
echo "<option value='".$tit["id"]."' ".$selected.">".$tit["title"]."</option>";
|
|
}
|
|
?>
|
|
</select>
|
|
</span>
|
|
</label>
|
|
|
|
<?php
|
|
}
|
|
if($field["type"]=='categories')
|
|
{
|
|
if(!isset($categories_lis))
|
|
$categories_lis=get_cat_tree();
|
|
|
|
?>
|
|
<span class="title inline-edit-categories-label">Categories</span>
|
|
<?php
|
|
display_cat_tree($categories_lis,$field);
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
}
|
|
if($field["type"]=='image')
|
|
{
|
|
|
|
?>
|
|
<label>
|
|
<span class="title"><?php echo $field["title"];?></span>
|
|
<span class="input-text-wrap">
|
|
<input name="<?php echo $field["name"];?>" type="file" id="<?php echo $id_field;?>" value="" /></span>
|
|
</label>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
|
|
<input name="action" value="functions" type="hidden" />
|
|
<input name="action_to_do" value="add_item2" type="hidden" />
|
|
<input name="module" value="<?php echo $module;?>" type="hidden" />
|
|
<input name="id" value="<?php echo $data["id"];?>" type="hidden" />
|
|
|
|
<div class="submit inline-edit-save">
|
|
<button type="button" class="button cancel alignleft" onclick="jQuery('.quick_edit_tr').hide();jQuery('#post-<?php echo $data["id"];?>').show();">Cancel</button>
|
|
|
|
<input type="button" name="bulk_edit" id="bulk_edit" class="button button-primary alignright" value="Update" onclick="quick_edit_list('<?php echo $module;?>','<?php echo $data["id"];?>');" />
|
|
|
|
<span class="spinner" id="loader_quick_<?php echo $data["id"];?>"></span>
|
|
|
|
<input type="hidden" name="post_view" value="list" />
|
|
<input type="hidden" name="screen" value="edit-post" />
|
|
<br class="clear" />
|
|
|
|
<div class="notice notice-error notice-alt inline hidden" id="error_<?php echo $data["id"];?>" >
|
|
<p class="error"></p>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|