رفتن به مطلب

عکسها در تنظیمات


پست های پیشنهاد شده

شما باید در تابع تنظیمات پوسته قرار دهید

ایجاد پنل تنظیمات در مدیریت

نام input را هم اصلاح کنید

(از ارسال اسپم هم خودداری کنید!)

لینک به ارسال

شما اینو نگاه کن :

<?php

/**

* Implements an optional custom header for Twenty Twelve.

* See http://codex.wordpress.org/Custom_Headers

*

* @package WordPress

* @subpackage Twenty_Twelve

* @since Twenty Twelve 1.0

*/

/**

* Sets up the WordPress core custom header arguments and settings.

*

* @uses add_theme_support() to register support for 3.4 and up.

* @uses twentytwelve_header_style() to style front-end.

* @uses twentytwelve_admin_header_style() to style wp-admin form.

* @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form.

*

* @since Twenty Twelve 1.0

*/

function twentytwelve_custom_header_setup() {

$args = array(

// Text color and image (empty to use none).

'default-text-color' => '444',

'default-image' => '',

// Set height and width, with a maximum value for the width.

'height' => 250,

'width' => 960,

'max-width' => 2000,

// Support flexible height and width.

'flex-height' => true,

'flex-width' => true,

// Random image rotation off by default.

'random-default' => false,

// Callbacks for styling the header and the admin preview.

'wp-head-callback' => 'twentytwelve_header_style',

'admin-head-callback' => 'twentytwelve_admin_header_style',

'admin-preview-callback' => 'twentytwelve_admin_header_image',

);

add_theme_support( 'custom-header', $args );

}

add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );

/**

* Styles the header text displayed on the blog.

*

* get_header_textcolor() options: 444 is default, hide text (returns 'blank'), or any hex value.

*

* @since Twenty Twelve 1.0

*/

function twentytwelve_header_style() {

$text_color = get_header_textcolor();

// If no custom options for text are set, let's bail

if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )

return;

// If we get this far, we have custom styles.

?>

<style type="text/css">

<?php

// Has the text been hidden?

if ( ! display_header_text() ) :

?>

.site-title,

.site-description {

position: absolute !important;

clip: rect(1px 1px 1px 1px); /* IE7 */

clip: rect(1px, 1px, 1px, 1px);

}

<?php

// If the user has set a custom color for the text, use that.

else :

?>

.site-title a,

.site-description {

color: #<?php echo $text_color; ?> !important;

}

<?php endif; ?>

</style>

<?php

}

/**

* Styles the header image displayed on the Appearance > Header admin panel.

*

* @since Twenty Twelve 1.0

*/

function twentytwelve_admin_header_style() {

?>

<style type="text/css">

.appearance_page_custom-header #headimg {

border: none;

}

#headimg h1,

#headimg h2 {

line-height: 1.6;

margin: 0;

padding: 0;

}

#headimg h1 {

font-size: 30px;

}

#headimg h1 a {

color: #515151;

text-decoration: none;

}

#headimg h1 a:hover {

color: #21759b;

}

#headimg h2 {

color: #757575;

font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;

margin-bottom: 24px;

}

#headimg img {

max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;

}

</style>

<?php

}

/**

* Outputs markup to be displayed on the Appearance > Header admin panel.

* This callback overrides the default markup displayed there.

*

* @since Twenty Twelve 1.0

*/

function twentytwelve_admin_header_image() {

?>

<div id="headimg">

<?php

if ( ! display_header_text() )

$style = ' style="display:none;"';

else

$style = ' style="color:#' . get_header_textcolor() . ';"';

?>

<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>

<h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>

<?php $header_image = get_header_image();

if ( ! empty( $header_image ) ) : ?>

<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />

<?php endif; ?>

</div>

<?php }

من اینو برای قالب قرار میدم

چه چیزهایی نیاز هست تو فایلهای دیگه بزارم تا این قسمت با بقیه ی قسمتها مچ بشه ؟

ویرایش شده توسط Morteza
لینک به ارسال

در کدی که دادید خودش چنین قابلیتی داره!

برای header صفحه

برای بخشهای دیگر ابتدا آموزش ایجاد پنل تنظیمات را بخوانید

