Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Tiago Carleial

Parse error: syntax error, unexpected end of file in /home/trans432/public_html/wp-content/themes/accesspressray-pro/index-one.php on line 748

Recommended Posts

Ola pessoal

alguem me ajudar? sem querer mexi no editor do wordpress e bugou 

 

meu site www.transferjericoacoara.com

 

script completo abaixo:

 

<?php 
global $accesspressray_pro_options, $post;
$accesspressray_pro_settings = get_option( 'accesspressray_pro_options', $accesspressray_pro_options );
$accesspressray_pro_blog_cat = $accesspressray_pro_settings['blog_cat'];
$accesspressray_pro_call_to_action_post_id = $accesspressray_pro_settings['call_to_action_post'];
$accesspressray_pro_featured_title = $accesspressray_pro_settings['featured_title'];
$accesspressray_pro_featured_text = $accesspressray_pro_settings['featured_text'];
$featured_post1 = $accesspressray_pro_settings['featured_post1'];
$featured_post2 = $accesspressray_pro_settings['featured_post2'];
$featured_post3 = $accesspressray_pro_settings['featured_post3'];
$featured_post4 = $accesspressray_pro_settings['featured_post4'];
$show_fontawesome_icon = $accesspressray_pro_settings['show_fontawesome'];
$testimonial_category = $accesspressray_pro_settings['testimonial_cat'];
$accesspressray_pro_featured_bar = $accesspressray_pro_settings['featured_bar'];
$accesspressray_pro_call_to_action_post_char = (isset($accesspressray_pro_settings['call_to_action_post_char']) ? $accesspressray_pro_settings['call_to_action_post_char'] : 650 );
$accesspressray_pro_show_blog_number = (isset($accesspressray_pro_settings['show_blog_number']) ? $accesspressray_pro_settings['show_blog_number'] : 3 ) ;
$accesspressray_pro_client_slider_heading = $accesspressray_pro_settings['client_slider_heading'];
$accesspressray_pro_disable_client_slider = $accesspressray_pro_settings['show_clients_logo'];
$accesspressray_pro_3_column_testimonials = $accesspressray_pro_settings['3_column_testimonials'] ;
$accesspressray_pro_feature_char = $accesspressray_pro_settings['featured_post_char'];
$accesspressray_pro_blog_char = $accesspressray_pro_settings['home_blog_char'];

/** Variable and Declaration for call to action **/
$accesspressray_cta_title = $accesspressray_pro_settings['cta_title'];
$accesspressray_cta_desc = $accesspressray_pro_settings['cta_desc'];
$accesspressray_cta_link = $accesspressray_pro_settings['cta_link'];
$accesspressray_cta_button = $accesspressray_pro_settings['cta_button'];
$accesspressray_cta = $accesspressray_pro_settings['call_to_action'];

$order = $accesspressray_pro_settings['home_order'];
if(empty($order)){
$home_order = array(
                      'calltoaction' => '1',
                      'feature_post_section' => '2',
                      'below_feature_section'=>'3',
                      'above_blog_section'=> '4',
                      'blog_section' => '5',
                      'awesome_feature_section'=> '6',
                      'team_member_section' => '7',
                      'feature_widget_section' => '8',
                      'testimonial_section' => '9',
                      'logo_section' => '10',
                      'video_section' => '11',
                      'blog_section' => '12',
                      'map_section' => '13',
                      'widget_cta'=>'14');
                      
}
else{
   $home_order = $accesspressray_pro_settings['home_order']; 
}

