<div <?php 
UtilPolicat::style($css, array('font-size' => '20px', 'color' => '#fff', 'background-color' => $stylings['button_color'], 'margin' => '0 10px', 'height' => '40px', 'line-height' => '40px', 'font-weight' => 'bold', 'font-size' => '20px', 'text-transform' => 'uppercase', 'background-image' => 'linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3))', '-webkit-border-radius' => '3px', '-moz-border-radius' => '3px', 'border-radius' => '3px'));
?>
 onmouseover="this.style.backgroundImage = 'linear-gradient(to bottom, rgba(200, 200, 200, 0.2), rgba(100, 100, 100, 0.3))';" onmouseout="this.style.backgroundImage = 'linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3))';">
      <?php 
echo __('Take action');
?>
  </div>
  <p <?php 
UtilPolicat::style($css, array('font-size' => '11px', 'line-height' => '11px', 'color' => $stylings['body_color'], 'margin' => '10px'));
?>
>
    <?php 
echo $stylings['count'];
?>
  </p>
</div>
<?php 
$stylings['markup'] = ob_get_contents();
ob_end_clean();
$stylings = json_encode($stylings);
echo UtilWidget::getInitJS();
echo UtilWidget::getAddStyleJS($widget['id'], $stylings);
echo file_get_contents(sfConfig::get('sf_web_dir') . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'policat_widget_outer_opt.js');
?>
if (typeof(policat_later_<?php 
echo $widget['id'];
?>
) === 'undefined')
<?php 
echo UtilWidget::getWidgetHereJs($widget['id'], false);
Esempio n. 2
0
<div class="page-header"><h1><?php 
echo $title;
?>
</h1></div>
<?php 
if (isset($markup)) {
    $markup = $sf_data->getRaw('markup');
    echo $markup;
}
if (isset($widget_id)) {
    use_helper('I18N');
    $stylings = $stylings->getRawValue();
    $stylings['count'] = number_format($count, 0, '.', ',') . ' ' . __('people so far');
    $stylings['target'] = $target;
    ?>
  <script type="text/javascript">
    <?php 
    echo UtilWidget::getInitJS();
    ?>
    <?php 
    echo UtilWidget::getAddStyleJS($widget_id, $stylings);
    ?>
    <?php 
    echo UtilWidget::getWidgetHereJs($widget_id, false);
    ?>
  </script>
<?php 
}