سپس کدها را متناسب با آموزش قرار دهید

(عجله نکنید!)

لینک به ارسال

خب میدونم

این فایل برای تغییر هدره

ولی برای ی پوسته دیگه

میخوام این فایلو برای پوسته خودم بزارم

لینک به ارسال

طبق آدرس زیر باید برای پوسته موردنظر اضافه کنید:

codex.wordpress.org/Custom_Headers

لینک به ارسال
  • 3 هفته بعد...

با این آدرس نتونستم مشکلمو حل کنم

من امشب هرجور شده باید دکمه آپلود بزارم

اگر کسی میتونه راهنمایی کنه یا انجام بده

هزینه هم میپردازم

فقط فوری خیلی کارم گیره

لینک به ارسال

هر راهی که مناسب تر بود رو معرفی کردیم.

همین ها باید کار کنه راه دیگه رو شاید دوستان دیگه بدونن.

لینک به ارسال

خب راهی که در اول گفتید که نشد !

هرچی روی دکمه آپلود کلیک میکنم هیچ اتفاقی نمی افته !

لینک به ارسال

اینم کد کاملی ک استفاده میکنم »


<script >
jQuery(document).ready(function($){
var _custom_media = true,
_orig_send_attachment = wp.media.editor.send.attachment;
$('.uploader .button').click(function(e) {
var send_attachment_bkp = wp.media.editor.send.attachment;
var button = $(this);
var id = button.attr('id').replace('_button', '');
_custom_media = true;
wp.media.editor.send.attachment = function(props, attachment){
if ( _custom_media ) {
$("#"+id).val(attachment.url);
} else {
return _orig_send_attachment.apply( this, [props, attachment] );
};
}
wp.media.editor.open(button);
return false;
});
$('.add_media').on('click', function(){
_custom_media = false;
});
});
</script>
<div class="uploader">
<input type="text" name="settings[_unique_name]" id="_unique_name" />
<input class="button" name="_unique_name_button" id="_unique_name_button" value="Upload" />
</div>

لینک به ارسال

مثلا از ی کد دیگه مانند این یکی نمیشه استفاده کرد » » »


<form action="upload.php" enctype="multipart/form-data" id="upload_form" method="post">
<p>
<input type="file" size="50" name="userfile[]"> <br>
<input type="file" size="50" name="userfile[]"> <br>
<input type="file" size="50" name="userfile[]"> <br>
<input type="file" size="50" name="userfile[]"> <br>
<input type="file" size="50" name="userfile[]"> <br>
<span id="more_file_inputs"></span> <br>
نوع آپلود:
<input type="radio" checked="checked" value="0" name="private_upload"> عمومی
<input type="radio" value="1" name="private_upload"> خصوصی <br><br>
<input type="button" value="افزودن فایلهای بیشتر" onclick="javascript:new_file_input();" class="button1"> <input type="button" onclick="javascript:toggle_lightbox('index.php?act=upload_in_progress', 'progress_bar_lightbox'); javascript:document.forms['upload_form'].submit();" value="شروع آپلود" class="button1">
</p>
</form>

لینک به ارسال

خب این هم کدهای کلی

<?php

/**

* @package WordPress

* @subpackage Showcaser Theme

*/

//register settings

function showcaser_theme_settings_init(){

register_setting( 'showcaser_theme_settings', 'showcaser_theme_settings' );

}

//menu

function showcaser_add_settings_page() {

add_menu_page( __( 'Showcaser' ), __( 'تنظيمات پوسته' ), 'manage_options', 'showcaser-settings', 'showcaser_theme_settings_page');

}

add_action( 'admin_init', 'showcaser_theme_settings_init' );

add_action( 'admin_menu', 'showcaser_add_settings_page' );

//start settings page