foreach ($home_order as $key => $value) {
if($key == 'calltoaction'){
?>
<?php if($accesspressray_pro_settings['ed_cta']==1): ?>
<section class="call-to-action home-section call-to-action-text">
    <div class="ak-container">
        <div class="cta_text_btn_wrpa <?php echo $accesspressray_cta ?>">    
            <h1 class="main-title wow fadeInUp" data-wow-delay="0.5s"><?php echo $accesspressray_cta_title; ?></h1>
            <div class="welcome-detail wow fadeInUp" data-wow-delay="0.8s">
                <p><?php echo $accesspressray_cta_desc; ?></p>
                    <?php if(!empty($accesspressray_cta_link)): ?>
                    <a href="<?php echo $accesspressray_cta_link; ?>" class="read-more bttn"><?php echo $accesspressray_cta_button; ?></a>
                    <?php endif; ?>
            </div>
        </div>        
    </div>
</section>
<?php endif;?>
<?php } 
if($key == 'feature_post_section'){
?>
<?php if($accesspressray_pro_settings['ed_feature']==1){ ?>
<section id="mid-section" class="featured-section clearfix home-section">
    <div class="ak-container">
        <?php if(!empty($accesspressray_pro_featured_title)): ?>
        <h3 class="main-title wow fadeInUp" data-wow-delay="0.5s"><?php echo $accesspressray_pro_featured_title; ?></h3>
        <?php endif; ?>

        <?php if(!empty($accesspressray_pro_featured_text)): ?>
        <div class="sub-desc wow fadeInUp" data-wow-delay="0.8s"><?php echo $accesspressray_pro_featured_text; ?></div>
        <?php endif; ?>
        <?php if($accesspressray_pro_settings['enable_category_feature_post']==1){?>
            <div class="featured-post-wrapper clearfix">
                   <?php
                    $cnt = 0;
                    $feat_cat = $accesspressray_pro_settings['feat_cat'];
                    $feat_cat_post = $accesspressray_pro_settings['category_post_number'];
                    $args_feat = array('post_type'=>'post',
                                       'cat'=>$feat_cat,
                                       'post_status'=>'publish',
                                       'posts_per_page'=>$feat_cat_post);
                        $query2 = new WP_Query( $args_feat );
                        // the Loop
                        while ($query2->have_posts()) : $query2->the_post();
                        $cnt++; 
                            ?>
                            <div id="featured-post-<?php echo $cnt ?>" class="featured-post wow flipInY" data-wow-delay="0.2s">
                            <figure class="featured-image">
                                <a href="<?php the_permalink(); ?>">
                                    <?php                             
                                    if( has_post_thumbnail()){
                                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                                    ?>
                                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                                    <?php }else { ?>
                                    <img src="<?php echo get_template_directory_uri(); ?>/images/demo/featured-fallback.jpg" alt="<?php the_title(); ?>">
                                    <?php } 
                                    ?>
                                </a>
                            </figure>
                            
                            <div class="featured-content">
                                <h2 class="featured-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                <p><?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_feature_char ) ?></p>
                                <?php if(!empty($accesspressray_pro_settings['featured_post_readmore'])){?>
                                <a href="<?php the_permalink(); ?>" class="view-more"><?php echo $accesspressray_pro_settings['featured_post_readmore']; ?></a>
                                <?php } ?>
                            </div>
                            </div>
                            <?php if($cnt%4==0) {?>
                            <div class="clearfix"></div>
                            <?php } ?>
                        <?php endwhile;
                        wp_reset_postdata(); ?>
             </div>
        <?php } 
        else{
        ?>
        <div class="featured-post-wrapper clearfix">
        <?php 
        if(!empty($featured_post1) || !empty($featured_post2) || !empty($featured_post3) || !empty($featured_post4)){
            if(!empty($featured_post1)) { ?>
                <div id="featured-post-1" class="featured-post wow flipInY" data-wow-delay="0.2s">
                    
                    <?php
                        $query2 = new WP_Query( 'p='.$featured_post1 );
                        // the Loop
                        while ($query2->have_posts()) : $query2->the_post(); 
                            if( $show_fontawesome_icon == 0 ){
                            ?>
                            <figure class="featured-image">
                                <a href="<?php the_permalink(); ?>">
                                    <?php                             
                                    if( has_post_thumbnail()){
                                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                                    ?>
                                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                                    <?php }else { ?>
                                    <img src="<?php echo get_template_directory_uri(); ?>/images/demo/featured-fallback.jpg" alt="<?php the_title(); ?>">
                                    <?php } 
                                    ?>
                                </a>
                            </figure>
                            <?php } ?>    

                            
                            <?php 
                            if($show_fontawesome_icon == 1){ ?>
                            <div class="featured-icon">
                            <i class="fa <?php echo $accesspressray_pro_settings['featured_post1_icon'] ?>"></i>
                            </div>        
                            <?php } ?>
                            
                            

                            <div class="featured-content">
                                <h2 class="featured-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                <p><?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_feature_char ) ?></p>
                                <?php if(!empty($accesspressray_pro_settings['featured_post_readmore'])){?>
                                <a href="<?php the_permalink(); ?>" class="view-more"><?php echo $accesspressray_pro_settings['featured_post_readmore']; ?></a>
                                <?php } ?>
                            </div>
                        <?php endwhile;
                        wp_reset_postdata(); ?>
                
                </div>
            <?php }

            if(!empty($featured_post2)) { ?>
                <div id="featured-post-2" class="featured-post wow flipInY" data-wow-delay="0.7s">
                    
                    <?php
                        $query3 = new WP_Query( 'p='.$featured_post2 );
                        // the Loop
                        while ($query3->have_posts()) : $query3->the_post();
                            
                            if( $show_fontawesome_icon == 0 ){
                            ?>
                            <figure class="featured-image">
                                <a href="<?php the_permalink(); ?>">
                                    <?php                             
                                    if( has_post_thumbnail()){
                                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                                    ?>
                                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                                    <?php }else { ?>
                                    <img src="<?php echo get_template_directory_uri(); ?>/images/demo/featured-fallback.jpg" alt="<?php the_title(); ?>">
                                    <?php } 
                                    ?>
                                </a>
                            </figure>
                            <?php } ?>    

                            
                            <?php 
                            if($show_fontawesome_icon == 1){ ?>
                            <div class="featured-icon">
                            <i class="fa <?php echo $accesspressray_pro_settings['featured_post2_icon'] ?>"></i>
                            </div>        
                            <?php } ?>
                            
                            

                            <div class="featured-content">
                                <h2 class="featured-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                <p><?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_feature_char ) ?></p>
                                <?php if(!empty($accesspressray_pro_settings['featured_post_readmore'])){?>
                                <a href="<?php the_permalink(); ?>" class="view-more"><?php echo $accesspressray_pro_settings['featured_post_readmore']; ?></a>
                                <?php } ?>
                            </div>
                        <?php endwhile;
                        wp_reset_postdata(); ?>
                
                </div>
            <?php } ?>
            
            <div class="clearfix hide"></div>

            <?php if(!empty($featured_post3)) { ?>
                <div id="featured-post-3" class="featured-post wow flipInY" data-wow-delay="1.2s">
                    <?php
                        $query4 = new WP_Query( 'p='.$featured_post3 );
                        // the Loop
                        while ($query4->have_posts()) : $query4->the_post(); 
                            if( $show_fontawesome_icon == 0 ){
                            ?>
                            <figure class="featured-image">
                                <a href="<?php the_permalink(); ?>">
                                    <?php                             
                                    if( has_post_thumbnail()){
                                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                                    ?>
                                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                                    <?php }else { ?>
                                    <img src="<?php echo get_template_directory_uri(); ?>/images/demo/featured-fallback.jpg" alt="<?php the_title(); ?>">
                                    <?php } 
                                    ?>
                                </a>
                            </figure>
                            <?php } ?>    

                            
                            <?php 
                            if($show_fontawesome_icon == 1){ ?>
                            <div class="featured-icon">
                            <i class="fa <?php echo $accesspressray_pro_settings['featured_post3_icon'] ?>"></i>
                            </div>        
                            <?php } ?>
                            
                            

                            <div class="featured-content">
                                <h2 class="featured-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                <p><?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_feature_char ) ?></p>
                                <?php if(!empty($accesspressray_pro_settings['featured_post_readmore'])){?>
                                <a href="<?php the_permalink(); ?>" class="view-more"><?php echo $accesspressray_pro_settings['featured_post_readmore']; ?></a>
                                <?php } ?>
                            </div>
                        <?php endwhile;
                        wp_reset_postdata(); ?>
                
                </div>
            <?php } 

            if(!empty($featured_post4)) { ?>
                <div id="featured-post-4" class="featured-post wow flipInY" data-wow-delay="1.7s">
                    <?php
                        $query5 = new WP_Query( 'p='.$featured_post4 );
                        // the Loop
                        while ($query5->have_posts()) : $query5->the_post(); 
                            if( $show_fontawesome_icon == 0 ){
                            ?>
                            <figure class="featured-image">
                                <a href="<?php the_permalink(); ?>">
                                    <?php                             
                                    if( has_post_thumbnail()){
                                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                                    ?>
                                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                                    <?php }else { ?>
                                    <img src="<?php echo get_template_directory_uri(); ?>/images/demo/featured-fallback.jpg" alt="<?php the_title(); ?>">
                                    <?php } 
                                    ?>
                                </a>
                            </figure>
                            <?php } ?>    

                            
                            <?php 
                            if($show_fontawesome_icon == 1){ ?>
                            <div class="featured-icon">
                            <i class="fa <?php echo $accesspressray_pro_settings['featured_post4_icon'] ?>"></i>
                            </div>        
                            <?php } ?>
                            
                            

                            <div class="featured-content">
                                <h2 class="featured-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                <p><?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_feature_char ) ?></p>
                                <?php if(!empty($accesspressray_pro_settings['featured_post_readmore'])){?>
                                <a href="<?php the_permalink(); ?>" class="view-more"><?php echo $accesspressray_pro_settings['featured_post_readmore']; ?></a>
                                <?php } ?>
                            </div>
                        <?php endwhile; 
                        wp_reset_postdata(); ?>
                
                </div>
            <?php }

            }?>
        </div>    
        <?php
            }?>
    </div>
</section>
<?php } ?>
<?php } 
if($key == 'below_feature_section'){
?>
<?php if($accesspressray_pro_settings['ed_bfs']==1): ?>
<section class="cta-suscribe-form home-section">
    <div class="ak-container">
        <?php 
            $accesspressray_pro_bfs_page = $accesspressray_pro_settings['bfs_page'];
            if(!empty($accesspressray_pro_bfs_page)){
            $center_loop_args = array('page_id'=>$accesspressray_pro_bfs_page, 'post_status'=>'publish');
            $center_loop = new WP_Query($center_loop_args);
            if($center_loop->have_posts()):
            while($center_loop->have_posts()): $center_loop->the_post();
            ?>
            <div class="main-title wow fadeInUp" data-wow-delay="0.5s">
                <?php the_title(); ?>
            </div>
            <div class="center-content wow fadeInUp" data-wow-delay="1s">
                <?php the_content(); ?>
            </div>
            <?php
            endwhile;
            endif;
            }
        ?>
        
    </div>
</section>
<?php endif; ?>
 <?php } 
if($key == 'above_blog_section'){
?>
 <?php 
 if($accesspressray_pro_settings['ed_abs']):
     if(is_active_sidebar('cta-form')):?>
         <section id="about-section" class="home-section cta-suscribe-form">
         <?php 
         dynamic_sidebar('cta-form');
         ?>
         </section>
         <?php
     endif;
 endif;
 ?>
 <?php } 
if($key == 'blog_section'){
?>
<?php if($accesspressray_pro_settings['ed_blog']==1){ ?>
<section id="top-section" class="events-section clearfix home-section">
    <div id="latest-events" class="ak-container clearfix">
            <?php
                $blog_layout = $accesspressray_pro_settings['sblog_layout'];
                $bog_count = 0;
                if(!empty($accesspressray_pro_blog_cat)){

                $loop = new WP_Query( array(
                    'cat' => $accesspressray_pro_blog_cat,
                    'posts_per_page' => -1,
                )); ?>

            <h1 class="main-title wow fadeInUp" data-wow-delay="0.5s"><a href="<?php echo get_category_link($accesspressray_pro_blog_cat); ?>"><?php echo $accesspressray_pro_settings['blog_title']; ?></a></h1>
            <div class="blog-desc wow fadeInUp" data-wow-delay="0.8s"><?php echo $accesspressray_pro_settings['blog_desc']; ?></div>
            <div class="event-list-wrapper clearfix wow fadeIn" data-wow-delay="1s">
            <div class="event-slider <?php echo $blog_layout ?> ">
             <?php
             if($blog_layout == 'layout1'):
                ?>
            <?php while ($loop->have_posts()) : $loop->the_post(); 
            ?>
                <div  class="event-list clearfix ">
                    <figure class="event-thumbnail clearfix">
                        <a class="event-img" href="<?php the_permalink(); ?>">
                        <?php
                        if( has_post_thumbnail() ){
                        $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured-thumbnail', false ); 
                        ?>
                        <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                        <?php } else { ?>
                        <img src="<?php echo get_template_directory_uri(); ?>/images/demo/event-fallback.jpg" alt="<?php the_title(); ?>">
                        <?php } ?>
                        <div class="overlay-blog"> + </div>
                         </a>
                        <div class="blog-comment">
                        <?php if($accesspressray_pro_settings['show_blogauc']==1): ?>
                        <span class="author"><i class="fa fa-user"></i><?php the_author(); ?></span>
                        <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
                        <span class="comments-link"><?php comments_popup_link( __( 'No comment', 'accesspressray-pro' ), __( '1 Comment', 'accesspress-staple' ), __( '% Comments', 'accesspress_staple' ) ); ?></span>
                        <?php endif; ?>
                        </div>
                        <?php endif; ?>
                        <?php 
                        if($accesspressray_pro_settings['show_blogdate'] == 1){ ?>
                            <div class="event-date">
                            <span class="event-date-day"><?php echo get_the_date('j'); ?></span>
                            <span class="event-date-month"><?php echo get_the_date('M'); ?></span>
                            </div>
                        <?php } ?>
                        </a>
                    </figure>    

                    <div class="event-detail clearfix">
                        <h4 class="event-title">
                            <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                        </h4>

                        <div class="event-excerpt">
                            <?php echo accesspressray_pro_excerpt( get_the_content() , $accesspressray_pro_blog_char) ?>
                        </div>

                        <a class="read-more-btn" href="<?php echo the_permalink(); ?>"><?php echo $accesspressray_pro_settings['blog_readmore']; ?><span class="read-icon-wrap"><i class="fa fa-angle-right"></i></span></a>

                    </div>
                 </div>
                 
                
            <?php endwhile; ?>
            <?php 
                 elseif($blog_layout == 'layout2'):
                 while ($loop->have_posts()) : $loop->the_post(); 
                 ?>
                 <div class="blog-view-wrapper clearfix">
                    <article id="post-<?php the_ID(); ?>" class="blog-view">
                    <?php 
                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'portfolio-thumbnail', false ); 
                    $full_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large', false ); 
                    ?>  <div class="blog-archive-wrap">
                        <a href="<?php the_permalink(); ?>" >
                            <div class="blog-image">
                                <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">
                            </div>
                            <div class="blog-layout2">
                                <div class="blog-content-wrap">
                                    <h1 class="blog-title"><?php the_title(); ?></h1>
                                        
                                        <div class="entry-meta">
                                        <?php if($accesspressray_pro_settings['show_blogdate'] == 1){?>
                                     <?php accesspressray_pro_posted_on(); }?>
                                      <?php if($accesspressray_pro_settings['show_blogauc']==1){ ?>
                                     <div class="blog-author"><?php the_author(); ?></div><?php }?>
                                    </div><!-- .entry-meta -->
                                 </div>
                            </div>
                            </a>
                                 <div class="read-overlay"> <a class="read-blog" href="<?php the_permalink(); ?>"><?php echo "Read More"; ?></a> </div>
                         </div>
                    </article>
                </div>
            
            
            <?php endwhile;?>
            <?php 
            endif;
            ?>
            </div>
            <a href="<?php echo get_category_link($accesspressray_pro_blog_cat); ?>" class="view-all clearfix">view all</a>
            <?php wp_reset_postdata(); 
               } ?>
    </div>
</section>
<?php } ?>

 <?php } 
