sir1 512 ارسال شده در دی 93 گزارش بازنشر ارسال شده در دی 93 با سلام خدمت اساتیدمن این کد گوگل وبمسترو میخام در فایل footer.php قرار بدم. لطفا زحمتشو برام بکشید و در جای مناسب قرار دهید تشکر.کد گوگل:<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>کد footer.php <?php global $avia_config; $blank = isset($avia_config['template']) ? $avia_config['template'] : ""; //reset wordpress query in case we modified it wp_reset_query(); //get footer display settings $the_id = avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages $footer = get_post_meta($the_id, 'footer', true); $footer_widget_setting = !empty($footer) ? $footer : avia_get_option('display_widgets_socket'); //check if we should display a footer if(!$blank && $footer_widget_setting != 'nofooterarea' ) { if( $footer_widget_setting != 'nofooterwidgets' ) { //get columns $columns = avia_get_option('footer_columns'); ?> <div class='container_wrap footer_color' id='footer'> <div class='container'> <?php do_action('avia_before_footer_columns'); //create the footer columns by iterating switch($columns) { case 1: $class = ''; break; case 2: $class = 'av_one_half'; break; case 3: $class = 'av_one_third'; break; case 4: $class = 'av_one_fourth'; break; case 5: $class = 'av_one_fifth'; break; case 6: $class = 'av_one_sixth'; break; } $firstCol = "first el_before_{$class}"; //display the footer widget that was defined at appearenace->widgets in the wordpress backend //if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php for ($i = 1; $i <= $columns; $i++) { $class2 = ""; // initialized to avoid php notices if($i != 1) $class2 = " el_after_{$class} el_before_{$class}"; echo "<div class='flex_column {$class} {$class2} {$firstCol}'>"; if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif; echo "</div>"; $firstCol = ""; } do_action('avia_after_footer_columns'); ?> </div> <!-- ####### END FOOTER CONTAINER ####### --> </div><?php } //endif nofooterwidgets ?> <?php //copyright $copyright = do_shortcode( avia_get_option('copyright', "© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>") ); // you can filter and remove the backlink with an add_filter function // from your themes (or child themes) functions.php file if you dont want to edit this file // you can also just keep that link. I really do appreciate it $kriesi_at_backlink = kriesi_backlink(get_option(THEMENAMECLEAN."_initial_version")); //you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area if($copyright && strpos($copyright, '[nolink]') !== false) { $kriesi_at_backlink = ""; $copyright = str_replace("[nolink]","",$copyright); } if( $footer_widget_setting != 'nosocket' ) { ?> <footer class='container_wrap socket_color' id='socket' <?php avia_markup_helper(array('context' => 'footer')); ?>> <div class='container'> <span class='copyright'><?php echo $copyright . $kriesi_at_backlink; ?></span> <?php if(avia_get_option('footer_social', 'disabled') != "disabled") { $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => ''); echo avia_social_media_icons($social_args, false); } echo "<nav class='sub_menu_socket' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">"; $avia_theme_location = 'avia3'; $avia_menu_class = $avia_theme_location . '-menu'; $args = array( 'theme_location'=>$avia_theme_location, 'menu_id' =>$avia_menu_class, 'container_class' =>$avia_menu_class, 'fallback_cb' => '', 'depth'=>1 ); wp_nav_menu($args); echo "</nav>"; ?> </div><pre class="lang:default decode:true"> <!-- ####### END SOCKET CONTAINER ####### --> </footer> <?php } //end nosocket check } //end blank & nofooterarea check ?> <!-- end main --> </div> <?php //display link to previeous and next portfolio entry echo avia_post_nav(); echo "<!-- end wrap_all --></div>"; if(isset($avia_config['fullscreen_image'])) { ?> <!--[if lte IE 8]> <style type="text/css"> .bg_container { -ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale')"; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale'); } </style> <![endif]--> <?php echo "<div class='bg_container' style='background-image:url(".$avia_config['fullscreen_image'].");'></div>"; }?><?php/* Always have wp_footer() just before the closing </body> * tag of your theme, or you will break many plugins, which * generally use this hook to reference Javascript files. */wp_footer();?><a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span></a><div id="fb-root"></div></body></html> نقل قول لینک به ارسال
s4d3ghi 246 ارسال شده در دی 93 گزارش بازنشر ارسال شده در دی 93 اينکه فقط يک کد جاوا اسکريپته!ميتونيد در آخر کدهاتون قبل از تگ بسته body/ قرار بدين!درست خط سوم از آخر! 1 نقل قول لینک به ارسال
sir1 512 ارسال شده در دی 93 مالک گزارش بازنشر ارسال شده در دی 93 ممنون آقای صادقیفقط قبل از بسته شدن <body/> گذاشتم ولی فوترو بزرگتر از حالت عادی کرده. یعنی کدو در جای مناسب قرار ندادیم. میتونید در این ادرس ببینید: www.acgih.ir نقل قول لینک به ارسال
s4d3ghi 246 ارسال شده در دی 93 گزارش بازنشر ارسال شده در دی 93 میتونید از این کد استفاده کنید اما اون دو خط آخرتون رو پاک کنید </body> </html><g:plusone size="wide" href="http://www.acgih.ir/"></g:plusone><script type="text/javascript" src="https://apis.google.com/js/plusone.js" ansync:true async></script>یا از کد زیر استفاده کنید جالبتر میشه!<div style="position:fixed;right:1%;bottom:90%;z-index:1000; background: transparent url('http://s4.picofile.com/file/8162327500/pnug_.png') repeat-x;right: -4px;bottom: 10%; width: 125px; height: 65px;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;overflow:hidden"><div style="position: absolute; top: 0; left: 0;width: 125px; height:65px;overflow:hidden"><div style="position: absolute; margin-right:10px;width: 120px; height: 90px;color: #fff;line-height: 24px;overflow:hidden"><strong><span style="font-size:9pt; font-family:BYekan;">به پیام نور +1 دهید</span></strong><br/><g:plusone size="wide" href="http://www.acgih.ir"></g:plusone><script type="text/javascript" src="https://apis.google.com/js/plusone.js" ansync:true async></script> 1 نقل قول لینک به ارسال
sir1 512 ارسال شده در دی 93 مالک گزارش بازنشر ارسال شده در دی 93 مرسی ممنون درست شد فقط الان سمت راسته. میخام سمت چپ نشون داده بشه.لطف میکنید که همین کدو به سمت چپ تغییر بدین. تشکر نقل قول لینک به ارسال
s4d3ghi 246 ارسال شده در دی 93 گزارش بازنشر ارسال شده در دی 93 (ویرایش شده) تو خط اول به جای right بزارید left البته اینجا گذاشتم نیازی نیست عوض کنید ! <div style="position:fixed;left:1%;bottom:90%;z-index:1000; background: transparent url('http://s4.picofile.com/file/8162327500/pnug_.png') repeat-x;right: -4px;bottom: 10%; width: 125px; height: 65px;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;overflow:hidden"><div style="position: absolute; top: 0; left: 0;width: 125px; height:65px;overflow:hidden"><div style="position: absolute; margin-right:10px;width: 120px; height: 90px;color: #fff;line-height: 24px;overflow:hidden"><strong><span style="font-size:9pt; font-family:BYekan;">به پیام نور +1 دهید</span></strong><br/><g:plusone size="wide" href="http://www.acgih.ir"></g:plusone><script type="text/javascript" src="https://apis.google.com/js/plusone.js" ansync:true async></script> ویرایش شده دی 93 توسط عباس صادقی 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .