Exemple #1
0
function wordtour_settings_flickr_panel($collapsed = 0)
{
    wt_dynamic_panel_start(array("title" => "Flickr - <a style=\"font-size:12px;font-weight:normal;color:#21759B;text-decoration:none;\" href=\"http://www.flickr.com/services/apps/create/apply/\" target=\"_blank\">Register</a>", "id" => "wordtour-panel-flickr"), "flickr", $collapsed);
    global $_wt_options;
    $options = $_wt_options->options();
    ?>
		<div class="wordtour-field wordtour-field-block">
			<div class="label">Key</div>
			<div>
				<input type="text" name="wordtour_settings[flickr_key]" size="80" value="<?php 
    echo $options["flickr_key"];
    ?>
"></input>	
			</div>	
		</div>
		<div class="wordtour-field wordtour-field-block">
			<div class="label">Secret</div>
			<div>
				<input type="text" name="wordtour_settings[flickr_secret]" size="80" value="<?php 
    echo $options["flickr_secret"];
    ?>
"></input>	
			</div>	
		</div>
		<div class="wordtour-field wordtour-field-block">
			<div class="label">Machinetag Prefix</div>
			<div>
				<input type="text" name="wordtour_settings[flickr_namespace]" size="80" value="<?php 
    echo $options["flickr_namespace"];
    ?>
"></input>
				<p class="help">
				Please Read Licensed Uses and Restrictions before using Flickr on your website <a href="http://www.flickr.com/services/api/tos/">Click Here</a>
				</p>	
			</div>	
		</div>
<?php 
    wt_dynamic_panel_end();
}
Exemple #2
0
			<?php 
    $social = new WT_Social();
    $social_status_history = $social->query("social_parent_id={$event_id}&social_parent_type=event&social_type=twitter&order=social_publish_time&limit=5", WORDTOUR_SOCIAL);
    if ($social_status_history) {
        foreach ($social_status_history as $h) {
            $h = $social->db_out($h);
            echo "<div style='border-bottom: 1px solid #EEEEEE;padding:5px;'>Status was updated on " . $h["social_publish_time"] . "</div>";
        }
    } else {
        echo "No History";
    }
    ?>
			
		</div>
	<?php 
    wt_dynamic_panel_end();
    ?>
	
</form>
<?php 
}
if ($_GET["page"] == "all_countries") {
    $countries = get_countries();
    ?>
	<div class="wordtour-selectable">
		
		<?php 
    foreach ($countries as $code => $name) {
        echo "<a class='ui-selectee' href='{$name}'><strong>{$name}</strong></a>";
    }
    ?>