if($key == 'awesome_feature_section'){
?>
<?php if($accesspressray_pro_settings['ed_afs']==1): ?>
<section class="icon-section home-section">
    <div class="ak-container">
        
        <?php 
            $accesspressray_pro_af_page = $accesspressray_pro_settings['afs_page'];
            $center_loop_args = array('page_id'=>$accesspressray_pro_af_page, 'post_status'=>'publish');
            $center_loop = new WP_Query($center_loop_args);
            if($center_loop->have_posts()):
            while($center_loop->have_posts()): $center_loop->the_post();
            ?>
            <div class="main-title wow fadeInUp" data-wow-delay="0.5s">
            <?php the_title(); ?>
            </div>
            <div class="center-content wow fadeInUp" data-wow-delay="0.8s">
            <?php the_content(); ?>
            </div>
            <?php
            endwhile;
            endif;
        ?>
        
    </div>
</section>
<?php endif; ?>
 <?php } 
if($key == 'team_member_section'){
?>
<?php if($accesspressray_pro_settings['ed_tms']==1): ?>
<section class="team-section home-section">
    <div class="ak-container">
        
        <?php 
            $accesspressray_pro_tm_page = $accesspressray_pro_settings['tms_page'];
            $team_loop_args = array('page_id'=>$accesspressray_pro_tm_page, 'post_status'=>'publish');
            $team_loop = new WP_Query($team_loop_args);
            if($team_loop->have_posts()):
            while($team_loop->have_posts()): $team_loop->the_post();
            ?>
            <div class="main-title wow fadeInUp" data-wow-delay="0.5s">
            <?php the_title(); ?>
            </div>
            <div class="center-content wow fadeInUp" data-wow-delay="0.8s">
            <?php the_content(); ?>
            </div>
            <?php
            endwhile;
            endif;
        ?>
        
    </div>
</section>
<?php endif; ?>
 <?php } 
