Ejemplo n.º 1
0
 /**
  * Refreshes module data
  *
  * @access public
  * @return void
  */
 public static function refresh()
 {
     if (isset($_GET['shortcode'])) {
         foreach (MthemeCore::$components['shortcodes'] as $shortcode) {
             if ($shortcode['id'] == $_GET['shortcode']) {
                 self::$data = $shortcode;
             }
         }
     }
 }
Ejemplo n.º 2
0
<?php

$file_path = explode('wp-content', __FILE__);
$wp_path = $file_path[0];
require_once $wp_path . '/wp-load.php';
?>
<html>
<head>
	<style type="text/css">#TB_window {width:530px!important;}</style>
</head>
<body>
	<div class="mtheme-shortcode">
		<form method="POST" action="" id="mtheme_shortcode">
			<?php 
echo MthemeShortcode::renderSettings();
?>
			
		</form>
	</div>
</body>
</html>