function showcaser_theme_settings_page() {

global $slider_effects;

if ( ! isset( $_REQUEST['updated'] ) )

$_REQUEST['updated'] = false;

?>

<div class="wrap">

<div id="icon-options-general" class="icon32"></div>

<h2><?php _e( 'تنظيمات پوسته' ) ?></h2>

<?php if ( false !== $_REQUEST['updated'] ) : ?>

<div class="updated fade"><p><strong><?php _e( 'Options saved' ); ?></strong></p></div>

<?php endif; ?>

<form method="post" action="options.php">

<?php settings_fields( 'showcaser_theme_settings' ); ?>

<?php $options = get_option( 'showcaser_theme_settings' ); ?>

<table class="form-table">

<tr valign="top">

<th scope="row">همکاران ساخت پوسته</th>

<td><p>پوسته <a href="http://www.wpexplorer.com/showcaser-wordpress-theme.html">Showcaser</a> ساخته شده توسط AJ Clarke <a href="http://www.wpexplorer.com"><strong>WPExplorer.com</strong></a></p>

ويرايش و ترجمه پوسته توسط گروه <a href="http://rooeen.com/" style="color: rgb(0, 204, 204);"><strong>رويين</strong></a>

</td>

</tr>

<tr valign="top">

<th scope="row">لایک زدن صفحه سازنده پوسته</th>

<td><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=215260205165212&xfbml=1"></script><fb:like href="http://www.wpexplorer.com/" send="true" layout="button_count" width="450" height="40" show_faces="false" font=""></fb:like></td>

</tr>

<tr valign="top">

<th scope="row"><?php _e( 'ایکون کنار نوار آدرس (favicon)' ); ?></th>

<td>

<input id="showcaser_theme_settings[favicon]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[favicon]" value="<?php esc_attr_e( $options['favicon'] ); ?>" />

<br />

<label class="description abouttxtdescription" for="showcaser_theme_settings[favicon]"><?php _e( 'آپلود کنید یا آدرس ایکون را وارد کنید.' ); ?></label>

</td>

</tr>

<tr valign="top">

<th scope="row"><?php _e( 'لوگو' ); ?></th>

<td>

<input id="showcaser_theme_settings[logo]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[logo]" value="<?php esc_attr_e( $options['logo'] ); ?>" />

<br />

<label class="description abouttxtdescription" for="showcaser_theme_settings[logo]"><?php _e( 'آپلود کنید یا آدرس تصویر لوگو را وارد کنید.' ); ?></label>

</td>

</tr>

<tr valign="top">

<th scope="row">هدر پوسته:</th>

<td>

<input id="showcaser_theme_settings[header_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[header_img]" value="<?php esc_attr_e( $options['header_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فوتر پوسته:</th>

<td>

<input id="showcaser_theme_settings[footer_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[footer_img]" value="<?php esc_attr_e( $options['footer_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار1:</th>

<td>

<input id="showcaser_theme_settings[s1_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_img]" value="<?php esc_attr_e( $options['s1_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید1:</th>

<td>

<input id="showcaser_theme_settings[s1_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_txt]" value="<?php esc_attr_e( $options['s1_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید1:</th>

<td>

<input id="showcaser_theme_settings[s1_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_link]" value="<?php esc_attr_e( $options['s1_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید1:</th>

<td>

<input id="showcaser_theme_settings[s1_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_titr]" value="<?php esc_attr_e( $options['s1_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید1 لینک:</th>

<td>

<input id="showcaser_theme_settings[l1_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l1_titr]" value="<?php esc_attr_e( $options['l1_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار2:</th>

<td>

<input id="showcaser_theme_settings[s2_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s2_img]" value="<?php esc_attr_e( $options['s2_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید2:</th>

<td>

<input id="showcaser_theme_settings[s2_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s2_txt]" value="<?php esc_attr_e( $options['s2_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید2:</th>

<td>

<input id="showcaser_theme_settings[s2_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s2_link]" value="<?php esc_attr_e( $options['s2_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید2:</th>

<td>

<input id="showcaser_theme_settings[s2_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s2_titr]" value="<?php esc_attr_e( $options['s2_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید2 لینک:</th>

<td>

<input id="showcaser_theme_settings[l2_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l2_titr]" value="<?php esc_attr_e( $options['l2_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار3:</th>

<td>

<input id="showcaser_theme_settings[s3_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s3_img]" value="<?php esc_attr_e( $options['s3_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید3:</th>

<td>

<input id="showcaser_theme_settings[s3_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s3_txt]" value="<?php esc_attr_e( $options['s3_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید3:</th>

<td>

<input id="showcaser_theme_settings[s3_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s3_link]" value="<?php esc_attr_e( $options['s3_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید3:</th>

<td>

<input id="showcaser_theme_settings[s3_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s3_titr]" value="<?php esc_attr_e( $options['s3_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید3 لینک:</th>

<td>

<input id="showcaser_theme_settings[l3_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l3_titr]" value="<?php esc_attr_e( $options['l3_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار4:</th>

<td>

<input id="showcaser_theme_settings[s4_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s4_img]" value="<?php esc_attr_e( $options['s4_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید4:</th>

<td>

<input id="showcaser_theme_settings[s4_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s4_txt]" value="<?php esc_attr_e( $options['s4_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید4:</th>

<td>

<input id="showcaser_theme_settings[s4_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s4_link]" value="<?php esc_attr_e( $options['s4_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید4:</th>

<td>

<input id="showcaser_theme_settings[s4_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s4_titr]" value="<?php esc_attr_e( $options['s4_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید4 لینک:</th>

<td>

<input id="showcaser_theme_settings[l4_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l4_titr]" value="<?php esc_attr_e( $options['l4_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار5:</th>

<td>

<input id="showcaser_theme_settings[s5_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s5_img]" value="<?php esc_attr_e( $options['s5_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار5:</th>

<td>

<input id="showcaser_theme_settings[s5_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s5_on]" value="<?php esc_attr_e( $options['s5_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید5:</th>

<td>

<input id="showcaser_theme_settings[s5_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s5_txt]" value="<?php esc_attr_e( $options['s5_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید5:</th>

<td>

<input id="showcaser_theme_settings[s5_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s5_link]" value="<?php esc_attr_e( $options['s5_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 5:</th>

<td>

<input id="showcaser_theme_settings[e5_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e5_edame]" value="<?php esc_attr_e( $options['e5_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید5:</th>

<td>

<input id="showcaser_theme_settings[s5_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s5_titr]" value="<?php esc_attr_e( $options['s5_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید5 لینک:</th>

<td>

<input id="showcaser_theme_settings[l5_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l5_titr]" value="<?php esc_attr_e( $options['l5_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار6:</th>

<td>

<input id="showcaser_theme_settings[s6_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s6_img]" value="<?php esc_attr_e( $options['s6_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار6:</th>

<td>

<input id="showcaser_theme_settings[s6_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s6_on]" value="<?php esc_attr_e( $options['s6_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید6:</th>

<td>

<input id="showcaser_theme_settings[s6_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s6_txt]" value="<?php esc_attr_e( $options['s6_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید6:</th>

<td>

<input id="showcaser_theme_settings[s6_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s6_link]" value="<?php esc_attr_e( $options['s6_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 6:</th>

<td>

<input id="showcaser_theme_settings[e6_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e6_edame]" value="<?php esc_attr_e( $options['e6_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید6:</th>

<td>

<input id="showcaser_theme_settings[s6_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s6_titr]" value="<?php esc_attr_e( $options['s6_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید6 لینک:</th>

<td>

<input id="showcaser_theme_settings[l6_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[l6_titr]" value="<?php esc_attr_e( $options['l6_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار7:</th>

<td>

<input id="showcaser_theme_settings[s7_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s7_img]" value="<?php esc_attr_e( $options['s7_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار7:</th>

<td>

<input id="showcaser_theme_settings[s7_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s7_on]" value="<?php esc_attr_e( $options['s7_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید7:</th>

<td>

<input id="showcaser_theme_settings[s7_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s7_txt]" value="<?php esc_attr_e( $options['s7_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید7:</th>

<td>

<input id="showcaser_theme_settings[s7_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s7_link]" value="<?php esc_attr_e( $options['s7_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 7:</th>

<td>

<input id="showcaser_theme_settings[e7_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e7_edame]" value="<?php esc_attr_e( $options['e7_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید7:</th>

<td>

<input id="showcaser_theme_settings[s7_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s7_titr]" value="<?php esc_attr_e( $options['s7_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار8:</th>

<td>

<input id="showcaser_theme_settings[s8_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s8_img]" value="<?php esc_attr_e( $options['s8_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار8:</th>

<td>

<input id="showcaser_theme_settings[s8_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s8_on]" value="<?php esc_attr_e( $options['s8_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید8:</th>

<td>

<input id="showcaser_theme_settings[s8_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s8_txt]" value="<?php esc_attr_e( $options['s8_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید8:</th>

<td>

<input id="showcaser_theme_settings[s8_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s8_link]" value="<?php esc_attr_e( $options['s8_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 8:</th>

<td>

<input id="showcaser_theme_settings[e8_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e8_edame]" value="<?php esc_attr_e( $options['e8_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">عنوان ساید8:</th>

<td>

<input id="showcaser_theme_settings[s8_titr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s8_titr]" value="<?php esc_attr_e( $options['s8_titr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار9:</th>

<td>

<input id="showcaser_theme_settings[s9_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s9_img]" value="<?php esc_attr_e( $options['s9_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار9:</th>

<td>

<input id="showcaser_theme_settings[s9_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s9_on]" value="<?php esc_attr_e( $options['s9_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید9:</th>

<td>

<input id="showcaser_theme_settings[s9_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s9_txt]" value="<?php esc_attr_e( $options['s9_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید9:</th>

<td>

<input id="showcaser_theme_settings[s9_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s9_link]" value="<?php esc_attr_e( $options['s9_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 9:</th>

<td>

<input id="showcaser_theme_settings[e9_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e9_edame]" value="<?php esc_attr_e( $options['e9_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار10:</th>

<td>

<input id="showcaser_theme_settings[s10_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s10_img]" value="<?php esc_attr_e( $options['s10_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار10:</th>

<td>

<input id="showcaser_theme_settings[s10_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s10_on]" value="<?php esc_attr_e( $options['s10_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید10:</th>

<td>

<input id="showcaser_theme_settings[s10_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s10_txt]" value="<?php esc_attr_e( $options['s10_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید10:</th>

<td>

<input id="showcaser_theme_settings[s10_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s10_link]" value="<?php esc_attr_e( $options['s10_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 10:</th>

<td>

<input id="showcaser_theme_settings[e10_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e10_edame]" value="<?php esc_attr_e( $options['e10_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار11:</th>

<td>

<input id="showcaser_theme_settings[s11_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s11_img]" value="<?php esc_attr_e( $options['s11_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار11:</th>

<td>

<input id="showcaser_theme_settings[s11_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s11_on]" value="<?php esc_attr_e( $options['s11_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید11:</th>

<td>

<input id="showcaser_theme_settings[s11_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s11_txt]" value="<?php esc_attr_e( $options['s11_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید11:</th>

<td>

<input id="showcaser_theme_settings[s11_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s11_link]" value="<?php esc_attr_e( $options['s11_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 11:</th>

<td>

<input id="showcaser_theme_settings[e11_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e11_edame]" value="<?php esc_attr_e( $options['e11_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار12:</th>

<td>

<input id="showcaser_theme_settings[s12_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s12_img]" value="<?php esc_attr_e( $options['s12_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار12:</th>

<td>

<input id="showcaser_theme_settings[s12_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s12_on]" value="<?php esc_attr_e( $options['s12_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن ساید12:</th>

<td>

<input id="showcaser_theme_settings[s12_txt]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s12_txt]" value="<?php esc_attr_e( $options['s12_txt'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید12:</th>

<td>

<input id="showcaser_theme_settings[s12_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s12_link]" value="<?php esc_attr_e( $options['s12_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 12:</th>

<td>

<input id="showcaser_theme_settings[e12_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e12_edame]" value="<?php esc_attr_e( $options['e12_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار13:</th>

<td>

<input id="showcaser_theme_settings[s13_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s13_img]" value="<?php esc_attr_e( $options['s13_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار13:</th>

<td>

<input id="showcaser_theme_settings[s13_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s13_on]" value="<?php esc_attr_e( $options['s13_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید13:</th>

<td>

<input id="showcaser_theme_settings[s13_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s13_link]" value="<?php esc_attr_e( $options['s13_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 13:</th>

<td>

<input id="showcaser_theme_settings[e13_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e13_edame]" value="<?php esc_attr_e( $options['e13_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار14:</th>

<td>

<input id="showcaser_theme_settings[s14_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s14_img]" value="<?php esc_attr_e( $options['s14_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار14:</th>

<td>

<input id="showcaser_theme_settings[s14_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s14_on]" value="<?php esc_attr_e( $options['s14_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید14:</th>

<td>

<input id="showcaser_theme_settings[s14_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s14_link]" value="<?php esc_attr_e( $options['s14_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 14:</th>

<td>

<input id="showcaser_theme_settings[e14_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e14_edame]" value="<?php esc_attr_e( $options['e14_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ساید بار15:</th>

<td>

<input id="showcaser_theme_settings[s15_img]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s15_img]" value="<?php esc_attr_e( $options['s15_img'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">فعال کردن ساید بار15:</th>

<td>

<input id="showcaser_theme_settings[s15_on]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s15_on]" value="<?php esc_attr_e( $options['s15_on'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">لینک ساید15:</th>

<td>

<input id="showcaser_theme_settings[s15_link]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s15_link]" value="<?php esc_attr_e( $options['s15_link'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">ادامه مطلب 15:</th>

<td>

<input id="showcaser_theme_settings[e15_edame]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[e15_edame]" value="<?php esc_attr_e( $options['e15_edame'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">متن خوش آمدید :</th>

<td>

<input id="showcaser_theme_settings[s1_wel]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_wel]" value="<?php esc_attr_e( $options['s1_wel'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row">رنگ متون سایدبار :</th>

<td>

<input id="showcaser_theme_settings[s1_cr]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[s1_cr]" value="<?php esc_attr_e( $options['s1_cr'] ); ?>" />

</td>

</tr>

<tr valign="top">

<th scope="row"><?php _e( 'کد آمارگیر آنالیزگر' ); ?></th>

<td>

<textarea id="showcaser_theme_settings[analytics]" class="regular-text" name="showcaser_theme_settings[analytics]" rows="5" cols="45"><?php esc_attr_e( $options['analytics'] ); ?></textarea>

<br />

<label class="description" for="showcaser_theme_settings[analytics]"><?php _e( 'کد آنالیزگر را وارد کنید' ); ?></label>

</td>

</tr>

<tr valign="top">

<th scope="row">دانلود پوسته های بیشتر</th>

<td>

<a href="http://rooeen.com/category/wordpress/wp-themes" style="text-decoration:none;">پوسته های وردپرس رایگان</a>

</td>

</tr>

</table>

<p class="submit-changes">

<input type="submit" class="button-primary" value="<?php _e( 'ذخیره تغییرات' ); ?>" />

</p>

</form>

</div><!-- END wrap -->

<?php

}

//sanitize and validate

function showcaser_options_validate( $input ) {

global $select_options, $radio_options;

if ( ! isset( $input['option1'] ) )

$input['option1'] = null;

$input['option1'] = ( $input['option1'] == 1 ? 1 : 0 );

$input['sometext'] = wp_filter_nohtml_kses( $input['sometext'] );

if ( ! isset( $input['radioinput'] ) )

$input['radioinput'] = null;

if ( ! array_key_exists( $input['radioinput'], $radio_options ) )

$input['radioinput'] = null;

$input['sometextarea'] = wp_filter_post_kses( $input['sometextarea'] );

return $input;

}

?>

بدون کدهای جدید هستند

بیزحمت دکمه آپلود رو به قسمت هدر پوسته اضافه کنید

من همینو میخوام

ممنون

لینک به ارسال

بیزحمت دکمه آپلود رو به قسمت هدر پوسته اضافه کنید

من همینو میخوام

ممنون

این پوسته رایگانه؟

لینک به ارسال

سلام

مشغله دوستان زیاده لطفاً صبور باشید و اسپم نزنید!

در اولین فرصت به پاسخ شما رسیدگی خواهند کرد.

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...