This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package WordPress | |
* @subpackage Modularity | |
*/ | |
?> | |
<div class="span-<?php modularity_sidebar_class(); ?>"> | |
<?php get_sidebar(); ?> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (flickSwitch.isOn ) { | |
statusLabel.text = @"The Switch is ON"; | |
} else { | |
statusLabel.text = @"The Switch is OFF"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[caption id="attachment_123" align="aligncenter" width="550"] | |
<img src="...">My Caption[/caption] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[caption id="attachment_123" align="aligncenter" width="550" caption="My Caption"] | |
<img src="...">[/caption] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define $post_cat | |
$post_cat = $_POST['post_format']; | |
// and turn it into the category ID | |
$post_cat = get_category_by_slug( $post_cat ); | |
$post_id = wp_insert_post( array( | |
'post_author' => $user_id, | |
'post_title' => $post_title, | |
'post_content' => $post_content, | |
'post_type' => 'post', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Example configuration to enable HTTP access for a directory | |
# containing Subversion repositories, "/var/www/svn". Each repository | |
# must be both: | |
# | |
# a) readable and writable by the 'apache' user, and | |
# | |
# b) labelled with the 'httpd_sys_content_t' context if using | |
# SELinux | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *detailURL; | |
detailURL=[[NSURL alloc] initWithString:@"http://www.yourwebsite.com"]; | |
[self.myWebView loadRequest:[NSURLRequest requestWithURL:detailURL]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface WebViewController : UIViewController <UIWebViewDelegate> | |
@property (strong, nonatomic) IBOutlet UIWebView *myWebView; | |
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *spinningWheel; | |
- (IBAction)dismissModalView:(id)sender; | |
- (IBAction)stopSpinning:(id)sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<div id="menu"><ul><li><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home" rel="nofollow">Home</a></li>'; |
OlderNewer