// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
homedir
/
public_html
/
wp-content
/
plugins
/
wpapegallerylicence
[ PARENT ]
EDIT :: wpape-licence.php
<?php /* Plugin Name: WpApe Gallery Licence Plugin URI: http://wpape.net Description: Licence for WpApe gallery Version: 1.0 Author: WpApe Author URI: http://wpape.net License: GPL2 */ if ( ! defined( 'WPINC' ) ) die; define('WPAPE_GALLERY_KEY', 1); define('WPAPE_GALLERY_KEY_VERSION', '1.3'); if (!class_exists('apeGalleryParent')) { class apeGalleryParent{ public $premium = 1 ; public function getOrderBy(){ $this->orderby = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'orderby', true ); } public function getSource(){ $this->thumbsource = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'source', true ); } public function getOverlayBg(){ $background = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'background', true ); return 'background:'.$background.';'; } public function setDescHover(){ $this->descHover = $this->getTemplateItem( get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'showDesc', true ), 'wpapeDesc', '@DESC@' ); } public function setupMenu(){ $this->menu = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'menu', true ); } public function getMenuButton($optionName){ $class = ''; switch ( get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.$optionName.'Fill', true ) ) { case 'flat': $class .= 'apebtn-flat '; break; case '3d': $class .= 'apebtn-3d '; break; case 'border': $class .= 'apebtn-border '; break; case 'borderless': $class .= 'apebtn-borderless '; break; case 'plain': $class .= 'apebtn-plain '; break; case 'normal': default: $class .= ' '; break; } switch ( get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.$optionName.'Color', true ) ) { case 'blue': $class .= 'apebtn-primary '; break; case 'green': $class .= 'apebtn-action '; break; case 'orange': $class .= 'apebtn-highlight '; break; case 'red': $class .= 'apebtn-caution '; break; case 'purple': $class .= 'apebtn-royal '; break; case 'black': $class .= 'apebtn-black '; break; case 'dark': $class .= 'apebtn-dark '; break; case 'gray': default: $class .= ' '; break; } return $class; } public function setCCL(){ $this->selectImages->lazyLoad = 999; } public function getSwipe(){ $this->touch = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'lightboxSwipe', true ); if($this->touch){ $this->helper->setValue( 'touch', 1, 'raw' ); } } public function setLightboxBg(){ $lightboxBackground = get_post_meta( $this->id, WPAPE_GALLERY_NAMESPACE.'lightboxBackground', true ); if($lightboxBackground) $this->wpapeLightboxStyle .= 'background-color: '.$lightboxBackground.';'; $this->addJavaScriptStyle('wpapeLightbox','body .mfp-ready.mfp-bg',2); } } } if(!function_exists('wpape_premium_widget')){ function wpape_premium_widget($id){ if( !empty( $id ) ) echo do_shortcode('[ape-gallery id="'.$id.'"]'); } }
SAVE
CANCEL