منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   مشكلة في قالب وورد بريس (http://vb.ma7room.com/showthread.php?t=2302876)

محروم.كوم 08-16-2018 07:22 AM

مشكلة في قالب وورد بريس
 
السلام عليكم

تواجهني مشكلة في قالب وورد بريس للافلام

المشكلة عند اظافة خليفة لمسلسل بمعنى انه لايحدد الخلفية التي قمت بتحديدها من الوسائط

لكن في حين اظافة فيلم لاتواجهني المشكلة

اين تكمل المشكلة اشك انها في ملف الجافا سكربت للوحة تحكم القالب

رمز PHP:

jQuery
(document).ready(function($) {

// menu

if($("#tr-grabber-menu").length) {

$(
'.wrap h1').after('');
$(
"#tr-grabber-menu").appendTo("#tr-grabber-menunav");
$(
"#tr-grabber-menunav").next().remove();

if($(
".subsubsub").length) {

var
wpmenugrabber = $('.subsubsub').html().split("\n");
var
content = '';
var
type = $('input[name="tr_post_type"]').val();
$.
each(wpmenugrabber, function(i) {
if(
wpmenugrabber[i]!='' ) {
content+= wpmenugrabber[i].replace('post_type=post', 'post_type=post&tr_post_type='+type).replace('');
$(
'.trgrabber-media-delete').parent().show();
});

file_frame.open();

});

$(
document.body).on('click', '.trgrabber-media-delete' , function(event) {

event.preventDefault();

var
title = $(this).data('title');
$(
'.trgrabber-add-media').html(title);
$(
'#trgrabber_backdrop_id').val('');
$(
this).parent().hide();

});

// links

// move

$('#tr-grabber-content-links').sortable({
items: '.tr-grabber-row',
cursor: 'move',
});

// add

$("body").on("click", "#trgrabber_addlink", function(e){
e.preventDefault();

var clone = $(
".tr-grabber-row:first" ).clone().insertBefore( ".tr-grabber-row:first" );
$(
".tr-grabber-row:first select option" ).prop("selected", false);
$(
".tr-grabber-row:first input[type='text'],.tr-grabber-row:first input[type='date']" ).val('');
});

// remove

$("body").on("click", ".trgrabber_removelink", function(e){
e.preventDefault();

var
num = $('.tr-grabber-row').length;

if(
num>1){
$(
this).parent().parent().remove();
}else{
$(
".tr-grabber-row:first select option" ).prop("selected", false);
$(
".tr-grabber-row:first input" ).val('');
}

});

// quick movies

// open

$("body").on("click", "#trgrabber_quiclinks", function(e){

$(
'#tr_quick_links_content').show();

});

// submit

$("body").on("click", ".tr_quick_links_submit_movies", function(e){

$(
'#tr_quick_links_content').hide();

var
links = $('textarea[name="tr_quick_links_links"]').val().split("\n");
var
type = $('select[name="tr_quick_links_type"] option:selected').val();
var
lang = $('select[name="tr_quick_links_lang"] option:selected').val();
var
quality = $('select[name="tr_quick_links_quality"] option:selected').val();
$.
each(links, function(i) {
if(
links[i]!='') {
$(
'#trgrabber_addlink').click();
$(
'#tr-grabber-content-links tr:first input[name="trgrabber_type[]"]').val(type);
$(
'#tr-grabber-content-links tr:first button').removeClass('current');
if(
type == 1 ) {
$(
'#tr-grabber-content-links tr:first button.trgrabberbt_a').addClass('current');
}else{
$(
'#tr-grabber-content-links tr:first button.trgrabberbt_b').addClass('current');
}
$(
'#tr-grabber-content-links tr:first input[name="trgrabber_link[]"]').val(links[i]);
$(
'#tr-grabber-content-links tr:first select[name="trgrabber_lang[]"] option[value='+lang+']').attr('selected','selected');
$(
'#tr-grabber-content-links tr:first select[name="trgrabber_quality[]"] option[value='+quality+']').attr('selected','selected');
}
});
$(
'textarea[name="tr_quick_links_links"]').val('');
});

// close

$("body").on("click", "#quicklinks_close", function(e){

$(
'#tr_quick_links_content').hide();

});

// type link

$("body").on("click", ".trgrabberbt_t", function(e){

var
id = $(this).data('id');
$(
this).parent().parent().find('button').removeClass('current');
$(
this).addClass('current');
$(
this).parent().parent().next().val(id);

});

/*Dropdown*/
$('.AADrpd').each(function() {
var
$AADrpdwn = $(this);
$(
'.AALink', $AADrpdwn).click(function(e){
e.preventDefault();
$AADrpdDv = $('.AACont', $AADrpdwn);
$AADrpdDv.parent('.AADrpd').toggleClass('on');
$(
'.AACont').not($AADrpdDv).parent('.AADrpd').removeClass('on');
return
false;
});
});
$(
document).on('click', function(e){
if ($(
e.target).closest('.AACont').length === 0) {
$(
'.AACont').parent('.AADrpd').removeClass('on');
}
});

// add / update seasons

$("body").on("click", "#updtseason", function(event) {

event.preventDefault();

var
href = $(this).data('href');

$(
'#trgrabber_seasons_lg').show();

$(
'#grabber_iframe').append('');

});

// add / update episodes

$("body").on("click", ".updtepsd", function(event) {

event.preventDefault();

var
href = $(this).data('href');

$(
'#trgrabber_seasons_lg').show();

$(
'#grabber_iframe').append('');

});

$(
"body").on("click", ".grabberadvanced", function(event) {

$(
'.term-slug-wrap,.term-description-wrap').show();
$(
this).hide();

});

// image taxonomys

$(document.body).on('click', '.tr-grabber-media-tax' , function(event) {

event.preventDefault();

var
$this = $(this);
var
id = $(this).data('id');
var
postid = $(this).data('postid');
var
title = $(this).data('title');
var
button = $(this).data('button');
var
nonce = $(this).data('nonce');

var
file_frame = wp.media.frames.file_frame = wp.media({
title: title,
button: {
text: button
},
multiple: false
});

file_frame.on( 'select', function() {
attachment = file_frame.state().get('selection').first().toJSON();
$(
'#tr-grabber-media-content').val(attachment.id);
$(
'#image').html('');
$(
'.trgrabber-media-tax-delete').show();
});

file_frame.open();

});

$(
document.body).on('click', '.trgrabber-media-tax-delete' , function(event) {

event.preventDefault();

$(
'#tr-grabber-media-content').val('');
$(
'#image').html('');
$(
'.trgrabber-media-tax-delete').hide();

});

// config

// reorder homecontrol

$('#tr-homecontrol').sortable({
items: '.tr-homecontrol-row',
cursor: 'move',
});

$(
document.body).on('click', '.trgrabberselect' , function(event) {

if ( $(
this ).hasClass( "checked" ) ) {
var
value = $(this).next().val().split('|');
$(
this).next().val(value[0]+'|'+value[1]+'|2');
$(
this).removeClass('checked dashicons dashicons-yes').addClass('unchecked');
}else{
var
value = $(this).next().val().split('|');
$(
this).next().val(value[0]+'|'+value[1]+'|1');
$(
this).addClass('checked dashicons dashicons-yes').removeClass('unchecked');
}

});

// edit widget text

$(document.body).on('click', '.trhomecontrol_widgetext' , function(event) {
$(
'#tr-grabber-addtext').show();
$(
window).scrollTop($('#tr-grabber-addtext').offset().top);
});

// list posts

// view
$(document.body).on('click', '.trgrabber_viewlink' , function(event) {
event.preventDefault();
var
id = $( this ).data( "id" );
var
href = $('#post-'+id+' .edit a').attr('href');
location.href = href;
});

// edit
$(document.body).on('click', '.trgrabber_editlink' , function(event) {
event.preventDefault();
var
id = $( this ).data( "id" );
var
href = $('#post-'+id+' .edit a').attr('href');
location.href = href;
});

// delete
$(document.body).on('click', '.trgrabber_deletelink' , function(event) {
event.preventDefault();
var
id = $( this ).data( "id" );
var
href = $('#post-'+id+' .trash a').attr('href');
location.href = href;
});

// tabs config
$(document.body).on('click', '.tr-config-tab-ul button' , function(event) {
var
tab = $(this).data('tab');
$(
'.tr-config-tab-ul li').removeClass('Current');
$(
this).parent().addClass('Current');
$(
'.tr-config-tab').hide();
$(
'#tr-config-tab-'+tab).show();
});

// tabs config prefix posts
$("#grabber-prefixpost").change(function() {
if(
this.checked) {
$(
'.prefix_slugs_grabber').show();
}else{
$(
'.prefix_slugs_grabber').hide();
}
});

// msj update
$(document.body).on('click', '#tr-grabber-warning-upt' , function(event) {
$(
this).hide();
$(
'.tr_grabber_continue').show();
});

// iframe update

$("body").on("click", "#update_db_trgrabber", function(event) {

event.preventDefault();

$(
'body').append('




'
);

var
href = $(this).data('href');

$(
'#trgrabber_update_lg').show();

$(
'#grabber_update_iframe').append('');

});
});
</span> </div> </div> </div></div>


الساعة الآن 07:06 AM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227