Ejemplo n.º 1
0
        echo excerpt(10);
        ?>
</p>
							</li>
						<?php 
    }
}
wp_reset_query();
?>
	
						</ul>
						
						<div class="clear"></div>

						<?php 
$projects = get_page_with_template('page_blog');
$projecturl = get_permalink($projects);
?>

						<a href="<?php 
echo $projecturl;
?>
" style="width: 99%; display: block; padding: 20px 0; font-family: didot, serif; font-size: 20px;" class="button">View All Posts</a>

					</div>
	
				</div>
				
				<div class="clear"></div>
			</div>
Ejemplo n.º 2
0
				
				<div class="five columns">
					
					<div class="surfer"><span><?php echo get_option('cebo_aboutskillpercent3'); ?></span>%</div>
				
					<h2 class="surftitle"><?php echo get_option('cebo_aboutmeskilltit3'); ?></h2>
				
				</div>
				
				<? } ?>
				
				
				<div class="clear"></div>
				
				
				<?php $projects = get_page_with_template('page-portfolio');
				  $projecturl= get_permalink($projects);	
					?>
			        
			        <?php if($projects) { ?>
			        
			        <a href="<?php echo $projecturl; ?>" class="button"><?php _e('View My Portfolio', 'cebolang'); ?></a>
			        
			        <? } ?>
				
					<?php if(get_option('cebo_email')) { ?>
				
					<a href="#modal" class="second button"><?php _e('Contact Me', 'cebolang'); ?></a>
				
					<? } ?>
			