if($key == 'feature_widget_section'){
?>
<?php
if($accesspressray_pro_featured_bar != 0) :?>

<section id="bottom1-section" class="business-section clearfix home-section">
    <div class="ak-container">
        <div class="business-activities-wrapper clearfix">
            <div class="business-wrapper bussiness-tab clearfix wow fadeInUp" data-wow-delay="0.5s">
            <?php if ( is_active_sidebar( 'textblock-1' ) ) : ?>
              <?php dynamic_sidebar( 'textblock-1' ); 
               endif; ?>    
            </div>
            
            <div class="business-wrapper  bussiness-slider clearfix wow fadeInUp" data-wow-delay="0.5s">
            <?php 
            if ( is_active_sidebar( 'textblock-2' ) ) : ?>
              <?php dynamic_sidebar( 'textblock-2' ); ?>
            <?php endif; ?>    
            </div>    
            
            
        </div>
    </div>
</section>
<?php endif; ?>
 <?php } 
if($key == 'testimonial_section'){
?>
<?php
 if($accesspressray_pro_settings['ed_testimonials'] ==1){ ?>
<section id="bottom2-section" class="clients-say-section clearfix home-section">
    <div class="ak-container">

                     <h3 class="main-title wow fadeInUp" data-wow-delay="0.5s"><?php echo $accesspressray_pro_settings['testimonial_title'] ?></h3>
                    <div class="testimonials-desc wow fadeInUp" data-wow-delay="0.8s"><?php echo $accesspressray_pro_settings['testimonial_desc'] ?></div>
                        <?php
                            $loop2 = new WP_Query( array(
                                'post_type' => 'testimonial',
                                'posts_per_page' => -1,
                                'post_status'=>'publish'
                            ));
                             ?>
                            <?php if($loop2->have_posts()):?>
                           
                        <div class="testimonial-wrap wow fadeInUp" data-wow-delay="1s">
                            <div class="<?php if($accesspressray_pro_3_column_testimonials==1){ echo "three-column-testimonail"; } else{ echo "testimonial-slider";}?>">
                             <?php while ($loop2->have_posts()) : $loop2->the_post(); ?>

                                <div class="testimonial-slide">
                                    <div class="testimonial-list clearfix">
                                        <div class="testimonial-thumbnail-wrap">
                                            <a href="<?php the_permalink() ?>">
                                            <div class="testimonial-thumbnail">
                                            <?php 
                                            if(has_post_thumbnail()){
                                            the_post_thumbnail('thumbnail'); 
                                            }else{ ?>
                                                <img src="<?php echo get_template_directory_uri(); ?>/images/testimonial-dummy.jpg" alt="no-image"/>
                                            <?php }?>
                                            </div>
                                            </a>
                                        </div>

                                        <div class="testimonial-excerpt">
                                            <?php echo accesspressray_pro_excerpt( get_the_content() , 140 ) ?>
                                            
                                        </div>
                                    </div>
                                <div class="testimoinal-client-name"><?php the_title(); ?></div>
                                <div class="tesimonial-designation"><?php echo get_post_meta( $post->ID, 'accesspressray_pro_testimonial_text', true ); ?></div>
                                </div>
                            <?php endwhile; ?>
                            <?php endif; ?>
                            </div>
                        </div>

                        <?php wp_reset_postdata();?> 
                            
    </div>            
</section>
<?php } ?>

 <?php } 
if($key == 'logo_section'){
?>
<?php
if($accesspressray_pro_disable_client_slider == 1):
$query3 = new WP_Query( array(
    'post_type' => 'logo',
    'posts_per_page' => -1,
    )); ?>
<?php if ($query3->have_posts()) : ?>
<section id="clients-logo" class="home-section">
    <div class="ak-container">
    <?php if(!empty($accesspressray_pro_client_slider_heading)): ?>
        <h2 class="main-title wow fadeInUp" data-wow-delay="0.5s"><?php echo $accesspressray_pro_client_slider_heading; ?></h2>
    <?php endif; ?>
        <div class="client-desc wow fadeInUp" data-wow-delay="0.8s"><?php echo $accesspressray_pro_settings['client_slider_desc']; ?></div>
            <div class="logo-slider">
            <?php while ($query3->have_posts()) : $query3->the_post(); ?>
                <?php 
                $imageid = get_post_thumbnail_id( $post->ID ) ;
                $image = wp_get_attachment_image_src($imageid,'full',false) ?>
                
                    <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>">

            <?php endwhile; ?>
            </div>
    </div>
</section>
<?php endif; 
endif;
?>
<?php }
if($key == 'video_section'){
?>
<?php 
if($accesspressray_pro_settings['ed_ctav']):
if ( is_active_sidebar( 'full-width' ) ) {?>
<section class="cta-video-section-wrap home-section">
    <div class="cta-video-section">
        <div class="ak-container">
        <?php
            dynamic_sidebar( 'full-width' );
        ?>
        </div>
    </div>
</section>
<?php }
endif; ?>
<?php } 
if($key == 'map_section'){
?>
<?php    
if($accesspressray_pro_settings['ed_map']==1){
    
/** Variable and Declaration for Contact Address **/

$accesspressray_contact_title = $accesspressray_pro_settings['contact_title'];
$accesspressray_contact_desc = $accesspressray_pro_settings['contact_desc'];
$accesspressray_contact_phone = $accesspressray_pro_settings['contact_phone'];
$accesspressray_contact_email = $accesspressray_pro_settings['contact_email'];
$accesspressray_contact_url = $accesspressray_pro_settings['contact_url'];
$accesspressray_contact_skype = $accesspressray_pro_settings['contact_skype'];

$accesspressray_contact_address_title = $accesspressray_pro_settings['contact_address_title'];
$accesspressray_contact_phone_title = $accesspressray_pro_settings['contact_phone_title'];
$accesspressray_contact_email_title = $accesspressray_pro_settings['contact_email_title'];
$accesspressray_contact_url_title = $accesspressray_pro_settings['contact_website_title'];
$accesspressray_contact_skype_title = $accesspressray_pro_settings['contact_skype_title'];
 ?>

<section id="google-map" class="clearfix">
    <?php 
            ?>
            <div id="ap-map-canvas"></div>
            <div class="google-section-wrap ak-container">            
            <div class="ak-contact-address wow fadeInRight" data-wow-delay="1s">
            <h3 class="main-title"><?php echo $accesspressray_contact_title;?></h3>
            <div class="contact-map-wrap">
                <div class="cont_desc"><?php echo $accesspressray_contact_desc ?></div>
                <?php echo do_shortcode($accesspressray_pro_settings['contactss_shortcode']); ?>
                <div class="contact_all_wrap clearfix">
                    <div class="address-wrap">
                        <?php if(!empty($accesspressray_pro_settings['contact_address'])): ?>
                        <div class="contact-address contact-info-map clearfix"><i class="fa fa-map-marker"></i><span><span class="bold"><?php echo esc_attr__($accesspressray_contact_address_title, 'accesspressray_pro');?></span> <?php echo $accesspressray_pro_settings['contact_address']?></span></div>
                        <?php endif; ?>
                        <?php if(!empty($accesspressray_contact_phone)): ?>
                        <div class="contact-phone contact-info-map"><i class="fa fa-fax"></i><span class="bold"><?php echo esc_attr__($accesspressray_contact_phone_title, 'accesspressray_pro'); ?></span><?php echo $accesspressray_contact_phone ?></div>
                        <?php endif; ?>
                    </div>
                    <div class="mail-wrap">
                    <?php if(!empty($accesspressray_contact_email)): ?>
                        <div class="contact-email contact-info-map"><i class="fa fa-envelope-o"></i><a href="mailto:<?php echo esc_attr__($accesspressray_contact_email_title, 'accesspressray_pro');?><?php echo $accesspressray_contact_email ?>"><span class="bold">Mail:</span><?php echo $accesspressray_contact_email ?></a></div>
                        <?php endif; ?>
                        <?php if(!empty($accesspressray_contact_url)): ?>
                        <div class="contact-urls contact-info-map"><i class="fa fa-globe"></i><a href="<?php echo $accesspressray_contact_url ?>" target="_blank" rel="nofollow"><span class="bold"><?php echo esc_attr__($accesspressray_contact_url_title, 'accesspressray_pro');?></span><?php echo $accesspressray_contact_url ?></a></div>
                        <?php endif; ?>
                        <?php if(!empty($accesspressray_contact_skype)): ?>
                        <div class="contact-skype contact-info-map"><i class="fa fa-skype"></i><span class="bold"><?php echo esc_attr__($accesspressray_contact_skype_title, 'accesspressray_pro');?></span><?php echo $accesspressray_contact_skype ?></div>
                        <?php endif; ?>
                    </div>
                    <div class="clearfix"> </div>
                    <div class="map-social-icons">
                            <?php
                                do_action( 'accesspressray_pro_social_links' ); 
                            ?>
                    </div>
                </div>
            
            </div>
            
            </div>
            </div>
    
</section>

 

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cadê as chaves fechando? Logo de cara eu vi:

 

Chaves abertas: 62  http://prntscr.com/gqvld9

 

Fechadas: 59   http://prntscr.com/gqvlmv

 

Você abriu os ifs PHP e não os fechou.

 

Outra coisa que notei, copiei seu código e só foi até a linha 711, o erro está na 748. Favor edite o código e poste completo.

Compartilhar este post


Link para o post
Compartilhar em outros sites
1 hour ago, Jesse&Francinete said:

Cadê as chaves fechando? Logo de cara eu vi:

 

Chaves abertas: 62  http://prntscr.com/gqvld9

 

Fechadas: 59   http://prntscr.com/gqvlmv

 

Você abriu os ifs PHP e não os fechou.

 

Outra coisa que notei, copiei seu código e só foi até a linha 711, o erro está na 748. Favor edite o código e poste completo.

 

Ola amigo. 

eu so fiz copiar tudo e colar aqui.

 

realmente tem mais chaves abertas que fechadas. porem olhei aqui e nao consegui corrigir :(

Compartilhar este post


Link para o post
Compartilhar em outros sites

A hospedagem normalmente libera um back-up para acidentes assim.
Algumas cobram um valor por solicitar.

 

Enfim entre em contato com a sua hospedagem já que não tem noção de scripts, talvez seja a alternativa que você busca.

 

Compartilhar este post


Link para o post
Compartilhar em outros sites
20 minutos atrás, Tiago Carleial disse:

 

Ola amigo. 

eu so fiz copiar tudo e colar aqui.

 

realmente tem mais chaves abertas que fechadas. porem olhei aqui e nao consegui corrigir :(

 

Pois é cara, ou você faz o que o Gabrieldarezzo falou, ou instala o template de novo.

Compartilhar este post


Link para o post
Compartilhar em outros sites

  • Conteúdo Similar

    • Por ILR master
      Fala galera, tudo bem?
       
      Tenho o seguinte codigo:
       
       class Data {
      public static function ExibirTempoDecorrido($date)
      {
          if(empty($date))
          {
              return "Informe a data";
          }
          $periodos = array("segundo", "minuto", "hora", "dia", "semana", "mês", "ano", "década");
          $duracao = array("60","60","24","7","4.35","12","10");
          $agora = time();
          $unix_data = strtotime($date);
          // check validity of date
          if(empty($unix_data))
          {  
              return "Bad date";
          }
          // is it future date or past date
          if($agora > $unix_data) 
          {  
              $diferenca     = $agora - $unix_data;
              $tempo         = "atrás";
          } 
          else 
          {
              $diferenca     = $unix_data - $agora;
              $tempo         = "agora";
          }
          for($j = 0; $diferenca >= $duracao[$j] && $j < count($duracao)-1; $j++) 
          {
              $diferenca /= $duracao[$j];
          }
          $diferenca = round($diferenca);
          if($diferenca != 1) 
          {
              $periodos[$j].= "s";
          }
          return "$diferenca $periodos[$j] {$tempo}";
      }
      }
       
      Funciona redondinho se o valor retornado for de algumas horas, mas...
      Quando passa de dois meses, ele retorna a palavra mess. Deve ser por conta dessa linha
      if($diferenca != 1) 
          {
              $periodos[$j].= "s";
          }
       
      Quero que modre:
       
      2 meses atrás
      e não
      2 mess atrás.
       
      Espero que tenham entendido.
       
      Valeu
    • Por Carlos Web Soluções Web
      Olá...
      Estou tentando fazer o seguinte !!
      Listando dados em tabela !!
      Gostaria que....se na listagem houver 4 linhas...indepedente de seu número de ID, faça a listagem em ID ser em ordem 1 2 3 4 !!
      Exemplo...se tiver uma listagem de dados que está em ID 1 3 3...faça ficar 1 2 3 !!

       
      echo "<table class='tabela_dados' border='1'> <tr> <td>ID</td> <td>Nome Empresa</td> <td>Responsável</td> <td>Telefone 1</td> <td>Telefone 2</td> <td>E-mail 1</td> <td>E-mail 2</td> <td>Endereço</td> <td>CEP</td> <td>Bairro</td> <td>AÇÃO 1</td> <td>AÇÃO 2</td> </tr> "; $sql = "SELECT ID FROM usuarios_dados WHERE Usuario='$usuario'"; $result = $conn->query($sql); $num_rows = $result->num_rows; $Novo_ID = 1; for ($i = 0; $i < $num_rows; $i++) { $registro = $result -> fetch_row(); $sql2 = "UPDATE usuarios_dados SET ID='$Novo_ID' WHERE ID='$Novo_ID'"; $result2 = $conn->query($sql2); $Novo_ID++; } $sql = "SELECT * FROM usuarios_dados"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "<tr> <td>$row[ID]</td> <td>$row[Nome_Empresa]</td> <td>$row[Responsavel]</td> <td>$row[Telefone_1]</td> <td>$row[Telefone_2]</td> <td>$row[Email_1]</td> <td>$row[Email_2]</td> <td>$row[Endereço]</td> <td>$row[CEP]</td> <td>$row[Bairro]</td> <td> <form method='post' action='Editar_Dados.php'> <input type='hidden' name='usuario' value='$usuario'> <input type='hidden' name='senha' value='$senha'> <input type='hidden' name='ID' value='$row[ID]'> <input type='submit' style='padding: 10px;' value='EDITAR'> </form> </td> <td> <form method='post' action='Deletar_Dados.php'> <input type='hidden' name='usuario' value='$usuario'> <input type='hidden' name='senha' value='$senha'> <input type='hidden' name='ID' value='$row[ID]'> <input type='submit' style='padding: 10px;' value='DELETAR'> </form> </td> </tr> "; } } else { echo "0 results"; } $conn->close();  
    • Por ILR master
      Boa tarde pessoal, tudo bem ?
       
      Eu uso o tinymce para cadastro de textos no meu siite, porém, quero fazer um sistema para que os colunistas possam fazer o próprio post.
      O problema do tinymce, é que ele mantém a formatação do texto copiado, como tamanho de fonts, negritos, etc... Quero que o usuário cole o texto e a própria textarea limpe a formatação para que ele formate como quiser.
       
      A pergunta é:
       
      O tinymce tem uma opção para desabilitar a formatação quando um texto é colocado?
      Tem alguma função via java ou php para retirar a formatação assim que o texto é colado?
      Ou é melhor usar um outro editor?
       
      Agradeço deste já.
    • Por Giovanird
      Olá a todos!
      Tenho uma pagina que possui uma DIV onde coloquei uma pagina PHP.
      Uso a função setInterval para atualizar a pagina inclusa dentro da DIV.
      O problema é que ao acessar o site , a DIV só me mostra a pagina inclusa somente quando completo o primeiro minuto.
      Preciso que a pagina inclusa já inicie carregada
       
      Meu código JavaScript e a DIV com a pagina PHP
       
      <script> function atualiza(){ var url = 'direita.php'; $.get(url, function(dataReturn) { $('#direita').html(dataReturn); }); } setInterval("atualiza()",60000); </script> <div> <span id="direita"></span> </div>  
    • Por ILR master
      Fala pessoal.
       
      Seguinte:
       
      Quero selecionar duas tabelas e mostrar com resultados intercalados. Abaixo segue um código explicando para vcs terem uma ideia.
       
      $consulta = "SELECT A.*, B.* FROM tabela1 A, tabela2 B'";
      $resultado = mysqli_query($conexao, $consulta) or die ("erro");
      while($busca = mysqli_fetch_array($resultado)){
       
      print $busca['cod_evento']; --> traz o código da tabela1 
      print $busca['titulo_evento']; -->  traz o titulo da tabela1
      print $busca['cod_noticia']; --> traz o código da tabela2
      print $busca['titulo_noticia']; --> traz o tituloda tabela2
       
      }
       
      Espero que entendam. Grato
       
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.