رفتن به مطلب

جعبه دانلود


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

سلام چطوری میتونم جعبه دانلود داشته باشم و همچنین برای مطالبم لایک و دیسلایک داشته باشم؟

سلام

جعبه دانلود رو با استفاده از زمینه دلخواه میتونید درست کنید .

دومی هم با استفاده از افزونه ( سرچ کنید زیاد هست ) :

http://tarmaster.com/%D8%A7%D9%81%D8%B2%D9%88%D9%86%D9%87-%D9%84%D8%A7%DB%8C%DA%A9-%D9%88-%D8%AF%DB%8C%D8%B3-%D9%84%D8%A7%DB%8C%DA%A9-%D9%88%D8%B1%D8%AF%D9%BE%D8%B1%D8%B3-wti-like-post/

لینک به ارسال

این تاپیک رو هم مطالعه کنید:

http://forum.wp-pars...-دانلود-وردپرس/

سلام من هر کاری کردم نتونستم کدی که مربوط به فایل single.php بذارم یعنی هر جاش میذاشتم جایی که باید میبود نمیشد خودتون میتونید درستش کنید اینم کدش:


<?php get_header(); ?>
<?php if( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php $layout = (themify_get('layout') == "sidebar-none" || themify_get('layout') == "sidebar1" || themify_get('layout') == "sidebar1 sidebar-left" || themify_get('layout') == "sidebar2") ? themify_get('layout') : themify_get('setting-default_page_post_layout'); /* set default layout */ if($layout == ''): $layout = 'sidebar1'; endif; ?>

<?php

/////////////////////////////////////////////
// Set Default Image Sizes
/////////////////////////////////////////////

$content_width = 918;
$sidebar1_content_width = 600;

// Default single image size
$single_image_width = 908;
$single_image_height = 400;

?>

<!-- layout-container -->
<div id="layout" class="clearfix <?php echo $layout; ?>">

<!-- content -->
<div id="content" class="list-post">

<?php global $hide_date, $hide_meta, $hide_image, $hide_title; ?>
<?php $hide_title = (themify_get('hide_post_title') != "default" && themify_check('hide_post_title')) ? themify_get('hide_post_title') : themify_get('setting-default_page_post_title'); ?>
<?php $unlink_title = (themify_get('unlink_post_title') != "default" && themify_check('unlink_post_title')) ? themify_get('unlink_post_title') : themify_get('setting-default_page_unlink_post_title'); ?>
<?php $hide_date = (themify_get('hide_post_date') != "default" && themify_check('hide_post_date')) ? themify_get('hide_post_date') : themify_get('setting-default_page_post_date'); ?>
<?php $hide_meta = (themify_get('hide_post_meta') != "default" && themify_check('hide_post_meta')) ? themify_get('hide_post_meta') : themify_get('setting-default_page_post_meta'); ?>
<?php $hide_image = (themify_get('hide_post_image') != "default" && themify_check('hide_post_image')) ? themify_get('hide_post_image') : themify_get('setting-default_page_post_image'); ?>
<?php $unlink_image = (themify_get('unlink_post_image') != "default" && themify_check('unlink_post_image')) ? themify_get('unlink_post_image') : themify_get('setting-default_page_unlink_post_image'); ?>
<?php $post_image_width = themify_get('image_width'); ?>
<?php $post_image_height = themify_get('image_height'); ?>

<?php

///////////////////////////////////////////
// Setting image width, height
///////////////////////////////////////////

global $width, $height;
if($post_image_height == "" && $post_image_width == ""):

$width = $single_image_width;
$height = $single_image_height;

if($layout == "sidebar1" || $layout == "sidebar1 sidebar-left"):

$ratio = $width / $content_width;
$aspect = $height / $width;
$width = round($ratio * $sidebar1_content_width);
if($height != '' && $height != 0):
$height = round($width * $aspect);
endif;

endif;

else:

$width = $post_image_width;
$height = $post_image_height;

endif;
?>
<?php get_template_part( 'includes/loop' , 'single'); ?>

<?php wp_link_pages(array('before' => '<p><strong>صفحات:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php // Author Box

if(themify_check('setting-post_author_box')): ?>
<div class="shortcode clearfix author-box">

<p class="author-avatar">
<?php echo get_avatar( get_the_author_meta('user_email'), $avatar_size, '' ); ?>
</p>

<div class="author-bio">

<h4 class="author-name">

<?php // Check for user url exists or not
if(get_the_author_meta('user_url')){ ?>
<a href="<?php echo get_the_author_meta('user_url'); ?>"><?php echo get_the_author_meta('first_name').' '.get_the_author_meta('last_name'); ?></a>
<?php } else { ?>
<?php echo get_the_author_meta('first_name').' '.get_the_author_meta('last_name'); ?>
<?php } ?>
</h4>
<?php echo get_the_author_meta('description'); ?>
<?php // Check for user url exists or not
if(get_the_author_meta('user_url')){ ?>
<p class="author-link">
<a href="<?php echo get_the_author_meta('user_url'); ?>">→ <?php echo get_the_author_meta('user_firstname').' '.get_the_author_meta('user_lastname'); ?> </a>
</p>
<?php } ?>
</div> <!-- / author-bio -->

</div> <!-- / author-box -->

<?php endif; // End of themify_check('setting-post_author_box')) ?>

<?php get_template_part( 'includes/post-nav'); ?>

<?php if(!themify_check('setting-comments_posts')): ?>
<?php comments_template(); ?>
<?php endif; ?>

</div>
<!--/content -->
<?php endwhile; ?>
<?php
/////////////////////////////////////////////
// Sidebar
/////////////////////////////////////////////
?>
<?php if ($layout != "sidebar-none"): get_sidebar(); endif; ?>
</div>
<!-- layout-container -->

<?php get_footer(); ?>

لینک به ارسال
سلام جعبه دانلود رو با استفاده از زمینه دلخواه میتونید درست کنید . دومی هم با استفاده از افزونه ( سرچ کنید زیاد هست ) : http://tarmaster.com/%D8%A7%D9%81%D8%B2%D9%88%D9%86%D9%87-%D9%84%D8%A7%DB%8C%DA%A9-%D9%88-%D8%AF%DB%8C%D8%B3-%D9%84%D8%A7%DB%8C%DA%A9-%D9%88%D8%B1%D8%AF%D9%BE%D8%B1%D8%B3-wti-like-post/

افزونه نصب کردم ولی چیزی نیومد که...

لینک به ارسال

بعد از این تابع کدها را استفاده کنید get_template_part

برای افزونه لایک هم تنظیمات افزونه را بررسی کنید

لینک به ارسال
  • 1 سال بعد...

سلام.جعبه دانلود میخوام اما میخوام کد هاش رو داخل متن قرار بدم که بتونم با افزونه اشتراک ویژه براش محدودیت اعضا ویژه قرار بدم.

یه چیزی مثل shortcode داشته باشه.

لینک به ارسال

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

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

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

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

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

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

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

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

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