Ejemplo n.º 3
0
 function of_options()
 {
     //Theme Shortname
     $themename = "Apollo Options";
     $shortname = "cebo";
     $template = get_bloginfo('template_directory');
     if (plugin_basename($_GET['page']) == 'cebo') {
         $facebook = get_page_with_template('page-facebook');
         $facebook_url = get_permalink($facebook);
         if ($facebook) {
             $facebook_code = file_get_contents($facebook_url);
         } else {
             $facebook_code = file_get_contents($template . "/options/nothinghere.htm");
         }
         $mailchimp = get_page_with_template('page-mailchimp');
         $mailchimp_url = get_permalink($mailchimp);
         if ($mailchimp) {
             $mailchimp_code = file_get_contents($mailchimp_url);
         } else {
             $mailchimp_code = file_get_contents($template . "/options/nothinghere.htm");
         }
         $newsletter = get_page_with_template('page-newsletter');
         $newsletter_url = get_permalink($newsletter);
         if ($newsletter) {
             $newsletter_code = file_get_contents($newsletter_url);
         } else {
             $newsletter_code = file_get_contents($template . "/options/nothinghere.htm");
         }
     }
     $repeat = array("", "no-repeat", "repeat-x", "repeat-y", "repeat");
     $pos = array("", "top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right");
     $categories = get_categories('hide_empty=0&orderby=name');
     $transitions = array("Fade", "Slide Top", "Slide Right", "Slide Bottom", "Slide Left", "Carousel Right", "Carousel Left");
     //Populate the options array
     global $tt_options;
     $tt_options = get_option('of_options');
     //Access the WordPress Pages via an Array
     $tt_pages = array();
     $tt_pages_obj = get_pages('sort_column=post_parent,menu_order');
     foreach ($tt_pages_obj as $tt_page) {
         $tt_pages[$tt_page->ID] = $tt_page->post_name;
     }
     $tt_pages_tmp = array_unshift($tt_pages, "Select a page:");
     //Access the WordPress Categories via an Array
     $tt_categories = array();
     $tt_categories_obj = get_categories('hide_empty=0');
     foreach ($tt_categories_obj as $tt_cat) {
         $tt_categories[$tt_cat->cat_ID] = $tt_cat->cat_name;
     }
     $categories_tmp = array_unshift($tt_categories, "");
     //Sample Array for demo purposes
     $icons = array("thumbs up", "thumbs down", "link", "bars", "list", "mail", "camera", "picture", "film strip", "pencil", "phone", "check", "home", "computer screen", "mobile device", "television", "shopping cart", "single document", "multiple documents", "sales tag", "calendar", "support", "user", "graph", "settings", "cloud", "star");
     //Sample Advanced Array - The actual value differs from what the user sees
     $sample_advanced_array = array("image" => "The Image", "post" => "The Post");
     //Folder Paths for "type" => "images"
     $sampleurl = get_template_directory_uri() . '/options/images/sample-layouts/';
     /*-----------------------------------------------------------------------------------*/
     /* Create The Custom Site Options Panel
     /*-----------------------------------------------------------------------------------*/
     $options = array();
     // do not delete this line - sky will fall
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('General Personalization', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('Website Logo', 'cebolang'), "desc" => __('Upload and insert your sparkling new logo here. Good dimensions would be 320w x 120h. If blank, the theme logo will display, which can be used as well.', 'cebolang'), "id" => $shortname . "_logo", "std" => "", "type" => "upload");
     $options[] = array("name" => __('Custom Favicon', 'cebolang'), "desc" => __('Have a favorite favicon? Upload and insert your favorite 16px x 16px Png/Gif that will hang out next to the address bar.', 'cebolang'), "id" => $shortname . "_custom_favicon", "std" => "", "type" => "upload");
     $options[] = array("name" => __('Tracking Code', 'cebolang'), "desc" => __('If you would like to add your tracking code into the footer, please put it here.', 'cebolang'), "id" => $shortname . "_tracking_code", "std" => "", "type" => "textarea");
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('Styling Options', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('Change accent color', 'cebolang'), "desc" => __('If you would like to change the current accent color (pink) select your color here.', 'cebolang'), "id" => $shortname . "_accent_color", "std" => "", "type" => "color");
     $options[] = array("name" => __('Change secondary color', 'cebolang'), "desc" => __('If you would like to change the current secondary color (seen on the map)', 'cebolang'), "id" => $shortname . "_second_color", "std" => "", "type" => "color");
     $options[] = array("name" => __('Custom CSS', 'cebolang'), "desc" => __('Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}', 'cebolang'), "id" => $shortname . "_custom_css", "std" => "", "type" => "textarea");
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('Home and Page Customizations', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('General Booking Link', 'cebolang'), "desc" => "The general outbound reservation booking link", "id" => $shortname . "_genbooklink", "std" => "", "type" => "text");
     $options[] = array("name" => __('Primary Short Title', 'cebolang'), "desc" => "The tag line on the homepage ex 'NY Style'. Will also work as default as well", "id" => $shortname . "_shorttitle", "std" => "", "type" => "text");
     $options[] = array("name" => __('Primary Long Title', 'cebolang'), "desc" => "Gerneral title. Will work as default as well", "id" => $shortname . "_longtitle", "std" => "", "type" => "text");
     $options[] = array("name" => __('Footer Short Title', 'cebolang'), "desc" => "The tag line on the homepage ex 'NY Style'. Will also work as default as well", "id" => $shortname . "_foottitle", "std" => "", "type" => "text");
     $options[] = array("name" => __('Footer Description', 'cebolang'), "desc" => "Gerneral title. Will work as default as well", "id" => $shortname . "_footdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => __('Footer Background Image', 'cebolang'), "desc" => __('Upload the large background pic for the footer area. It can be anything. A good size is a large image 1,000 x 600. ', 'cebolang'), "id" => $shortname . "_footerpic", "std" => "", "type" => "upload");
     $options[] = array("name" => __('Address', 'cebolang'), "desc" => "This address will be converted into coordinates that will populate the contact maps.", "id" => $shortname . "_address", "std" => "", "type" => "text");
     $options[] = array("name" => __('Telephone Number', 'cebolang'), "desc" => "Your digits", "id" => $shortname . "_tele", "std" => "", "type" => "text");
     $options[] = array("name" => __('Fax Number', 'cebolang'), "desc" => "Your faxie", "id" => $shortname . "_fax", "std" => "", "type" => "text");
     $options[] = array("name" => __('Email', 'cebolang'), "desc" => "This email will be used in various places as well as used to create the built in contact forms. If blank, it will disable the flyout forms", "id" => $shortname . "_email", "std" => "", "type" => "text");
     $options[] = array("name" => __('Email Newsletter Form Code', 'cebolang'), "desc" => __('Paste in your newsletter signup form in the footer', 'cebolang'), "id" => $shortname . "_enewslettercode", "std" => "", "type" => "textarea");
     $options[] = array("name" => __('Contact Section Heading', 'cebolang'), "desc" => "This is the header in the contact areas near the footer", "id" => $shortname . "_cheader", "std" => "", "type" => "text");
     $options[] = array("name" => __('Contact Section Text', 'cebolang'), "desc" => __('This is the text blurp in the contact areas near the footer', 'cebolang'), "id" => $shortname . "_cblurp", "std" => "", "type" => "textarea");
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('Socialize', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('Your Facebook Username ex: (http://facebook.com/) -> somethinghere', 'cebolang'), "desc" => "DO NOT USE HTTP://FACEBOOK.COM, JUST THE HANDLE By entering your facebook link, you create the links to all facebook icons or else they will not appear", "id" => $shortname . "_facebook", "std" => "", "type" => "text");
     $options[] = array("name" => __('Twitter Username, @ ex: cebocampbell', 'cebolang'), "desc" => "DO NOT USE HTTP://TWITTER.COM, JUST THE HANDLE By entering your twitter ID you activate the twitter updates on the sidebar and various links to twitter.", "id" => $shortname . "_twitter", "std" => "", "type" => "text");
     $options[] = array("name" => __('Twitter Consumer Key', 'cebolang'), "desc" => "Twitter's recent API update requires new authentication. Therefore you will need your key, consumer secret, token and user secret to use the twitter feed. Learn how to get yours <a href=\"http://cebocampbell.com/how-to-get-your-twitter-consumer-key\" target=\"_blank\">here</a>", "id" => $shortname . "_consumer_key", "std" => "", "type" => "text");
     $options[] = array("name" => __('Twitter Consumer Secret', 'cebolang'), "desc" => "Learn how to get yours <a href=\"http://cebocampbell.com/how-to-get-your-twitter-consumer-key\" target=\"_blank\">here</a>", "id" => $shortname . "_consumer_secret", "std" => "", "type" => "text");
     $options[] = array("name" => __('Twitter User Token', 'cebolang'), "desc" => "Learn how to get yours <a href=\"http://cebocampbell.com/how-to-get-your-twitter-consumer-key\" target=\"_blank\">here</a>", "id" => $shortname . "_access_token", "std" => "", "type" => "text");
     $options[] = array("name" => __('Twitter User Secret', 'cebolang'), "desc" => "Learn how to get yours <a href=\"http://cebocampbell.com/how-to-get-your-twitter-consumer-key\" target=\"_blank\">here</a>", "id" => $shortname . "_access_token_secret", "std" => "", "type" => "text");
     $options[] = array("name" => __('Instagram Username', 'cebolang'), "desc" => "DO NOT USE HTTP://INSTAGRAM.COM, Create your instagram link with the ID: ex: cebocampbell.", "id" => $shortname . "_instagram", "std" => "", "type" => "text");
     $options[] = array("name" => __('Instagram user ID. Ex: 5532366', 'cebolang'), "desc" => "Activate Your Instagram Feed with your ID:  and a token (below). Click here to grab your userid and token: <a href=\"https://instagram.com/oauth/authorize/?client_id=467ede5a6b9b48ae8e03f4e2582aeeb3&redirect_uri=http://instafeedjs.com&response_type=token\" target=\"_blank\">here</a> or, Learn more about how to get one <a href=\"http://cebocampbell.com/instagram-feed\" target=\"_blank\">here</a>: ", "id" => $shortname . "_instagramid", "std" => "", "type" => "text");
     $options[] = array("name" => __('Instagram Access Token', 'cebolang'), "desc" => "Activate Your Instagram Feed with your token: ex: 5532366.99be448.fbef473efc0141dd99bdc4428a3a62ad. Click here to grab your userid and token: <a href=\"https://instagram.com/oauth/authorize/?client_id=467ede5a6b9b48ae8e03f4e2582aeeb3&redirect_uri=http://instafeedjs.com&response_type=token\" target=\"_blank\">here</a> or, Learn more about how to get one <a href=\"http://cebocampbell.com/instagram-feed\" target=\"_blank\">here</a>: ", "id" => $shortname . "_instagramtok", "std" => "", "type" => "text");
     $options[] = array("name" => __('Youtbe Username, @ ex: cebocampbell', 'cebolang'), "desc" => "DO NOT USE HTTP://YOUTUBE.COM, JUST THE HANDLE.", "id" => $shortname . "_youtube", "std" => "", "type" => "text");
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('Neighborhood Guide', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('Map Center', 'cebolang'), "desc" => "Place the coordinates for the map center here: ex: 30.181935,-85.791235", "id" => $shortname . "_mapcenter", "std" => "", "type" => "text");
     $options[] = array("name" => __('Center Map Icon', 'cebolang'), "desc" => __('The primary locations icon on the map', 'cebolang'), "id" => $shortname . "_mapmarker", "std" => "", "type" => "upload");
     /* Option Page 2 - Sample Page */
     $options[] = array("name" => __('Email Newsletters', 'cebolang'), "type" => "heading");
     $options[] = array("name" => __('Basic Email Newsletter Code', 'cebolang'), "desc" => "This code will generate an Email Newsletter that you can edit, copy and paste into any mail service and start sending out emails to your peeps. Learn more about this newsletter feature, <a href=\"http://cebocampbell.com/wordpress-mailchimp-ready-newsletter\" target=\"_blank\">click here</a>", "id" => $shortname . "_newsletter", "std" => $newsletter_code, "type" => "codeblockthree");
     $options[] = array("name" => __('Show Page Template as Heading', 'cebolang'), "desc" => "If you would like to use the page template as the header for the newsletter, please check here.", "id" => $shortname . "_heading", "std" => "true", "type" => "checkbox");
     $options[] = array("name" => __('Show Recent Projects', 'cebolang'), "desc" => "If you would like your 3 most recent projects to display on your newsletter, please check here", "id" => $shortname . "_recentprojects", "std" => "true", "type" => "checkbox");
     $options[] = array("name" => __('Show Recent Blog Posts', 'cebolang'), "desc" => "If you would show your recent blog postson your newsletter, please check here", "id" => $shortname . "_recentposts", "std" => "true", "type" => "checkbox");
     $options[] = array("name" => __('Number of Blog Posts to Display', 'cebolang'), "desc" => "Choose How Many Blog Posts will be displayed, up to 10.", "id" => $shortname . "_newsletterpostcount", "type" => "select", "std" => "3", "options" => array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"));
     $options[] = array("name" => __('Mailchimp RSS Email Newsletter Code', 'cebolang'), "desc" => "This code will generate an Email Newsletter that you can edit, copy and paste into Mailchimp and start sending out emails to your peeps. Learn more about this newsletter feature, <a href=\"http://cebocampbell.com/wordpress-mailchimp-ready-newsletter\" target=\"_blank\">click here</a>", "id" => $shortname . "_mailchimp", "std" => $mailchimp_code, "type" => "codeblocktwo");
     update_option('of_template', $options);
     update_option('of_themename', $themename);
     update_option('of_shortname', $shortname);
 }
Ejemplo n.º 4
0
				
			</div>
			
			
			
			
			
			<!-- end blog post -->
			
			<div class="clear"></div>
			
			
			<?php $postcount++; endwhile; wp_reset_query(); ?>	
			
			
			<?php $blogger = get_page_with_template('page_blog');
				  $bloggerurl= get_permalink($blogger);	
			?>
	        
	        <?php if($blogger) { ?>
	        
	        <div class="blognav">
				<a class="holup" href="#blogsection"></a>
				<a class="gohead" href="<?php echo $bloggerurl; ?>?paged=2"></a>
				
				<div class="clear"></div>
			 </div>
			 
			
	        
	        <? } ?>