Subversion Repositories SmartDukaan

Rev

Rev 17188 | Rev 17598 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17188 Rev 17193
Line 16... Line 16...
16
          <?php if($key == 0):?>
16
          <?php if($key == 0):?>
17
          <h5 class="producttitle viewproduct" data-id="<?php echo $deal['_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
17
          <h5 class="producttitle viewproduct" data-id="<?php echo $deal['_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
18
            <?php echo $deal['source_product_name'];?>
18
            <?php echo $deal['source_product_name'];?>
19
          </h5>
19
          </h5>
20
          <div class="viewproduct <?php if(strlen(strip_tags($deal['tagline'],'<p>')) == strlen($deal['tagline'])):?>product_short_description<?php endif;?> <?php if(!isset($deal['tagline'])):?>hidden<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>"  data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">
20
          <div class="viewproduct <?php if(strlen(strip_tags($deal['tagline'],'<p>')) == strlen($deal['tagline'])):?>product_short_description<?php endif;?> <?php if(!isset($deal['tagline'])):?>hidden<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>"  data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">
21
            <?php# echo $deal['tagline'];?>
21
            <?php //echo $deal['tagline'];?>
22
            <?php 
22
            <?php 
23
                $str1=preg_replace('/<\/p>/i', '', $deal['tagline']);
23
                $str1=preg_replace('/<\/p>/i', '', $deal['tagline']);
24
                if($str1 != $deal['tagline'])
24
                if($str1 != $deal['tagline']) {
25
                {
-
 
26
                  $str=preg_replace('/<p[^>]*>/i', '', $str1);
25
                  $str=preg_replace('/<p[^>]*>/i', '', $str1);
27
                  echo $str;
26
                  echo $str;
28
                }
-
 
29
                else
27
                } else {
30
                {
-
 
31
                  echo $deal['tagline'];
28
                  echo $deal['tagline'];
32
                }
29
                }
33
            ?>
30
            ?>
34
          </div>
31
          </div>
35
          <?php endif;?>
32
          <?php endif;?>
Line 120... Line 117...
120
      <h4>The content you requested couldn't be found</h4>
117
      <h4>The content you requested couldn't be found</h4>
121
      <div class="text-center">
118
      <div class="text-center">
122
        <button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
119
        <button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
123
      </div>
120
      </div>
124
    <?php endif;?>
121
    <?php endif;?>
125
  <?php endif;?>
-
 
126
122
  <?php endif;?>
-
 
123