Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter Bluekid

    (@bluekid)

    Thanks a lot for support! ??

    Thread Starter Bluekid

    (@bluekid)

    thanks, you’re very understanding, i aprecciate it!

    Thread Starter Bluekid

    (@bluekid)

    the problem is precisely that the review score reaches 10 and not 5.
    any hotel etc. on booking.com has this view!

    • This reply was modified 4 years, 3 months ago by Bluekid.
    Thread Starter Bluekid

    (@bluekid)

    someone could help me please ??

    Thread Starter Bluekid

    (@bluekid)

    Hi Umar, thanks for your kindness and support ??
    Yes, i need to add a pagination system.
    The problem is that i don’t know how to integrate pagination code in this code:

    
    <?php
    
    if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
    
    if (isset($_REQUEST['anno']))
    	$Anno=(int)$_REQUEST['anno'];
    else
    	$Anno=date("Y");
    $Mese=0;
    if (isset($_REQUEST['mese']))
    	$Mese=(int)$_REQUEST['mese'];
    $ret=Lista_Circolari($Anno,$Mese);
    
    function Lista_Circolari($Anno,$Mese){
    $Contenuto="";
    $IdCircolari=get_option('Circolari_Categoria');
    $mesecorrente = date('n');
    if (isset($_REQUEST['Anno']))
    	$annocorrente = (int)$_REQUEST['Anno'];
    else
    	$annocorrente = date('Y');
    if (isset($_REQUEST['Mese']))
    	$mesecorrente=(int)$_REQUEST['Mese'];
    elseif(isset($_REQUEST['Anno']))
    	$mesecorrente="";
    else
    	$mesecorrente=date('n');
    $args = array( 'category' => $IdCircolari,
    		       'post_type' => array('post','circolari'),
    			   'posts_per_page'  => 10,
    			   'post_status' => 'publish');
    $Circolari = get_posts($args);
    
    if (empty($Circolari)){
    	$Contenuto.='<h3 class="mescirc">Non risultano circolari per '.circ_MeseLettere($mesecorrente).' '.$annocorrente.' verranno visualizzate le ultime 50</h3>';
    	$args = array( 'category' => $IdCircolari,
    	       'post_type' => array('post','circolari'),
    		   'posts_per_page'  => -1,
    		   'post_status' => 'publish');	
    	$Circolari = get_posts($args);
    }
    
    $Contenuto.=' <div>';
    foreach($Circolari as $post) {
    	$visibilita=get_post_meta($post->ID, "_visibilita");
     	if(count($visibilita)==0)
     		$visibilita="p";
     	else 
     		$visibilita=$visibilita[0];
    	if ((Is_Circolare_per_User($post->ID) and $visibilita=="d") or $visibilita=="p"){
    		$fgs = wp_get_object_terms($post->ID, 'gruppiutenti');
    		$Elenco="";
    		if(!empty($fgs)){
    			foreach($fgs as $fg){
    				$Elenco.=$fg->name." - ";
    			}
    			$Elenco=substr($Elenco,0,strlen($Elenco)-3);
    		}
    
    		$Contenuto.='
    		
    		
    		// H E R E   S T A R T   L O O P
    		
    		
    		<div class="circosx"><img src="IMG.jpg"  /></div><div style="float:left; width:70%;">';
    		$numero=get_post_meta($post->ID, "_numero",TRUE);
    		$anno=get_post_meta($post->ID, "_anno",TRUE);
    		$Contenuto.='
    			<div class="circodx"><h4><a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a>
    			</h4>
    			<div style="font-weight: bold;font-size:0.8em;">Del '.FormatDataItaliano($post->post_date).' Numero '.$numero.'_'.$anno.'</div> 
    			<div style="min-height:30px;margin-top:5px;margin-bottom:5px; padding: 5px 3px;">
    					<!--<img src="'.Circolari_URL.'img/tipo.png" style="border:0;" alt="Icona tipo post" />
    					<p style="font-style:italic;font-size:0.8em;display:inline;margin-top:3px; margin-right:15px;">
    						<a href="LINK">'.$post->post_type.'</a>
    					</p>  -->
    				
    			';
    
    		if ($post->post_type=="circolari")
    
    			$Contenuto.='
    					<img src="'.Circolari_URL.'img/gruppo.png" style="border:0; float:left;" alt="Icona destinatari"/>
    					<p style="font-style:italic;font-size:0.8em;float:left;display:inline;margin:-2px 0px 0px 5px;">'.$Elenco.'
    					<!--<a href="LINK'.strtolower(str_replace(' ', '-', $Elenco)).'"></a>-->
    					</p>';
    
    		if (!post_password_required( $post->ID ))
    			$riassunto=	$post->post_excerpt;
    		else{
    			$riassunto="";
    		}
    		if (!empty($post->post_password))
    			$Contenuto.='
    					<img src="'.Circolari_URL.'img/protetto.png" style="border:0;" alt="Icona protezione"/>
    					<p style="font-style:italic;font-size:0.8em;display:inline;margin-top:3px;">Contenuto Protetto</p>';	
    //		if (Is_Circolare_per_User($post->ID))
    //	echo ">>>>>>>>>>>>>>>>>>>>>>>>>><<".$post->ID."<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br />";return;
    			if (Is_Circolare_Da_Firmare($post->ID))
    				if (!Is_Circolare_Firmata($post->ID)) {
    					$ngiorni=Get_scadenzaCircolare($post->ID,"",True);					
    					if(Is_Circolare_Scaduta($post->ID)){
    						$Contenuto.='
    							<img src="'.Circolari_URL.'/img/firmabe.png" style="border:0;" alt="Icona firma o presa visione"/>
    							<p style="font-style:italic;font-size:0.8em;display:inline;margin-top:3px;color:red;">Scaduta e non Firmata</p>';						
    					}else{
    						switch ($ngiorni){
    							case -1:							
    								$entro="";							
    								break;													
    							case 0:
    								$entro="entro OGGI";
    								break;
    							case 1:
    								$entro="entro DOMANI";
    								break;
    							default:
    								$entro="entro $ngiorni giorni";
    								break;
    						}
    						if (get_post_meta($post->ID, "_sciopero",TRUE)=="Si")
    							$Tipo="Esprimere adesione $entro";
    						else
    							if (get_post_meta($post->ID, "_firma",TRUE)=="Si")
    								$Tipo="Firmare $entro";
    						$Contenuto.='
    							<img src="'.Circolari_URL.'/img/firmabe.png" style="border:0;" alt="Icona firma o presa visione"/>
    							<p style="font-style:italic;font-size:0.8em;display:inline;margin-top:3px;color:red;">'.$Tipo.'</p>';	
    				}			
    			}else{
    				$Contenuto.='
    					<img src="'.Circolari_URL.'/img/firmabe.png" style="border:0;" alt="Icona firma o presa visione"/>
    					<p style="font-style:italic;font-size:0.8em;display:inline;margin-top:3px;color:blue;">Firmata</p>';				
    			}
    			$Contenuto.='	
    			</div>
    			<div style="margin-bottom:5px;">
    				<em>'.$riassunto .'</em>
    			</div>
            
    			
    			<div style="height:30px;"></div>
    		</div></div><hr class="separacirc" />';
    		
    		
    		// H E R E   E N D   L O O P
    		
    	}
    }
    
    $Contenuto.= '
    		</div>
    		<div style="clear:both"></div>';
    
    return $Contenuto;
    }
    ?>
    

    I market on this code where START and END the loop so you can understand.
    I hope I explained myself

    Thread Starter Bluekid

    (@bluekid)

    I think i solved… in the content-excerpt.php i add this code:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php static $count = 0;
    if ($count == "5") { break; }
    else { ?>
    
    ----------------HERE THE CODE OF CONTENT-EXCERPT.PHP----------------
    
    <?php $count++; } ?>
    <?php endwhile; ?>
    <?php endif; ?>

    it’s a good idea? what do you think?

    Thread Starter Bluekid

    (@bluekid)

    what mean wordpresser. third class? can you help me?
    the theme is a wellthemes

    Thread Starter Bluekid

    (@bluekid)

    thanks for reply Steve, can you explain me?
    in content-experpt.php i’ve this code:

    <?php?>
    <article <?php post_class(); ?> data-animation="fadeInLeft">
    	
    	<?php if ( has_post_thumbnail() ) {	?>
    		<div class="thumb excerpt-thumb overlay">
    			<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'wt550_300' ); ?></a>			
    		</div>
    	<?php } ?>
    	
    	<div class="excerpt-wrap">
    	
    		<div class="entry-meta">
    			<?php wt_get_first_cat(); ?>
    				
    			<span class="author">
    				<?php _e('Author:', 'wellthemes'); ?>
    				<?php the_author_posts_link(); ?> 
    			</span>
    
    			<span class="sep">-</span>														
    			<span class="date"><?php echo get_the_date(); ?></span>	
    															
    			<?php				
    				$comment_count = get_comments_number($post->ID);
    				if ($comment_count > 0){ ?>	
    					<span class="comments">
    						<i class="fa fa-comment"></i>
    						<?php comments_popup_link( __('', 'wellthemes'), __( '1', 'wellthemes'), __('%', 'wellthemes')); ?>	
    					</span>					
    					<?php
    				}
    
    				if ( wt_get_option( 'wt_enable_rating' ) == 1 ){
    					ec_stars_rating_archive(); 
    				}
    			?>					
    		</div>	
    		
    		<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>		
    		<?php the_excerpt(); ?>
    		
    		<div class="excerpt-footer">
    			<div class="more-link">
    				<a href="<?php the_permalink() ?>"><?php _e('Read more', 'wellthemes'); ?></a>
    			</div>
    			<div class="share-links">
    				<span class="share"><?php _e('Share', 'wellthemes'); ?></span>
    				<span class="links">
    					<a class="twitter" href="https://twitter.com/home?status=<?php echo urlencode( get_the_title() ); ?>%20<?php echo urlencode( get_the_permalink() ); ?>" target="_blank"><i class="fa fa-twitter-square"></i><?php _e('Twitter', 'wellthemes'); ?></a>	
    					<a  class="fb" href="https://facebook.com/share.php?u=<?php echo urlencode( get_the_permalink() ); ?>&t=<?php echo urlencode( get_the_title() ); ?>" target="_blank"><i class="fa fa-facebook-square"></i><?php _e('Facebook', 'wellthemes'); ?></a>
    				</span>
    			</div>
    		</div>
    				
    	</div>
    	
    </article><!-- /post-<?php the_ID(); ?> -->
    Thread Starter Bluekid

    (@bluekid)

    thanks mate, i found admin column pro plugin!

    Thread Starter Bluekid

    (@bluekid)

    hello we need support ??
    someone still develope this plugin??

    Thread Starter Bluekid

    (@bluekid)

    “create folder” button too doesn’t work :-O !!!!!!!!!!!!!!!!

    Thread Starter Bluekid

    (@bluekid)

    i sent to you a private email about a customization under payment, have you read it? i need urgently mate!

    Thread Starter Bluekid

    (@bluekid)

    it is difficult? can you help us, we really need mate!

    Thread Starter Bluekid

    (@bluekid)

    hey i solve ??

    [display-posts post_type=”documents” taxonomy=”usergroups” tax_term=”teachers_documents”]

    finally!!! ?? thanks

    Thread Starter Bluekid

    (@bluekid)

    exactly i have a problem of fatal error here header.php on line 3

    line 3 is $logoUrl = ot_get_option('logo_url');

    and the ot-functions.php is this:

    <?php if ( ! defined( 'OT_VERSION' ) ) exit( 'No direct script access allowed' );
    /**
     * OptionTree functions
     *
     * @package   OptionTree
     * @author    Derek Herman <[email protected]>
     * @copyright Copyright (c) 2013, Derek Herman
     * @since     2.0
     */
    
    /**
     * Get Option.
     *
     * Helper function to return the option value.
     * If no value has been saved, it returns $default.
     *
     * @param     string    The option ID.
     * @param     string    The default option value.
     * @return    mixed
     *
     * @access    public
     * @since     2.0
     */
    if ( ! function_exists( 'ot_get_option' ) ) {
    
      function ot_get_option( $option_id, $default = '' ) {
    
        /* get the saved options */
        $options = get_option( 'option_tree' );
    
        /* look for the saved value */
        if ( isset( $options[$option_id] ) && '' != $options[$option_id] ) {
    
          return ot_wpml_filter( $options, $option_id );
    
        }
    
        return $default;
    
      }
    
    }
    
    /**
     * Filter the return values through WPML
     *
     * @param     array     $options The current options
     * @param     string    $option_id The option ID
     * @return    mixed
     *
     * @access    public
     * @since     2.1
     */
    if ( ! function_exists( 'ot_wpml_filter' ) ) {
    
      function ot_wpml_filter( $options, $option_id ) {
    
        // Return translated strings using WMPL
        if ( function_exists('icl_t') ) {
    
          $settings = get_option( 'option_tree_settings' );
    
          if ( isset( $settings['settings'] ) ) {
    
            foreach( $settings['settings'] as $setting ) {
    
              // List Item & Slider
              if ( $option_id == $setting['id'] && in_array( $setting['type'], array( 'list-item', 'slider' ) ) ) {
    
                foreach( $options[$option_id] as $key => $value ) {
    
                  foreach( $value as $ckey => $cvalue ) {
    
                    $id = $option_id . '_' . $ckey . '_' . $key;
                    $_string = icl_t( 'Theme Options', $id, $cvalue );
    
                    if ( ! empty( $_string ) ) {
    
                      $options[$option_id][$key][$ckey] = $_string;
    
                    }
    
                  }
    
                }
    
              // All other acceptable option types
              } else if ( $option_id == $setting['id'] && in_array( $setting['type'], apply_filters( 'ot_wpml_option_types', array( 'text', 'textarea', 'textarea-simple' ) ) ) ) {
    
                $_string = icl_t( 'Theme Options', $option_id, $options[$option_id] );
    
                if ( ! empty( $_string ) ) {
    
                  $options[$option_id] = $_string;
    
                }
    
              }
    
            }
    
          }
    
        }
    
        return $options[$option_id];
    
      }
    
    }
    
    /**
     * Enqueue the dynamic CSS.
     *
     * @return    void
     *
     * @access    public
     * @since     2.0
     */
    if ( ! function_exists( 'ot_load_dynamic_css' ) ) {
    
      function ot_load_dynamic_css() {
    
        /* don't load in the admin */
        if ( is_admin() )
          return;
    
        /* grab a copy of the paths */
        $ot_css_file_paths = get_option( 'ot_css_file_paths', array() );
    
        if ( ! empty( $ot_css_file_paths ) ) {
    
          $last_css = '';
    
          /* loop through paths */
          foreach( $ot_css_file_paths as $key => $path ) {
    
            if ( '' != $path && file_exists( $path ) ) {
    
              $parts = explode( '/wp-content', $path );
    
              if ( isset( $parts[1] ) ) {
    
                $css = home_url( '/wp-content' . $parts[1] );
    
                if ( $last_css !== $css ) {
    
                  /* enqueue filtered file */
                  wp_enqueue_style( 'ot-dynamic-' . $key, $css, false, OT_VERSION );
    
                  $last_css = $css;
    
                }
    
              }
    
            }
    
          }
    
        }
    
      }
    
    }
    
    /**
     * Registers the Theme Option page link for the admin bar.
     *
     * @uses      ot_register_settings()
     *
     * @return    void
     *
     * @access    public
     * @since     2.1
     */
    if ( ! function_exists( 'ot_register_theme_options_admin_bar_menu' ) ) {
    
      function ot_register_theme_options_admin_bar_menu( $wp_admin_bar ) {
    
        if ( ! current_user_can( apply_filters( 'ot_theme_options_capability', 'edit_theme_options' ) ) || ! is_admin_bar_showing() )
          return;
    
        $wp_admin_bar->add_node( array(
          'parent'  => 'appearance',
          'id'      => apply_filters( 'ot_theme_options_menu_slug', 'ot-theme-options' ),
          'title'   => apply_filters( 'ot_theme_options_page_title', __( 'Theme Options', 'option-tree' ) ),
          'href'    => admin_url( apply_filters( 'ot_theme_options_parent_slug', 'themes.php' ) . '?page=' . apply_filters( 'ot_theme_options_menu_slug', 'ot-theme-options' ) )
        ) );
    
      }
    
    }
    
    /* End of file ot-functions.php */
    /* Location: ./includes/ot-functions.php */

    can you told me what i can do please? i must paste in header.php which strings? ??

Viewing 15 replies - 1 through 15 (of 15 total)