software 29 ارسال شده در تیر 91 گزارش بازنشر ارسال شده در تیر 91 دروددوستان من می خوام برچسب ها رو از قالب بردارم به خاطر اینکه در بعضی اوقات به صورت خیلی زیاد هستن و پست به شکل بدی در می یاد به همین منظور من کد های index , single قرار می دم تا شاید کمکی به شما باشه.single:<?php get_header(); ?><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php get_template_part('includes/breadcrumbs'); ?><?php if (get_option('magnificent_integration_single_top') <> '' && get_option('magnificent_integrate_singletop_enable') == 'on') echo(get_option('magnificent_integration_single_top')); ?><div id="entries"> <div class="entry post entry-full"> <div class="border"> <div class="bottom"> <div class="entry-content clearfix nobottom"> <h1 class="title"><?php the_title(); ?></h1> <p class="meta-info"><?php the_time(get_option('magnificent_date_format')) ?> <span><?php esc_html_e('by','Magnificent'); ?></span> <?php the_author_posts_link(); ?></p> <?php if (get_option('magnificent_thumbnails') == 'on') { ?> <?php $thumb = ''; $width = 218; $height = 218; $classtext = ''; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext); $thumb = $thumbnail["thumb"]; ?> <?php if($thumb <> '') { ?> <div class="thumbnail"> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?> <span class="overlay"></span> </div> <!-- end .thumbnail --> <?php }; ?> <?php }; ?> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Magnificent').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php edit_post_link(esc_html__('Edit this page','Magnificent')); ?> <?php get_template_part('infobox'); ?> <div class="clear"></div> <div class="info-panel clearfix"> <?php get_template_part('includes/infopanel'); ?> </div> <!-- end .info-panel --> </div> <!-- end .entry-content --> </div> <!-- end .bottom --> </div> <!-- end .border --> </div> <!-- end .entry --> <div class="clear"></div> <?php if (get_option('magnificent_integration_single_bottom') <> '' && get_option('magnificent_integrate_singlebottom_enable') == 'on') echo(get_option('magnificent_integration_single_bottom')); ?> <?php if (get_option('magnificent_468_enable') == 'on') { ?> <?php if(get_option('magnificent_468_adsense') <> '') echo(get_option('magnificent_468_adsense')); else { ?> <a href="<?php echo esc_url(get_option('magnificent_468_url')); ?>"><img src="<?php echo esc_url(get_option('magnificent_468_image')); ?>" alt="468 ad" class="foursixeight" /></a> <?php } ?> <?php } ?> <?php if (get_option('magnificent_show_postcomments') == 'on') comments_template('', true); ?></div> <!-- end #entries --><?php endwhile; endif; ?><div id="sidebar-right" class="sidebar"> <div class="block"> <div class="block-border"> <div class="block-content"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right Top') ) : ?> <?php endif; ?> </div> <!-- end .block-content --> </div> <!-- end .block-border --> </div> <!-- end .block --> <div class="block"> <div class="block-border"> <div class="block-content"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right Bottom') ) : ?> <?php endif; ?> </div> <!-- end .block-content --> </div> <!-- end .block-border --> </div> <!-- end .block --></div> <!-- end #sidebar-right --><?php get_footer(); ?> index:<?php get_header(); ?><?php $blogStyle = (get_option('magnificent_blog_style') == 'false') ? false : true; ?><?php get_template_part('includes/breadcrumbs'); ?><div id="entries"> <?php if (!$blogStyle) get_template_part('includes/entry'); else get_template_part('includes/entry-blogstyle'); ?></div> <!-- end #entries --><div id="sidebar-right" class="sidebar"> <div class="block"> <div class="block-border"> <div class="block-content"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right Top') ) : ?> <?php endif; ?> </div> <!-- end .block-content --> </div> <!-- end .block-border --> </div> <!-- end .block --> <div class="block"> <div class="block-border"> <div class="block-content"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right Bottom') ) : ?> <?php endif; ?> </div> <!-- end .block-content --> </div> <!-- end .block-border --> </div> <!-- end .block --></div> <!-- end #sidebar-right --><?php get_footer(); ?> نقل قول لینک به ارسال
software 29 ارسال شده در تیر 91 مالک گزارش بازنشر ارسال شده در تیر 91 دوستان اگه این کد ها به کارتون نیامد می تونید قالب رو کلا دانلود کنید :دانلود مستقیم قالب Magnificent برای وردپرس (فارسی شده)دوستان خیلی به این قالب نیاز دارم.با تشکر. نقل قول لینک به ارسال
NESTED 4295 ارسال شده در تیر 91 گزارش بازنشر ارسال شده در تیر 91 در این دو فایل چیزی نیست دو فایل دیگه در در فایل single فراخوانی شدن :<?php get_template_part('infobox'); ?>و<?php get_template_part('includes/infopanel'); ?>محتوای این دو فایل رو بررسی کنید 2 نقل قول لینک به ارسال
software 29 ارسال شده در تیر 91 مالک گزارش بازنشر ارسال شده در تیر 91 (ویرایش شده) بفرمایید:infobox:<?php $format = get_post_meta($post->ID, 'format', true); $form = get_post_meta($post->ID, 'form', true); $design = get_post_meta($post->ID, 'design', true); $motarjem = get_post_meta($post->ID, 'motarjem', true); $name = get_post_meta($post->ID, 'name', true); $file = get_post_meta($post->ID, 'download', true);?><div class="dtl"><h3> <?php echo $name; ?> </h3><ul><li id="li2"><b>محقق / مترجم : </b> <?php echo $motarjem; ?></li><li id="li4"><b>ساخته شده توسط : </b> <?php echo $design; ?></li><li id="li5"><b>رمز فایل : </b> www.siteshoma.ir</li><li id="li6"><b>قالب فایل : </b> <?php echo $format; ?></li><li id="li7"><b><a href="<?php echo $form; ?>">بحث و گفتگو پیرامون این مقاله در انجمن</a></b></li><li id="li3"><b>منبع : </b> <a href="http://www.famo.net">فامو</a></li></ul><a href="<?php echo $file; ?>"><div id="dl"></div></a></div>infopanel:<div class="info-block"><h3 class="infotitle"><?php esc_html_e('Related Posts','Magnificent'); ?></h3><div class="ul-thumb"> <?php global $post; $orig_post = $post; $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'showposts'=>4, 'ignore_sticky_posts'=>1 ); $my_query = new wp_query( $args ); if( $my_query->have_posts() ) { ?> <ul class="related-posts"> <?php while( $my_query->have_posts() ) { $my_query->the_post(); ?> <?php $thumb = ''; $width = 40; $height = 40; $classtext = ''; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext); $thumb = $thumbnail['thumb']; ?> <li class="clearfix"> <?php if ($thumb <> '') { ?> <span class="box"> <a href="<?php the_permalink(); ?>"> <span class="overlay"></span> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?> </a> </span> <?php } ?> <span class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span> <p class="post-info"><?php esc_html_e('Posted','Magnificent'); _e(' on '); the_time(get_option('magnificent_date_format')); ?></p> </li> <?php } ?> </ul> <?php } } wp_reset_postdata(); $post = $orig_post; ?></div> <!-- end .ul-thumb --></div> <!-- end .info-block --><div class="info-block"><h3 class="infotitle"><?php esc_html_e('Tags','Magnificent'); ?></h3><div class="tags clearfix"> <?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?></div> <!-- end .tags --></div> <!-- end .info-block --><div class="info-block last"><h3 class="infotitle"><?php esc_html_e('Share This','Magnificent'); ?></h3><div class="share-panel"> <?php $permalink = get_permalink(); ?> <a href="http://twitter.com/home?status=<?php the_title(); echo(' '); echo esc_url($permalink); ?>"><img src="<?php bloginfo('template_directory');?>/images/twitter.png" alt="" /></a> <a href="http://www.facebook.com/sharer.php?u=<?php echo esc_url($permalink); ?>&t=<?php the_title(); ?>" target="_blank"><img src="<?php bloginfo('template_directory');?>/images/facebook.png" alt="" /></a> <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php bloginfo('template_directory');?>/images/delicious.png" alt="" /></a> <a href="http://www.digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php bloginfo('template_directory');?>/images/digg.png" alt="" /></a> <a href="http://www.reddit.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php bloginfo('template_directory');?>/images/reddit.png" alt="" /></a></div> <!-- end .share-panel --></div> <!-- end .info-block -->اگر باز هم مشکلی داشتید در پست دوم لینک دانلود رو قرار دادم.با تشکر. ویرایش شده تیر 91 توسط software نقل قول لینک به ارسال
NESTED 4295 ارسال شده در تیر 91 گزارش بازنشر ارسال شده در تیر 91 در infopanel در خط 52 مقادیر زیر رو غیر فعال کنید با پاک کنید :<div class="info-block"><h3 class="infotitle"><?php esc_html_e('Tags','Magnificent'); ?></h3><div class="tags clearfix"> <?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?></div> <!-- end .tags --></div> <!-- end .info-block --> 3 نقل قول لینک به ارسال
software 29 ارسال شده در تیر 91 مالک گزارش بازنشر ارسال شده در تیر 91 واقعا ممنون خیلی احتیاج داشتم. نقل قول لینک به ارسال
Morteza 34190 ارسال شده در تیر 91 گزارش بازنشر ارسال شده در تیر 91 سوال جدید -> تاپیک جدید. نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .