Ir para conteúdo

POWERED BY:

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 Rafael_Ferreira
      Não consigo carregar a imagem do captcha do meu formulário. Foi testado com o xampp e easyphp. Também não carregou a imagem de outros captcha. 
       
       
    • Por luiz monteiro
      Olá, tudo bem?
       
      Estou melhorando meu conhecimento em php e mysql e, me deparei com o seguinte. A tabela da base de dados tem um campo do tipo varchar(8) o qual armazena números. Eu não posso alterar o tipo desse campo. O que preciso é fazer um select para retornar o números que contenham zeros a direita ou a esquerda.
      O que tentei até agora
       
      Ex1
      $busca = $conexao->prepare("select campo form tabela where (campo = :campo) ");
      $busca->bindParam('campo', $_REQUEST['campo_form']);
       
      Se a direita da string $_REQUEST['campo_form'] termina ou inicia com zero ou zeros, a busca retorna vazio.
      Inseri dados numéricos, da seguinte maneira para testar: 01234567;  12345670: 12345678: 12340000... entre outros nessa coluna. Todos os valores que não terminam ou não iniciam com zero ou zeros, o select funciona.
       
       
      Ex2
      $busca = $conexao->prepare("select campo form tabela where (campo = 0340000) ");
      Esse número está cadastrado, mas não retorna.
       
      Ex3
      $busca = $conexao->prepare("select campo form tabela where (campo = '02340001' ) ");
      Esse número está cadastrado, mas não retorna.
       
       
      Ex4
      $busca = $conexao->prepare("select campo form tabela where (campo like 2340000) ");
      Esse número está cadastrado, mas não retorna.
       
      Ex5
      $busca = $conexao->prepare("select campo form tabela where (campo like '12340000') ");
      Esse número está cadastrado, mas não retorna.
       
      Ex6
      $busca = $conexao->prepare("select campo form tabela where (campo like '"12340000"' ) ");
      Esse número está cadastrado, mas não retorna.
       
       
      Ex7
      $busca = $conexao->prepare("select campo form tabela where (campo like :campo) ");
      $busca->bindParam('campo', $_REQUEST['campo_form'])
      Não retorna dados.
       
      O  $_REQUEST['campo_form'] é envio via AJAX de um formulário. 
      Usei o gettype para verificar o post, e ele retorna string.
      Fiz uma busca com número 12345678 para verificar o que o select retorna, e também retrona como string.
       
      Esse tipo de varchar foi usado porque os números que serão gravados nesse campo,  terão zeros a direita ou na esquerda. Os tipos number do mysql não gravam zeros, então estou usando esse. O problema é a busca.
      Agradeço desde já.
       
       
    • Por daemon
      Boa tarde,
       
      Eu tenho uma rotina que faz uma leitura do arquivo .xml de vários sites.

      Eu consigo pegar o tópico e a descrição, e mostrar a imagem que esta na pagina do link.
      Para isso utilizo esta função:
      function getPreviewImage($url) { // Obter o conteúdo da página $html = file_get_contents($url); // Criar um novo objeto DOMDocument $doc = new DOMDocument(); @$doc->loadHTML($html); // Procurar pela tag meta og:image $tags = $doc->getElementsByTagName('meta'); foreach ($tags as $tag) { if ($tag->getAttribute('property') == 'og:image') { return $tag->getAttribute('content'); } } // Se não encontrar og:image, procurar pela primeira imagem na página $tags = $doc->getElementsByTagName('img'); if ($tags->length > 0) { return $tags->item(0)->getAttribute('src'); } // Se não encontrar nenhuma imagem, retornar null return null; } // Uso: $url = "https://example.com/article"; $imageUrl = getPreviewImage($url); if ($imageUrl) { echo "<img src='$imageUrl' alt='Preview'>"; } else { echo "Nenhuma imagem encontrada"; }  
      Mas estou com um problema, esta funcão funciona quando coloco em uma pagina de teste.php. Preciso mostrar em uma página inicial diversas fotos de todos os links. (No caso acima só funciona 1).
    • Por violin101
      Caros amigos, saudações.
       
      Por favor, me permita tirar uma dúvida com os amigos.

      Tenho um Formulário onde o Usuário digita todos os Dados necessários.

      Minha dúvida:
      --> como faço após o usuário digitar os dados e salvar, o Sistema chamar uma Modal ou mensagem perguntando se deseja imprimir agora ?

      Grato,
       
      Cesar
    • Por Carcleo
      Tenho uma abela de usuarios e uma tabela de administradores e clientes.
      Gostaria de uma ajuda para implementar um cadastro
       
      users -> name, login, passord (pronta) admins -> user_id, registratiom, etc.. client -> user_id, registratiom, etc...
      Queria ajuda para extender de user as classes Admin e Client
      Olhem como estáAdmin
      <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Admin extends User {     use HasFactory;            protected $fillable = [         'name',         'email',         'password',         'registration'     ];      private string $registration;     public function create(         string $name,          string $email,          string $password,         string $registration     )     {         //parent::create(['name'=>$name, 'email'=>$email, 'password'=>$password]);         parent::$name = $name;         parent::$email = $email;         parent::$password = $password;         $this->registration = $registration;     } } User
      <?php namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class User extends Authenticatable {     /** @use HasFactory<\Database\Factories\UserFactory> */     use HasFactory, Notifiable;     static string $name;     static string $email;     static string $password;     /**      * The attributes that are mass assignable.      *      * @var list<string>      */     protected $fillable = [         'name',         'email',         'password',     ];          /**      * The attributes that should be hidden for serialization.      *      * @var list<string>      */     protected $hidden = [         'remember_token',     ];     /**      * Get the attributes that should be cast.      *      * @return array<string, string>      */     protected function casts(): array     {         return [             'email_verified_at' => 'datetime',             'password' => 'hashed',         ];     }          public function roles() : BelongsToMany {         return $this->belongsToMany(Role::class);     }       public function hasHole(Array $roleName): bool     {                 foreach ($this->roles as $role) {             if ($role->name === $roleName) {                 return true;             }         }         return false;     }         public function hasHoles(Array $rolesName): bool     {                 foreach ($this->roles as $role) {             foreach ($rolesName as $rolee) {             if ($role->name === $rolee) {                 return true;             }          }         }         return false;     }         public function hasAbility(string $ability): bool     {         foreach ($this->roles as $role) {             if ($role->abilities->contains('name', $ability)) {                 return true;             }         }         return false;     }     } Como gravar um Admin na tabela admins sendo que ele é um User por extensão?
      Tentei assim mas é claro que está errado...
      public function store(Request $request, Admin $adminModel) {         $dados = $request->validate([             "name" => "required",             "email" => "required|email",             "password" => "required",             "registration" => "required"         ]);         $dados["password"] =  Hash::make($dados["password"]);                  $admin = Admin::where("registration",  $dados["registration"])->first();                  if ($admin)              return                    redirect()->route("admin.new")                             ->withErrors([                                 'fail' => 'Administrador já cadastrados<br>, favor verificar!'                   ]);                            $newAdmin = $adminModel->create(                                    $dados['name'],                                    $dados['email'],                                    $dados['password'],                                    $dados['registration']                                 );         dd($newAdmin);         $adminModel->save();         //$adminModel::create($admin);                  return redirect()->route("admin.new")->with("success",'Cadastrado com sucesso');     }  
×

Informação importante

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