Exemplo n.º 1
0
 public function configure()
 {
     sfContext::getInstance()->getConfiguration()->loadHelpers(array('YiidNumber'));
     $lI18n = sfContext::getInstance()->getI18N();
     // generate prices
     $likes = sfConfig::get("app_deal_pricing_like");
     $like_fields = array();
     foreach ($likes as $key => $value) {
         $like_fields[$key] = $lI18n->__(point_format($key) . " likes for {$value} €");
     }
     $mp = sfConfig::get("app_deal_pricing_media_penetration");
     $mp_fields = array();
     foreach ($mp as $key => $value) {
         $mp_fields[$key] = $lI18n->__(point_format($key) . " for {$value} €");
     }
     $this->setWidgets(array('name' => new sfWidgetFormInputText(), 'domain_profile_id' => new sfWidgetFormChoice(array('choices' => array(), 'expanded' => true)), 'type' => new sfWidgetFormChoice(array('choices' => array('pool' => $lI18n->__('Überall'), 'publisher' => $lI18n->__('Domain')), 'expanded' => true)), 'tos_accepted' => new sfWidgetFormInputCheckbox(), 'motivation_title' => new sfWidgetFormInputText(), 'motivation_text' => new sfWidgetFormTextarea(), 'spread_title' => new sfWidgetFormInputText(), 'spread_text' => new sfWidgetFormTextarea(), 'spread_url' => new sfWidgetFormInputText(), 'spread_img' => new sfWidgetFormInputText(), 'spread_tos' => new sfWidgetFormInputText(), 'coupon_type' => new sfWidgetFormChoice(array('choices' => array('code' => $lI18n->__('Code'), 'url' => $lI18n->__('Url'), 'download' => $lI18n->__('Download'), 'unique_code' => $lI18n->__('Unique')), 'expanded' => true)), 'coupon_title' => new sfWidgetFormInputText(), 'coupon_text' => new sfWidgetFormTextarea(), 'coupon_code' => new sfWidgetFormInputText(), 'coupon_url' => new sfWidgetFormInputText(), 'coupon_redeem_url' => new sfWidgetFormInputText(), 'coupon_webhook_url' => new sfWidgetFormInputText(), 'billing_type' => new sfWidgetFormInputHidden(), 'target_quantity' => new sfWidgetFormChoice(array('choices' => $like_fields, 'expanded' => true)), 'target_quantity_mp' => new sfWidgetFormChoice(array('choices' => $mp_fields, 'expanded' => true)), 'sf_guard_user_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('sfGuardUser'), 'add_empty' => true)), 'payment_method_id' => new sfWidgetFormInputHidden(), 'created_at' => new sfWidgetFormDateTime()));
     $this->setDefaults(array('target_quantity' => '50'));
     $this->widgetSchema->setLabels(array('name' => $lI18n->__('Name'), 'type' => $lI18n->__('Art des Deals'), 'domain_profile_id' => $lI18n->__('Domain'), 'target_quantity' => $lI18n->__('Streuung nach Likes'), 'target_quantity_mp' => $lI18n->__('Streuung nach Reichweite'), 'motivation_title' => $lI18n->__('Motivator'), 'motivation_text' => $lI18n->__('Motivationstext'), 'spread_title' => $lI18n->__('Spread Werbung'), 'spread_url' => $lI18n->__('Spread URL'), 'spread_text' => $lI18n->__('Spread Teaser'), 'spread_img' => $lI18n->__('Spread Bild'), 'spread_tos' => $lI18n->__('Spread AGB'), 'coupon_title' => $lI18n->__('Name des Gutscheins'), 'coupon_text' => $lI18n->__('Gutscheintext'), 'coupon_type' => $lI18n->__('Gutscheinquelle'), 'coupon_code' => $lI18n->__('Gutschein Code'), 'coupon_redeem_url' => $lI18n->__('Gutschein einlösen'), 'coupon_webhook_url' => $lI18n->__('Webhook URL'), 'coupon_url' => $lI18n->__('Gutschein/Download URL'), 'tos_accepted' => $lI18n->__('Ich aktzeptiere <a href="http://www.spreadly.com/system/tos" target="_blank">die Allgemeinen Geschäftsbedingungen</a> von Spreadly.')));
 }
Exemplo n.º 2
0
          </div>
        </td>
        <td align="center"><div><strong class="big-font blue"><?php 
        echo point_format($url->getLikes());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getMediaPenetration());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getClickbacks());
        ?>
