Beispiel #1
0
$grid_c->output_grid_pre();
//output elements
echo $skins_html;
$grid_c->output_grid_post();
echo '<div style="text-align: center;">';
$navigation_c->output_pagination();
echo '</div>';
$grid_c->output_wrapper_post();
?>
		</div>
	</div>
	
	<?php 
$grid_c->output_grid_javascript(false, true);
echo $skins_css;
Essential_Grid_Global_Css::output_global_css_styles_wrapped();
if (empty($skins)) {
    _e('No Item Skins found!', EG_TEXTDOMAIN);
}
?>
</div>
<a class='button-primary revblue' style="margin-top:15px !important;" href='<?php 
echo $this->getViewUrl(Essential_Grid_Admin::VIEW_ITEM_SKIN_EDITOR, 'create=true');
?>
'><?php 
_e('Create New Item Skin', EG_TEXTDOMAIN);
?>
</a>

<script type="text/javascript">
	jQuery(function(){
 /**
  * Output Essential Grid in Page with Custom Layer and Settings
  * @since: 1.2.0
  */
 public function output_essential_grid_custom($grid_preview = false)
 {
     try {
         Essential_Grid_Global_Css::output_global_css_styles_wrapped();
         if ($this->custom_settings !== null) {
             //custom settings got added. Overwrite Grid Settings and element settings
             $this->apply_custom_settings(true);
         }
         if ($this->custom_layers !== null) {
             //custom settings got added. Overwrite Grid Settings and element settings
             $this->apply_custom_layers(true);
         }
         $this->apply_all_media_types();
         return $this->output_by_custom($grid_preview);
     } catch (Exception $e) {
         $message = $e->getMessage();
         echo $message;
     }
 }