예제 #1
0
	function map_themes_category_map_bank()
	{
		$sql= "CREATE TABLE IF NOT EXISTS ". map_bank_marker_themes_table(). " (
			`id` INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
			`themes_key` varchar(100) NOT NULL,
			`themes_value` varchar(100) NOT NULL,
			PRIMARY KEY (`id`)
		 ) DEFAULT CHARSET=utf8 COLLATE utf8_general_ci";
		dbDelta($sql);
	}
예제 #2
0
		return;
	}
	else
	{ 
		$create_map = wp_create_nonce("map_create");
		$themes_change = wp_create_nonce("map_themes");
		if(isset($_REQUEST["map_id"]))
		{
			if(file_exists(MAP_BK_PLUGIN_DIR ."/lib/get-map-settings.php"))
			{
				include_once MAP_BK_PLUGIN_DIR ."/lib/get-map-settings.php";
			}
		}
		$get_themes = $wpdb->get_results
		(
			"SELECT * FROM ". map_bank_marker_themes_table()." ORDER BY themes_value ASC"
		);
		$map_count = $wpdb->get_var
		(
			$wpdb->prepare
			(
				"SELECT count(id) FROM ".map_bank_create_new_map_table()." where map_type=%s",
				"map"
			)
		);
		?>
		<form id="frm_create_new_map" class="layout-form" style="max-width:1000px;">
			<div class="fluid-layout">
				<div class="layout-span12 responsive">
				<?php 
					if(file_exists(MAP_BK_PLUGIN_DIR ."/includes/headers.php"))
예제 #3
0
파일: dashboard.php 프로젝트: Acens/Ejudi
												<th style="width: 16%;"><?php 
        _e("Style", map_bank);
        ?>
</th>
												<th style="width: 18%;"><?php 
        _e("Creation Date", map_bank);
        ?>
</th>
											</tr>
										</thead>
										<tbody>
											<?php 
        $flag = 0;
        foreach ($map_details as $map) {
            $alternate = $flag % 2 == 0 ? "alternate" : "";
            $theme_used = $wpdb->get_var($wpdb->prepare("SELECT themes_value FROM " . map_bank_marker_themes_table() . " WHERE themes_key = %s", $map["map_themes"]));
            ?>
												<tr class="<?php 
            echo $alternate;
            ?>
">
													<td>
														<input type="checkbox" value="<?php 
            echo $map["id"];
            ?>
" id="ux_chk_manage_map" name="ux_chk_manage_map"/>
													</td>
													<td>
														<?php 
            echo stripcslashes(htmlspecialchars_decode($map["map_title"]));
            ?>
예제 #4
0
파일: create-map.php 프로젝트: Acens/Ejudi
            break;
        case "author":
            $user_role_permission = "publish_posts";
            break;
    }
    if (!current_user_can($user_role_permission)) {
        return;
    } else {
        $create_map = wp_create_nonce("map_create");
        $themes_change = wp_create_nonce("map_themes");
        if (isset($_REQUEST["map_id"])) {
            if (file_exists(MAP_BK_PLUGIN_DIR . "/lib/get-map-settings.php")) {
                include_once MAP_BK_PLUGIN_DIR . "/lib/get-map-settings.php";
            }
        }
        $get_themes = $wpdb->get_results("SELECT * FROM " . map_bank_marker_themes_table() . " ORDER BY themes_value ASC");
        $map_count = $wpdb->get_var($wpdb->prepare("SELECT count(id) FROM " . map_bank_create_new_map_table() . " where map_type=%s", "map"));
        ?>
		<form id="frm_create_new_map" class="layout-form" style="max-width:1000px;">
			<div class="fluid-layout">
				<div class="layout-span12 responsive">
				<?php 
        if (file_exists(MAP_BK_PLUGIN_DIR . "/includes/headers.php")) {
            include_once MAP_BK_PLUGIN_DIR . "/includes/headers.php";
        }
        ?>
					<div class="widget-layout">
						<div class="widget-layout-title">
							<h4><?php 
        _e("Step 1 - Add New Map", map_bank);
        ?>