</strong></div></td>
        <td align="center" class="last"><div><strong class="big-font blue"><?php 
        echo point_format($url->getClickbackLikes());
        ?>
</strong></div></td>
      </tr>
    <?php 
    }
} else {
    ?>
      <tr><td align="center" colspan="6"><?php 
    echo __("No urls yet");
    ?>
</td></tr>
    <?php 
}
?>
    </tbody>
Exemplo n.º 3
0
	  					<div class="padleft">
	  						<?php 
        echo link_to(truncate_text($lUrl['_id'], 60), $lUrl['_id'], array('target' => '_blank'));
        ?>
	  					</div>
	  				</td>
	  		    <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($lUrlValue['l']);
        ?>
</strong></div></td>
	  		    <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($lUrlValue['sh']);
        ?>
</strong></div></td>
	  				<td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($lUrlValue['mp']);
        ?>
</strong></div></td>
	  			</tr>
	      <?php 
        $i++;
    }
    ?>
	      <?php 
} else {
    ?>
	  			<tr class="scrollrow">
	  				<td align="center" colspan="4"><?php 
    echo __('No websites claimed');
    ?>
</td>
Exemplo n.º 4
0
?>
</p>
</div>

<section class="publisher-list">
	<ul class="clearfix">
		<li>
			<span class="icon"><i class="icon-bar-chart"></i></span>
			<h3><?php 
echo __('Der Button');
?>
</h3>
			<p><?php 
echo __('Sie kommen gerade von der Seite %domain<br />
Im letzten Monat wurden Werbemittel hier %counter Mal angezeigt. 
Schon in wenigen Minuten können Sie hier werben.', array("%domain" => link_to($domain, $domain, array("class" => "alternative", "target" => "_blank")), "%counter" => "<span class='alternative'>" . point_format($counter) . "</span>"));
?>
</p>
			<span class="link"><a href="<?php 
echo $domain;
?>
" target="_blank"><?php 
echo __('%domain besuchen &raquo;', array("%domain" => $domain));
?>
</a></span>
		</li>
		<li>
			<span class="icon"><i class="icon-money"></i></span>
			<h3><?php 
echo __('Werbeformat');
?>
Exemplo n.º 5
0
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo __($url->getRelationship());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getShares());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getMediaPenetration());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo $url->getClickbacks() ? point_format($url->getClickbacks()) : 0;
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo $url->countClickbackLikes() ? $url->countClickbackLikes() : 0;
        ?>
</strong></div></td>
      </tr>
    <?php 
    }
} else {
    ?>
      <tr><td align="center" colspan="8"><?php 
    echo __("No likes yet");
    ?>
</td></tr>
Exemplo n.º 6
0
      <h2><i class="icon-share-alt"></i> <?php 
echo __("Clickbacks");
?>
</h2>
      <p class="score"><?php 
echo $host_summary ? point_format($host_summary->getClickbacks()) : 0;
?>
</p>
    </div>
    <div class="span4">
      <h2><i class="icon-group"></i> <?php 
echo __("Media Penetration");
?>
</h2>
      <p class="score"><?php 
echo $host_summary ? point_format($host_summary->getMediaPenetration()) : 0;
?>
</p>
    </div>
  </div>
</div>

<h2><?php 
echo __("Latest Shares");
?>
</h2>
<hr />
<?php 
foreach ($social_objects as $social_object) {
    ?>
  <?php 
          	</a>
          </p>
          <strong class="media"><?php 
echo truncate_number($pHost->getMediaPenetration());
?>
</strong></div>
      </div>
      <ul>
      <?php 
foreach ($pHost->getServices() as $key => $value) {
    ?>
        <li class="<?php 
    echo strtolower($key);
    ?>
"><span title="<?php 
    echo point_format($value['mp']);
    ?>
"></span></li>
      <?php 
}
?>
      </ul>
    </div>
  </div>

<?php 
end_slot();
include_partial('global/graybox');
?>

Exemplo n.º 8
0
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo __($url->getGender());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo __($url->getRelationship());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getShares());
        ?>
</strong></div></td>
        <td align="center" valign="middle"><div><strong class="big-font blue"><?php 
        echo point_format($url->getMediaPenetration());
        ?>
</strong></div></td>
      </tr>
    <?php 
    }
} else {
    ?>
      <tr><td align="center" colspan="8"><?php 
    echo __("No likes yet");
    ?>
</td></tr>
    <?php 
}
?>
    </tbody>