PluginProbe ʕ •ᴥ•ʔ
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / trunk
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF vtrunk
2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
robin-image-optimizer / libs / factory / forms / controls / holders / more-link.php
robin-image-optimizer / libs / factory / forms / controls / holders Last commit date
accordion-item.php 5 months ago accordion.php 5 months ago columns.php 5 months ago control-group-item.php 5 months ago control-group.php 5 months ago div.php 5 months ago form-group.php 5 months ago index.php 6 months ago more-link.php 5 months ago tab-item.php 5 months ago tab.php 5 months ago
more-link.php
68 lines
1 <?php
2 /**
3 * The file contains the class of More Link Holder.
4 *
5 * @package factory-forms
6 * @since 1.0.0
7 */
8
9 // Exit if accessed directly
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 if ( ! class_exists( 'Wbcr_FactoryForms600_MoreLinkHolder' ) ) {
15
16 /**
17 * Collapsed Group Holder
18 *
19 * @since 1.0.0
20 */
21 class Wbcr_FactoryForms600_MoreLinkHolder extends Wbcr_FactoryForms600_Holder {
22
23 /**
24 * A holder type.
25 *
26 * @since 1.0.0
27 * @var string
28 */
29 public $type = 'more-link';
30
31 /**
32 * Here we should render a beginning html of the tab.
33 *
34 * @return void
35 * @since 1.0.0
36 */
37 public function beforeRendering() {
38 $count = isset( $this->options['count'] ) ? $this->options['count'] : 0;
39
40 $id = 'factory-more-link-' . $this->getName();
41
42 ?>
43 <div <?php $this->attrs(); ?>>
44 <div class="form-group">
45 <div class="control-label col-sm-4"></div>
46 <div class="control-group col-sm-8">
47 <a href="#<?php echo $id; ?>" class="factory-more-link-show btn btn-default"><?php $this->title(); ?>
48 (<?php echo $count; ?>)</a>
49 </div>
50 </div>
51 <div class='factory-more-link-content' id="<?php echo $id; ?>" style="display: none;">
52 <a href="#<?php echo $id; ?>" class='factory-more-link-hide'><?php _e( 'hide extra options', 'robin-image-optimizer' ); ?></a>
53 <?php
54 }
55
56 /**
57 * Here we should render an end html of the tab.
58 *
59 * @return void
60 * @since 1.0.0
61 */
62 public function afterRendering() {
63 ?>
64 </div></div>
65 <?php
66 }
67 }
68 }