/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Video Tutorials'); $this->yt_playlist = $this->©options->get('menu_pages.panels.videos.yt_playlist'); $this->content_body = '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">More Great Video Tutorials <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/videos/')), esc_html($this->instance->plugin_name)) . '</p>'; }
public static function combine($type, $files, $compress = false) { $root = panel::instance()->roots()->assets() . DS . $type; $cache = new Media($root . DS . 'panel.' . $type); $media = new Collection(array_map(function ($file) use($root) { return new Media($root . DS . str_replace('/', DS, $file)); }, $files)); // get the max modification date $modified = max($media->pluck('modified')); if (is_writable($root) and (!$cache->exists() or $cache->modified() < $modified)) { $cache->remove(); $content = ''; foreach ($media as $asset) { $content .= $asset->read() . PHP_EOL; } if ($compress) { $content = static::compress($content); } f::write($root . DS . 'panel.' . $type, $content); } if ($cache->exists()) { return $type(panel()->urls()->{$type}() . '/panel.' . $type . '?v=' . panel()->version()); } return $type(array_map(function ($item) use($type) { return 'panel/assets/' . $type . '/' . $item; }, $files)); }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Donations Welcome'); $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<form' . ' method="post"' . ' target="_blank"' . ' action="https://www.paypal.com/cgi-bin/webscr"' . '>' . $form_fields->markup($form_fields->¤value('_s-xclick'), array('type' => 'hidden', 'name' => 'cmd')) . $form_fields->markup($form_fields->¤value('WLGJ8L3ZJTFQQ'), array('type' => 'hidden', 'name' => 'hosted_button_id')) . $form_fields->markup($form_fields->¤value('Your site URL'), array('type' => 'hidden', 'name' => 'on1')) . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-location-arrow fa-fw"></i></span>' . $form_fields->markup($form_fields->¤value($this->©urls->to_wp_home_uri()), array('type' => 'text', 'name' => 'os1')) . '</div>' . '</div>' . $form_fields->markup($form_fields->¤value('EUR'), array('type' => 'hidden', 'name' => 'currency_code')) . '<div class="form-group">' . '<div class="input-group select-input-group">' . '<span class="input-group-addon"><i class="fa fa-heart fa-fw"></i></span>' . $form_fields->markup($form_fields->¤value(5), array('required' => true, 'type' => 'select', 'name' => 'os0', 'options' => array(array('label' => $this->__('€2.00 EUR'), 'value' => '2'), array('label' => $this->__('€5.00 EUR'), 'value' => '5'), array('label' => $this->__('€8.00 EUR'), 'value' => '8'), array('label' => $this->__('€10.00 EUR'), 'value' => '10'), array('label' => $this->__('€15.00 EUR'), 'value' => '15'), array('label' => $this->__('€20.00 EUR'), 'value' => '20'), array('label' => $this->__('€30.00 EUR'), 'value' => '30'), array('label' => $this->__('€40.00 EUR'), 'value' => '40'), array('label' => $this->__('€60.00 EUR'), 'value' => '60'), array('label' => $this->__('€100.00 EUR'), 'value' => '100')))) . '</div>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-gift"></i> ' . $this->__('Donate') . ' <i class="fa fa-external-link"></i>', array('type' => 'submit', 'name' => 'submit')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $call = '©plugin.®update'; $form_fields = $this->©form_fields(array('for_call' => $call)); $this->heading_title = sprintf($this->__('%1$s Updater'), $this->instance->plugin_name); $this->content_body = '<p>' . '<img class="pull-right l-margin" src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/icon-128x128.png')) . '" alt="" />' . sprintf($this->__('This will automatically update your copy of the %1$s Framework to the latest available version. This update routine is powered by WordPress®. Depending on your configuration of WordPress® you might be asked for FTP credentials before the update will begin. The %1$s Framework (which is free) can also be updated from the plugins menu in WordPress®.'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="alert alert-warning">' . sprintf($this->__('<i class="fa fa-support"></i> Please be sure to <strong>BACKUP</strong> your entire file structure <strong>and ALSO</strong> your MySQL database before updating any WordPress® component. Just to be safe <i class="fa fa-smile-o"></i>'), esc_html($this->instance->plugin_name)) . '</div>' . '<form method="post" action="' . esc_attr($this->©menu_page->url($this->menu_page->slug, $this->slug)) . '">' . $this->©action->hidden_inputs_for_call($call, $this::private_type) . $this->©action->get_call_responses_for($call) . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-magic"></i> ' . sprintf($this->__('Update %1$s Framework'), $this->instance->plugin_name), array('type' => 'submit', 'name' => 'update')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Updates Via Email') . '<em>!</em>'; $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<form' . ' method="post"' . ' target="_blank"' . ' action="' . esc_attr($this->©options->get('menu_pages.panels.email_updates.action_url')) . '"' . '>' . '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/email-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('Get all the latest news & knowledge base articles from %1$s'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->first_name), array('required' => TRUE, 'type' => 'text', 'name' => 'FNAME', 'placeholder' => $this->__('first name...'))) . '</div>' . '</div>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-level-up fa-rotate-90 fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->last_name), array('required' => TRUE, 'type' => 'text', 'name' => 'LNAME', 'placeholder' => $this->__('last name...'))) . '</div>' . '</div>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-envelope fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->email), array('required' => TRUE, 'type' => 'email', 'name' => 'EMAIL', 'placeholder' => $this->__('email address...'))) . '</div>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup($this->__('Subscribe') . ' <i class="fa fa-external-link"></i>', array('type' => 'submit', 'name' => 'subscribe')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Quick Start Video'); $yt_playlist = $this->©options->get('menu_pages.panels.videos.yt_playlist'); if ($yt_playlist) { $this->content_body = $this->©video->yt_playlist_iframe_tag($yt_playlist); } }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->heading_title . ' ' . ($this->©edd_updater->getLicenseStatus() ? '<i class="fa fa-circle" style="color: #008000;"></i>' : '<i class="fa fa-circle" style="color: red;"></i>'); /** * Add the content */ $this->content_body = $this->©views->view($this, 'edd_license_panel.php'); }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $call = '©plugin.®update_sync_pro'; $form_fields = $this->©form_fields(array('for_call' => $call)); $data = $this->©action->get_call_data_for($call); $username = $this->©string->is_not_empty_or($data->username, ''); $password = $this->©string->is_not_empty_or($data->password, ''); $credentials = $this->©plugin->get_site_credentials($username, $password); $this->heading_title = sprintf($this->__('%1$s Pro Add-on (Update/Sync)'), $this->instance->plugin_name); $this->content_body = '<p>' . '<img class="pull-right l-margin" src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/icon-128x128-pro.png')) . '" alt="" />' . sprintf($this->__('This will update (synchronize) your copy of the %1$s Pro add-on; so that it matches your currently installed version of the %1$s Framework.'), esc_html($this->instance->plugin_name)) . '</p>' . '<p>' . sprintf($this->__('While this update routine is powered (in part) by WordPress®, it connects to <em>our</em> remote update server for authentication; and to provide the necessary files.'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="alert alert-warning">' . sprintf($this->__('<i class="fa fa-support"></i> Please be sure to <strong>BACKUP</strong> your entire file structure <strong>and ALSO</strong> your MySQL database before updating any WordPress® component. Just to be safe <i class="fa fa-smile-o"></i>'), esc_html($this->instance->plugin_name)) . '</div>' . '<form method="post" action="' . esc_attr($this->©menu_page->url($this->menu_page->slug, $this->slug)) . '">' . $this->©action->hidden_inputs_for_call($call, $this::private_type) . $this->©action->get_call_responses_for($call) . '<div class="form-group">' . '<label>' . $this->__('Customer Username *') . '</label>' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>' . $form_fields->markup($form_fields->value($credentials['username']), array('required' => TRUE, 'type' => 'text', 'name' => $this->©action->input_name_for_call_arg(1), 'placeholder' => $this->__('customer username...'))) . '</div>' . '<p class="help-block">' . $this->__('i.e. the username you purchased the Pro add-on with.') . '</p>' . '</div>' . '<div class="form-group">' . '<label>' . $this->__('Customer Password; or Software License Key *') . '</label>' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>' . $form_fields->markup($form_fields->value($credentials['password']), array('required' => TRUE, 'type' => 'password', 'name' => $this->©action->input_name_for_call_arg(2), 'placeholder' => $this->__('customer password; or software license key...'))) . '</div>' . '<p class="help-block"><i class="fa fa-lightbulb-o"></i> ' . $this->__('for best security, please use your software license key here.') . '</p>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-magic"></i> ' . sprintf($this->__('Update %1$s Pro Add-on'), $this->instance->plugin_name), array('type' => 'submit', 'name' => 'update')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Recent News / KB Articles'); $this->content_body = '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/kb-article-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('The most recent news & knowledge base articles from %1$s'), esc_html($this->instance->plugin_name)) . '</p>'; $this->content_body .= '<hr />'; if ($feed_url = $this->©options->get('menu_pages.panels.news_kb.feed_url')) { foreach ($this->©feed->items($feed_url) as $_item) { $this->content_body .= '<div class="em-b-margin clearfix">' . '<p class="text-ellipsis no-b-margin">' . '<a href="' . esc_attr($_item['link']) . '" title="' . esc_attr($_item['title']) . '" target="_blank">' . '<i class="fa fa-external-link"></i> ' . $this->©string->excerpt($_item['title'], 35) . '</a>' . '</p>' . '<p class="opacity-fade font-80 no-b-margin">' . $this->©string->excerpt($_item['excerpt'], 185) . '</p>' . '<p class="font-80 pull-left">' . '<i class="fa fa-user"></i> <em>' . esc_html($_item['author']) . '</em>' . '</p>' . '<p class="font-80 pull-right">' . '<em>' . esc_html($this->©date->i18n('M jS, Y', $_item['time'])) . '</em> <i class="fa fa-calendar"></i>' . '</p>' . '</div>'; } } unset($_item); // Housekeeping. $this->content_body .= '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">%2$s Knowledge Base <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/kb-articles/')), esc_html($this->instance->plugin_name)) . '</p>'; }
protected function execute(InputInterface $input, OutputInterface $output) { if (!$this->isInstalled()) { throw new RuntimeException('Invalid Kirby installation'); } // bootstrap the core $this->bootstrap(); $output->writeln("<info>Core:\t\t" . kirby::version() . "</info>"); $output->writeln("<info>Toolkit:\t" . toolkit::version() . "</info>"); // also check for the panel version, if it is installed if (is_dir($this->dir() . '/panel')) { if (!is_file($this->dir() . '/panel/app/bootstrap.php')) { throw new RuntimeException('The panel does not seem to be correctly installed'); } // bootstrap the panel require $this->dir() . '/panel/app/bootstrap.php'; $output->writeln("<info>Panel:\t\t" . panel::version() . "</info>"); } }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Community Forum'); $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/discussion-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('The latest community forum topics related to %1$s'), esc_html($this->instance->plugin_name)) . '</p>'; $this->content_body .= '<hr />'; $this->content_body .= '<div class="feed">'; if ($feed_url = $this->©options->get('menu_pages.panels.community_forum.feed_url')) { foreach ($this->©feed->items($feed_url) as $_item) { $this->content_body .= '<div class="em-b-margin clearfix">' . '<p class="text-ellipsis no-b-margin">' . '<a href="' . esc_attr($_item['link']) . '" title="' . esc_attr($_item['title']) . '" target="_blank">' . '<i class="fa fa-external-link"></i> ' . $this->©string->excerpt($_item['title'], 35) . '</a>' . '</p>' . '<p class="opacity-fade font-80 no-b-margin">' . $this->©string->excerpt($_item['excerpt'], 185) . '</p>' . '<p class="font-80 pull-left">' . '<i class="fa fa-user"></i> <em>' . esc_html($_item['author']) . '</em>' . '</p>' . '<p class="font-80 pull-right">' . '<em>' . esc_html($this->©date->i18n('M jS, Y', $_item['time'])) . '</em> <i class="fa fa-calendar"></i>' . '</p>' . '</div>'; } } unset($_item); // Housekeeping. $this->content_body .= '</div>'; $this->content_body .= '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">All Community Forum Topics <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/community/')), esc_html($this->instance->plugin_name)) . '</p>'; }
function getGrid($name, $data, $pars) { switch ($pars['mode']) { case "dynamic": if (isset($pars['name'])) { $widgetName = $pars['name']; } else { $widgetName = $name; } $n_gruppi = $pars['n_groups']; $n_servizi = $pars['n_services']; $n_servizi_tab = 5; $n_tab = ceil($n_servizi / $n_servizi_tab); $content .= "<script>\n"; $content .= panel::getFieldArray($data); $content .= "</script>\n"; $content .= "<table height=0 cellspacing=0 cellpadding=0 style=\"height: 0px; padding: 2px; border: 1px solid silver;\" id=\"panel\">\n"; for ($j = 0; $j < $n_tab; $j++) { $i_inizio = $j * $n_servizi_tab; $i_fine = ($j + 1) * $n_servizi_tab - 1; if ($i_fine > $n_servizi - 1) { $i_fine = $n_servizi - 1; } /* 1� riga: Elenco Servizi */ $content .= "<tr>\n"; // $content .= "<td id=\"arrow_{$j}\" width=\"100px;\"><a href=# onClick=\"panelToggle({$j});\"><img border=0 src=\"img/down.jpg\"></a></td>"; for ($i = $i_inizio; $i <= $i_fine; $i++) { $content .= "<td style=\"text-align:center; background-color: #F7FFBB; padding:3px; font-size: 11px; width: 120px; cursor: pointer;\" onClick=\"panelToggle({$j});\">"; $content .= $data[$i]['service_name']; $content .= "</td>\n"; } if ($j < $n_tab - 1) { $content .= "</tr>\n"; } else { $n_empty_items = ($j + 1) * $n_servizi_tab - $i_fine - 1; for ($i = 0; $i < $n_empty_items; $i++) { $content .= "<td style=\"text-align:center; background-color: #F7FFBB; padding:3px; font-size: 11px; width: 120px;\"></td>\n"; } $content .= "</tr>\n"; } /* 2� riga: Data Filtering */ $span = $n_servizi_tab + 1; $content .= "\n\n\n<tr id=\"row_{$j}\"><td colspan=\"{$span}\">\n"; $content .= "<div id=\"panel_{$j}\" class=\"panel\">"; $content .= "<table width=\"100%\"cellspacing=0 cellpadding=0>\n"; $content .= "<tr>\n"; $content .= "<td style=\"text-align:center; background-color: #FFDDBB; padding: 3px; width: 80px; font-size: 11px;\">"; $content .= "Data Filtering</td>\n"; for ($i = $i_inizio; $i <= $i_fine; $i++) { $content .= "<td style=\"text-align:center; background-color: #FFDDBB; width: 120px; font-size: 11px;\">"; $content .= "<input type='checkbox' name='df_" . $data[$i]['service_id'] . "' value='*' onClick=\"checkDF(" . $data[$i]['service_id'] . ")\""; if ($data[$i]['data_filtering'] == '*') { $content .= " checked=\"true\""; } $content .= "/>"; $content .= "<br>\n"; $content .= panel::getTables("table_df_" . $data[$i]['service_id'], $data[tables], $data[$i]['service_id'], $data[$i]['table_entry'], $data[$i]['data_filtering']) . "<br>"; $content .= panel::getFields("key_df_" . $data[$i]['service_id'], $data[$i]['service_id'], $data[$i]['table_entry'], $data[$i]['key_entry'], $data[fields], $data[$i]['data_filtering']); $content .= "</td>\n"; } if ($j < $n_tab - 1) { $content .= "</tr>\n"; } else { $n_empty_items = ($j + 1) * $n_servizi_tab - $i_fine - 1; for ($i = 0; $i < $n_empty_items; $i++) { $content .= "<td style=\"text-align:center; background-color: #FFDDBB; width: 120px; font-size: 11px;\"></td>\n"; } $content .= "</tr>\n"; } /* 3� riga: Checkboxes */ $content .= "<tr>\n"; // 3� riga: Data Filtering Fields $content .= "<td style=\"background-color: #FFDDBB;\" colspan=1></td>"; $content .= "<td style=\"text-align:center; background-color: #FFDDBB; padding: 3px; width: 80px; font-size: 11px; height: 50px;\" colspan=\"{$span}\">"; $content .= "</td>"; $content .= "</tr>\n"; for ($k = 0; $k < $n_gruppi; $k++) { $content .= "<tr>\n"; $content .= "<td style=\"text-align:center; background-color: #EEEEEE; width: 100px; font-size: 11px;\">"; $content .= "<a href=\"edit-group.php?id=" . $data[$k * $n_servizi]['group_id'] . "\">" . $data[$k * $n_servizi]['group_name'] . "</a>"; $content .= "</td>\n"; for ($i = 0; $i < $n_servizi_tab; $i++) { //$index = $k*$n_servizi + $j*($n_servizi-$n_servizi_tab) + $i; //$index = $k*($n_servizi-$n_servizi_tab) + $j*($n_servizi-1) + $i; $index = $i + $k * $n_servizi + $j * $n_servizi_tab; if ($j == $n_tab - 1 and $i >= $n_servizi_tab - $n_empty_items) { $content .= "<td style=\"text-align:center; background-color: white; width: 70px;\"></td>\n"; } else { $checkid = $data[$index]["group_id"] . "|" . $data[$index]["service_id"]; $content .= "<td style=\"text-align:center; background-color: white; width: 70px;\">"; $content .= "<input type='checkbox' name='cb_{$checkid}' value='*'"; if ($data[$index]['checked']) { $content .= " checked"; } $content .= "/>"; $content .= "</td>\n"; } } $content .= "</tr>\n"; } $content .= "</table></div></td></tr>\n\n\n"; } $content .= "</table>\n"; return $content; break; default: return panel::getGridStatic($name, $data, $pars); break; } }
/** * Define core page style * * @since 1.0.0 * @access public */ public function set_assets() { $this->assets['style']['sections'] = $this->url . 'assets/css/sections' . UIX_ASSET_DEBUG . '.css'; parent::set_assets(); }
public function __construct($file, $data = array()) { parent::__construct($file, $data); $this->root = panel::instance()->roots()->snippets(); }
function panel() { return panel::instance(); }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Pro Upgrade') . '<em>!</em>'; $this->content_body = '<p class="text-center">' . sprintf($this->__('<a href="%1$s" target="_blank"><strong>%2$s Pro</strong></a> is a recommended upgrade. Enhance your site! <a href="%1$s" target="_blank">Click here <i class="fa fa-external-link"></i></a> to learn more about this <strong>amazing software</strong>.'), esc_attr($this->©url->to_plugin_site_uri('/pro/')), esc_html($this->instance->plugin_name)) . '</p>' . '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-primary width-100" href="%1$s" target="_blank">Upgrade Now <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/pro/')), esc_html($this->instance->plugin_name)) . '</p>'; }
/** * setup actions and hooks to add metaboxes and save metadata * * @since 1.0.0 * @access protected */ protected function actions() { // run parent to keep init and enqueuing assets parent::actions(); // set screen activation add_action('current_screen', array($this, 'set_active_status'), 25); // add metaboxes add_action('add_meta_boxes', array($this, 'add_metaboxes'), 25); // save metabox add_action('save_post', array($this, 'save_meta'), 10, 2); }
require_once $rootKirby . '/lib/kirby.php'; require_once $rootPanel . '/lib/load.php'; // set the root c::set('root', $root); c::set('root.kirby', $rootKirby); c::set('root.site', $rootSite); c::set('root.content', $rootContent); c::set('root.panel', $rootPanel); // panel version c::set('panel.version.string', '0.5'); c::set('panel.version.number', 0.5); c::set('panel.min.kirby.version', 1.08); c::set('panel.folder', $folder); paneload::lib(); paneload::config(); // set the admin url c::set('panel.url', c::get('url') . '/' . $folder); paneload::parsers(); // switch on errors if (c::get('debug')) { error_reporting(E_ALL); ini_set('display_errors', 1); } else { error_reporting(0); ini_set('display_errors', 0); } // set the timezone to make sure we // avoid errors in php 5.3 @date_default_timezone_set(c::get('timezone')); $site = new panel(); $site->load();
: <?php echo toolkit::version(); ?> <br /> <?php _l('metatags.version.kirby'); ?> : <?php echo kirby::version(); ?> <br /> <?php _l('metatags.version.panel'); ?> : <?php echo panel::version(); ?> </p> </div> <h2 class="hgroup hgroup-single-line hgroup-compressed cf"> <span class="hgroup-title"> <?php _l('metatags.license'); ?> </span> </h2> <div class="text"> <?php if ($license->type() == 'trial' and !$license->local()) { ?>
} } function ejecuta() { //echo $this->var1; //echo $this->var2; print <<<HERE <!DOCTYPE html> <html lang="es"> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"/> <title>PANEL - LubriCam.com</title> <SCRIPT LANGUAGE="JavaScript"> function pregunta() { if (confirm("ATENCION! Por favor, confirme para eliminar definitivamente la cuenta de usuario.")){ return true; } return false; } </SCRIPT> </head><body> HERE; echo $this->menu(); print <<<HERE </body></html> HERE; } } $pagina = new panel("hola", "<br />Que tal?", "", ""); $pagina->ejecuta();
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data['panel'] = panel::all(); return view('panel.list', $data); }
/** * Render the main structure based on save or not * * @since 1.0.0 * @access public * @return string HTML of rendered page */ public function render() { $output = null; $output .= '<' . esc_attr($this->element) . ' ' . $this->build_attributes() . '>'; $output .= $this->render_header(); $output .= parent::render(); $output .= wp_nonce_field($this->id(), 'uixNonce_' . $this->id(), true, false); $output .= '</' . esc_attr($this->element) . '>'; return $output; }
/** * Enqueues specific tabs assets for the active pages * * @since 1.0.0 * @access protected */ protected function enqueue_active_assets() { echo '<style>'; echo 'h3#' . $this->id() . '_uixModalLable { background: ' . $this->base_color() . '; }'; echo '#' . $this->id() . '_uixModal.uix-modal-wrap > .uix-modal-body:after {background: url(' . $this->url . 'assets/svg/loading.php?base_color=' . urlencode(str_replace('#', '', $this->base_color())) . ') no-repeat center center;}'; echo '</style>'; parent::enqueue_active_assets(); }
/** * uix object id * * @since 1.0.0 * @access public * @return string The object ID */ public function id() { return parent::id() . '-' . $this->instance; }
public function __construct($file, $data = array()) { $this->root = panel::instance()->roots()->views(); $this->file = $file; $this->data = $data; }
Define('SETTINGS_' . $settings[$i]['NAME'], $settings[$i]['VALUE']); // language selection by settings if (SETTINGS_SITE_LANGUAGE && file_exists(ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php')) include_once (ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php'); include_once (ROOT . 'languages/default.php'); if (defined('SETTINGS_SITE_TIMEZONE')) { ini_set('date.timezone', SETTINGS_SITE_TIMEZONE); } include_once(DIR_MODULES."control_modules/control_modules.class.php"); $ctl=new control_modules(); $app=new panel(); if ($md!=$app->name) { $app->restoreParams(); } else { $app->getParams(); } $result=$app->run(); // BEGIN: filter output if ($filterblock!='') { preg_match('/<!-- begin_data \['.$filterblock.'\] -->(.*?)<!-- end_data \['.$filterblock.'\] -->/is', $result, $match); $result=$match[1]; } // END: filter output