本文整理汇总了PHP中Essential_Grid_Base::getViewUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Essential_Grid_Base::getViewUrl方法的具体用法?PHP Essential_Grid_Base::getViewUrl怎么用?PHP Essential_Grid_Base::getViewUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Essential_Grid_Base
的用法示例。
在下文中一共展示了Essential_Grid_Base::getViewUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
//fallback if skin does not exist
?>
<div id="eg-tool-panel">
<div id="eg-global-css-dialog" class="revpurple eg-side-buttons">
<i></></i><?php
_e('CSS Editor', EG_TEXTDOMAIN);
?>
</div>
<div id="eg-global-change" class="revgreen eg-side-buttons">
<i class="rs-icon-save-light" style="display: inline-block;vertical-align: middle;width: 18px;height: 20px;background-repeat: no-repeat;margin-right:10px !important;margin-left:2px !important;"></i><?php
_e('Save Skin', EG_TEXTDOMAIN);
?>
</div>
<a href="<?php
echo $base->getViewUrl("", "", 'essential-' . Essential_Grid_Admin::VIEW_SUB_ITEM_SKIN_OVERVIEW);
?>
" id="eg-global-back-to-overview" class="revblue eg-side-buttons">
<i class="eg-icon-th"></i><?php
_e('Skin Overview', EG_TEXTDOMAIN);
?>
</a>
</div>
<div id="skin-editor-wrapper">
<?php
if ($skin_id !== false) {
?>
<input type="hidden" value="<?php
echo $skin_id;
示例2: add_tiny_mce_shortcode_dialog
/**
* Add tinymce shortcode dialog
* @since 1.2.0
*/
public static function add_tiny_mce_shortcode_dialog()
{
$base = new Essential_Grid_Base();
$grid_c = new Essential_Grid();
$skins_c = new Essential_Grid_Item_Skin();
$grids = Essential_Grid::get_grids_short_vc();
?>
<div id="ess-grid-tiny-mce-dialog" tabindex="-1" action="" class="essential-dialog-wrap" title="<?php
_e('Shortcode Generator', EG_TEXTDOMAIN);
?>
" style="display: none; ">
<script type="text/javascript">
var token = '<?php
echo wp_create_nonce("Essential_Grid_actions");
?>
';
</script>
<form id="ess-grid-tiny-mce-settings-form" action="">
<!-- STEP 1 -->
<div id="ess-grid-tiny-dialog-step-1">
<div class="ess-top_half">
<p class="ess-quicktitle"><?php
_e('Choose Predefined Grid:', EG_TEXTDOMAIN);
?>
</p>
<select name="ess-grid-existing-grid">
<option value="-1"><?php
_e('--- Choose Grid ---', EG_TEXTDOMAIN);
?>
</option>
<?php
if (!empty($grids)) {
foreach ($grids as $title => $alias) {
echo '<option value="' . $alias . '">' . $title . '</option>' . "\n";
}
}
?>
</select>
<div style="margin-top:20px">
<a href="javascript:void(0);" class="button-primary ess-revgreen" id="eg-add-predefined-grid"><?php
_e('Add Selected Grid', EG_TEXTDOMAIN);
?>
</a>
<a href="<?php
echo Essential_Grid_Base::getViewUrl(Essential_Grid_Admin::VIEW_GRID_CREATE, 'create=true');
?>
" target="_blank" class="button-primary ess-revgreen" id="eg-create-predefined-grid"><?php
_e('Create Full Grid', EG_TEXTDOMAIN);
?>
</a>
</div>
</div>
<div class="ess-bottom_half">
<p class="ess-quicktitle"><?php
_e('Create a Quick Grid:', EG_TEXTDOMAIN);
?>
</p>
<a href="javascript:void(0);" class="" id="eg-create-custom-grid">
<div class="ess-customgridwrap">
<div class="dashicons dashicons-format-gallery ess-customgridicon"></div>
<div class="ess-customonbutton"><?php
_e('Add Custom', EG_TEXTDOMAIN);
?>
</div>
</div>
</a>
<a href="javascript:void(0);" class="" id="eg-edit-custom-grid">
<div class="ess-customgridwrap">
<div class="dashicons dashicons-format-gallery ess-customgridicon"></div>
<div class="ess-customonbutton"><?php
_e('Edit Custom', EG_TEXTDOMAIN);
?>
</div>
</div>
</a>
<a href="javascript:void(0);" class="" id="eg-create-popularpost-grid">
<div class="ess-customgridwrap">
<div class="dashicons dashicons-groups ess-customgridicon"></div>
<div class="ess-customonbutton"><?php
_e('Popular Post', EG_TEXTDOMAIN);
?>
</div>
</div>
</a>
<a href="javascript:void(0);" class="" id="eg-create-recentpost-grid">
<div class="ess-customgridwrap">
<div class="dashicons dashicons-calendar ess-customgridicon"></div>
<div class="ess-customonbutton"><?php
_e('Recent Post', EG_TEXTDOMAIN);
?>
//.........这里部分代码省略.........
示例3: _e
?>
"]</td>
<td>
<div class="btn-wrap-overview-<?php
echo $grid->id;
?>
">
<a class="button-primary revgreen" href="<?php
echo Essential_Grid_Base::getViewUrl(Essential_Grid_Admin::VIEW_GRID_CREATE, 'create=' . $grid->id);
?>
"><i class="eg-icon-cog"></i><?php
_e("Settings", EG_TEXTDOMAIN);
?>
</a>
<a class="button-primary revblue" href="<?php
echo Essential_Grid_Base::getViewUrl(Essential_Grid_Admin::VIEW_ITEM_SKIN_EDITOR, 'create=' . $skin_id);
?>
" target="_blank"><i class="eg-icon-palette"></i><?php
_e("Edit Skin", EG_TEXTDOMAIN);
?>
</a>
<a class="button-primary revred eg-btn-delete-grid" id="eg-delete-<?php
echo $grid->id;
?>
" href="javascript:void(0)"><i class="eg-icon-trash"></i></a>
<a class="button-primary revyellow eg-btn-duplicate-grid" id="eg-duplicate-<?php
echo $grid->id;
?>
" href="javascript:void(0)"><i class="eg-icon-picture"></i></a>
</div>
</td>
开发者ID:kfwebdev,项目名称:wp-atd,代码行数:31,代码来源:grid-overview+(Patrick+Kunaths+in+Konflikt+stehende+Kopie+2015-05-04).php
示例4: output_item_skin
//.........这里部分代码省略.........
//we are on post
$cobbles = json_decode(get_post_meta($this->post['ID'], 'eg_cobbles', true), true);
if (isset($cobbles[$this->grid_id]['cobbles']) && strpos($cobbles[$this->grid_id]['cobbles'], ':') !== false) {
$use_cobbles = $cobbles[$this->grid_id]['cobbles'];
} else {
$use_cobbles = '1:1';
}
} else {
//get the info from $this->layer_values
$use_cobbles = $base->getVar($this->layer_values, 'cobbles-size', '1:1');
}
$use_cobbles = explode(':', $use_cobbles);
$cobbles_data = ' data-cobblesw="' . $use_cobbles[0] . '" data-cobblesh="' . $use_cobbles[1] . '"';
}
echo '<!-- PORTFOLIO ITEM ' . $this->id . ' -->' . "\n";
echo '<li class="filterall' . $filters . $li_class;
if ($demo == 'custom') {
echo ' eg-newli';
}
//neccesary for refresh of preview grid if new li will be added
echo '"' . $sortings . $meta_item_style . $cobbles_data . '>' . "\n";
if ($demo == 'overview' || $demo == 'skinchoose') {
//check if fav or not
$cl = $demo == 'skinchoose' ? 'esg-screenselect-toolbar eg-tooltip-wrap' : '';
//show only in grid editor at skin chooser
$cltitle = $demo == 'skinchoose' ? 'title="' . __('Select Skin', EG_TEXTDOMAIN) . '"' : '';
//Show Title only at Skin Chooser
echo '<div ' . $cltitle . ' class="' . $cl . '" style="display:block !important;width:100%;height:30px;top:0px;left:0px;position:relative;z-index:10;background-color: #3498DB; padding: 0;">' . "\n";
echo ' <div class="btn-wrap-item-skin-overview-' . $this->id . '">' . "\n";
echo '<div class="eg-item-skin-overview-name">' . $this->name . "</div>\n";
if ($demo == 'overview') {
$fav_class = !isset($this->settings['favorite']) || $this->settings['favorite'] == false ? 'eg-icon-star-empty' : 'eg-icon-star';
echo '<a href="javascript:void(0);" title="' . __('Mark as Favorit', EG_TEXTDOMAIN) . '" class="eg-ov-1 eg-overview-button eg-btn-star-item-skin revyellow eg-tooltip-wrap" id="eg-star-' . $this->id . '"><i class="' . $fav_class . '"></i></a>';
echo '<a href="' . Essential_Grid_Base::getViewUrl(Essential_Grid_Admin::VIEW_ITEM_SKIN_EDITOR, 'create=' . $this->id) . '" title="' . __('Edit Skin', EG_TEXTDOMAIN) . '" class="eg-tooltip-wrap eg-ov-2 eg-overview-button revgreen "><i class="eg-icon-cog"></i></a>';
echo '<a href="javascript:void(0);" title="' . __('Duplicate Skin', EG_TEXTDOMAIN) . '" class="eg-ov-3 eg-overview-button eg-btn-duplicate-item-skin revcarrot eg-tooltip-wrap " id="eg-duplicate-' . $this->id . '"><i class="eg-icon-picture"></i></a>';
echo '<a href="javascript:void(0);" title="' . __('Delete Skin', EG_TEXTDOMAIN) . '" class="eg-ov-4 eg-overview-button eg-btn-delete-item-skin revred eg-tooltip-wrap " id="eg-delete-' . $this->id . '"><i class="eg-icon-trash"></i></a>';
} elseif ($demo == 'skinchoose') {
echo '<div title="' . __('Select Skin', EG_TEXTDOMAIN) . '" class="eg-tooltip-wrap eg-fakeinput "></div>';
echo '<input class="eg-tooltip-wrap " style="position: absolute; right: 0; top: 0;" type="radio" value="' . $this->id . '" title="' . __('Choose Skin', EG_TEXTDOMAIN) . '" name="entry-skin"';
if ($choosen_skin == '-1') {
echo ' checked="checked"';
} else {
checked($choosen_skin, $this->id);
}
//echo checked if it is current ID
echo ' />';
}
echo ' </div>' . "\n";
echo ' <div class="clear"></div>' . "\n\n";
echo ' </div>' . "\n\n";
} elseif ($demo == 'preview') {
$is_visible = $grid->check_if_visible($this->post['ID'], $this->grid_id);
$vis_icon = $is_visible ? 'eg-icon-eye' : 'eg-icon-eye-off';
$vis_icon_color = $is_visible ? 'revblue' : 'revred';
echo '<div class="esg-atoolbar" style="display:block !important;width:100%;height:30px;top:0px;left:0px;position:absolute;z-index:10; padding: 0;">' . "\n";
echo ' <div class="btn-wrap-item-skin-overview-' . $this->post['ID'] . '">' . "\n";
echo '<div class="eg-item-skin-overview-name">';
echo '<a href="javascript:void(0);" class="eg-ov-2 eg-overview-button eg-btn-activate-post-item ' . $vis_icon_color . ' eg-tooltip-wrap" title="' . __('Show/Hide from Grid', EG_TEXTDOMAIN) . '" id="eg-act-post-item-' . $this->post['ID'] . '"><i class="' . $vis_icon . '"></i></a>';
echo '<a href="' . get_edit_post_link($this->post['ID']) . '" class="eg-ov-3 eg-overview-button revyellow eg-tooltip-wrap" title="' . __('Edit Post', EG_TEXTDOMAIN) . '" target="_blank"><i class="eg-icon-pencil-1"></i></a>';
echo '<a href="javascript:void(0);" class="eg-ov-4 eg-overview-button eg-btn-edit-post-item revgreen eg-tooltip-wrap" title="' . __('Edit Post Meta', EG_TEXTDOMAIN) . '" id="eg-edit-post-item-' . $this->post['ID'] . '"><i class="eg-icon-cog"></i></a>';
echo '</div>' . "\n";
echo ' </div>' . "\n";
echo ' <div class="clear"></div>' . "\n\n";
echo ' </div>' . "\n\n";
} elseif ($demo == 'custom') {
//add info of what items do exist in the layer that can be edited