Odpowiedź forum utworzona

Zobacz 3 odpowiedzi - od 1 do 3 (z 3 łącznie)
  • Twórca wątku bidubi

    (@bidubi)

    Problemy 3,4 i 1 rozwiązane. Sorry spojrzałbyś jeszcze na to:
    2) przetłumaczyć napisów Phone,Email, OnLine Form z tej podstrony http://psychologonline.radom.pl/?page_id=64

    Twórca wątku bidubi

    (@bidubi)

    Twórca wątku bidubi

    (@bidubi)

    <?php get_header();?>
    <?php $tpl_default_settings = get_post_meta($post->ID,’_tpl_default_settings’,TRUE);
    $tpl_default_settings = is_array($tpl_default_settings) ? $tpl_default_settings : array();

    $page_layout = array_key_exists(„layout”,$tpl_default_settings) ? $tpl_default_settings[’layout’] : „content-full-width”;
    $show_sidebar = false;
    $sidebar_class= „”;

    switch($page_layout):
    case 'with-left-sidebar’:
    $page_layout = „page-with-sidebar with-left-sidebar”;
    $show_sidebar = true;
    $sidebar_class = „left-sidebar”;
    break;

    case 'with-right-sidebar’:
    $show_sidebar = true;
    $page_layout = „page-with-sidebar with-right-sidebar”;
    break;
    endswitch;

    #Page Top Code Section
    $dttheme_options = get_option(IAMD_THEME_SETTINGS);
    $dttheme_integration = $dttheme_options[’integration’];
    if(isset($dttheme_integration[’enable-single-page-top-code’])) echo stripslashes($dttheme_integration[’single-page-top-code’]);?>

    <!– **Primary Section** –>
    <section id=”primary” class=”<?php echo $page_layout;?>”>
    <?php if( have_posts() ):
    while( have_posts() ):
    the_post();
    get_template_part( 'framework/loops/content’, 'page’ );
    endwhile;
    endif;?>
    </section><!– **Primary Section** –>

    <?php if($show_sidebar): ?>
    <!– **Secondary Section ** –>
    <section id=”secondary” class=”<?php echo $sidebar_class; ?>”>
    <?php get_sidebar();?>
    </section><!– **Secondary Section – End** –>
    <?php endif; ?>

    <?php #Page Top Code Section
    $dttheme_integration = $dttheme_options[’integration’];
    if(isset($dttheme_integration[’enable-single-page-bottom-code’])) echo stripslashes($dttheme_integration[’single-page-bottom-code’]);

    get_footer();?>

    Dziękuję @kurdupel, wklejam kod z page.php 🙂

Zobacz 3 odpowiedzi - od 1 do 3 (z 3 łącznie)