Jump to content

Помогите разобраться с кодом


Recommended Posts

Добрый день, ув. вебмастера. Я новичок в этом деле, поэтому прошу помочь разобраться с небольшой проблемкой, а именно: у меня блог на вордпресс, внизу надпись "При поддержке WordPress и Тема "Graphene". Хочу ее убрать. Вот код подвала:

 

Graphene: Подвал (footer.php)

 

 

<?php
/**
 * The template for displaying the footer.
 *
 * Closes the <div> for #content, #content-main and #container, <body> and <html> tags.
 *
 * @package Graphene
 * @since Graphene 1.0
 */
global $graphene_settings;
?>  
<?php do_action( 'graphene_bottom_content' ); ?>
    </div><!-- #content-main -->
    
    <?php
    
        /* Sidebar 2 on the right side? */
        if ( graphene_column_mode() == 'three_col_left' ){
            get_sidebar( 'two' );
        }
        
        /* Sidebar 1 on the right side? */
        if ( in_array( graphene_column_mode(), array( 'two_col_left', 'three_col_left', 'three_col_center' ) ) ){
            get_sidebar();
        }
    
    ?>
    
    <?php do_action( 'graphene_after_content' ); ?>

</div><!-- #content -->

<?php /* Get the footer widget area */ ?>
<?php get_template_part('sidebar', 'footer'); ?>

<?php do_action('graphene_before_footer'); ?>

<div id="footer" class="clearfix">
    
    <?php if ( ! $graphene_settings['hide_copyright'] ) : ?>
    <div id="copyright">
        <h3><?php _e('Copyright', 'graphene'); ?></h3>
        <?php if ( $graphene_settings['copy_text'] == '' && ! $graphene_settings['show_cc'] ) : ?>
            <p>
            <?php printf( '© %1$s %2$s.', date( 'Y' ), get_bloginfo( 'name' ) ); ?>
            </p>
        <?php elseif ( ! $graphene_settings['show_cc'] ) : ?>
            <?php
                if ( ! stristr( $graphene_settings['copy_text'], '</p>' ) ) { $graphene_settings['copy_text'] = wpautop( $graphene_settings['copy_text'] ); }
                echo $graphene_settings['copy_text'];
            ?>
         <?php endif; ?>
        
        <?php if ( $graphene_settings['show_cc'] ) : ?>
            <?php /* translators: %s will replaced by a link to the Creative Commons licence page, with "Creative Commons Licence" as the link text. */?>
            <p>
                <?php printf( __( 'Except where otherwise noted, content on this site is licensed under a %s.', 'graphene' ), '<a href="http://creativecommons.org/licenses/by-nc-nd/3.0/">' . __( 'Creative Commons Licence', 'graphene' ) . '</a>' ); ?>
            </p>
            <p class="cc-logo"><span><?php _e( 'Creative Commons Licence BY-NC-ND', 'graphene' ); ?></span></p>
        <?php endif; ?>

        <?php do_action('graphene_copyright'); ?>
    </div>
<?php endif; ?>

    <?php if ( has_nav_menu( 'footer-menu' ) || ! $graphene_settings['hide_return_top'] ) : ?>
    <div class="footer-menu-wrap">
        <ul id="footer-menu" class="clearfix">
            <?php /* Footer menu */
            $args = array(
                'container' => '',
                'fallback_cb' => 'none',
                'depth' => 2,
                'theme_location' => 'footer-menu',
                'items_wrap' => '%3$s'
            );
            wp_nav_menu(apply_filters('graphene_footer_menu_args', $args));
            ?>
            <?php if ( ! $graphene_settings['hide_return_top'] ) : ?>
            <li class="menu-item return-top"><a href="#"><?php _e('Return to top', 'graphene'); ?></a></li>
            <?php endif; ?>
        </ul>
    </div>
    <?php endif; ?>
    
    <?php if ( ! $graphene_settings['disable_credit'] ) : ?>
    <div id="developer" class="grid_7">
        <p>
        <?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme's name */ ?>
<?php printf( __('Powered by %1$s and the %2$s.', 'graphene'), '<a href="http://wordpress.org/">WordPress</a>' '<a href="http://www.khairul-syahir.com/wordpress-dev/graphene-theme">' . __('Graphene Theme', 'graphene') . '</a>'); ?>
        </p>

    <?php do_action('graphene_developer'); ?>
    </div>
    <?php endif; ?>
    
    <?php do_action('graphene_footer'); ?>
</div><!-- #footer -->

<?php do_action('graphene_after_footer'); ?>

</div><!-- #container -->

<?php if (!get_theme_mod('background_image', false) && !get_theme_mod('background_color', false)) : ?>
    </div><!-- .bg-gradient -->
<?php endif; ?>

<?php wp_footer(); ?>

</body>
</html>

 

Подскажите, пожалуйста, какую строку необходимо удалить. Заранее спасибо.

 

 

 

Link to post
Share on other sites
  • Модератор

Вообще вот эту:

 

 

<?php printf( __('Powered by %1$s and the %2$s.', 'graphene'), '<a href="http://wordpress.org/">WordPress</a>' '<a href="http://www.khairul-s.../graphene-theme">' . __('Graphene Theme', 'graphene') . '</a>'); ?>

 

 

но мне кажется, не все так просто

Link to post
Share on other sites

Как бы вот это, вроде

 <?php if ( ! $graphene_settings['disable_credit'] ) : ?>
    <div id="developer" class="grid_7">
        <p>
        <?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme's name */ ?>
<?php printf( __('Powered by %1$s and the %2$s.', 'graphene'), '<a href="http://wordpress.org/">WordPress</a>' '<a href="http://www.khairul-s.../graphene-theme">' . __('Graphene Theme', 'graphene') . '</a>'); ?>
        </p>

    <?php do_action('graphene_developer'); ?>
    </div>
    <?php endif; ?>
Link to post
Share on other sites

<p>
        <?php /* translators: %1$s is the link to WordPress.org, %2$s is the theme's name */ ?>
<?php printf( __('Powered by %1$s and the %2$s.', 'graphene'), '<a href="http://wordpress.org/">WordPress</a>' '<a href="http://www.khairul-s.../graphene-theme">' . __('Graphene Theme', 'graphene') . '</a>'); ?>
        </p>

вместе с тегами р

Link to post
Share on other sites

Спасибо всем большое!

 

Удалила

 

<?php printf( __('Powered by %1$s and the %2$s.', 'graphene'), '<a href="http://wordpress.org/">WordPress</a>' '<a href="http://www.khairul-syahir.com/wordpress-dev/graphene-theme">' . __('Graphene Theme', 'graphene') . '</a>'); ?>

 

Вроде все получилось? Вот мой сайт http://bforme.ru/

 

Еще раз всем спасибо.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...