settings-info.php 6.96 KB
Newer Older
imac's avatar
imac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
<?php 

// extract args
extract( $args );

?>
<div class="wrap about-wrap acf-wrap">
	
	<h1><?php _e("Welcome to Advanced Custom Fields",'acf'); ?> <?php echo $version; ?></h1>
	<div class="about-text"><?php printf(__("Thank you for updating! ACF %s is bigger and better than ever before. We hope you like it.", 'acf'), $version); ?></div>
	<div class="acf-icon logo">
		<i class="acf-sprite-logo"></i>
	</div>
	
	<h2 class="nav-tab-wrapper">
		<?php foreach( $tabs as $tab_slug => $tab_title ): ?>
			<a class="nav-tab<?php if( $active == $tab_slug ): ?> nav-tab-active<?php endif; ?>" href="<?php echo admin_url("edit.php?post_type=acf-field-group&page=acf-settings-info&tab={$tab_slug}"); ?>"><?php echo $tab_title; ?></a>
		<?php endforeach; ?>
	</h2>
	
<?php if( $active == 'new' ): ?>
	
	<h2 class="about-headline-callout"><?php _e("A smoother custom field experience", 'acf'); ?></h2>
	
	<div class="feature-section acf-three-col">
		<div>
			<img src="https://assets.advancedcustomfields.com/info/5.0.0/select2.png">
			<h3><?php _e("Improved Usability", 'acf'); ?></h3>
			<p><?php _e("Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select.", 'acf'); ?></p>
		</div>
		<div>
			<img src="https://assets.advancedcustomfields.com/info/5.0.0/design.png">
			<h3><?php _e("Improved Design", 'acf'); ?></h3>
			<p><?php _e("Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!", 'acf'); ?></p>
		</div>
		<div>
			<img src="https://assets.advancedcustomfields.com/info/5.0.0/sub-fields.png">
			<h3><?php _e("Improved Data", 'acf'); ?></h3>
			<p><?php _e("Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!", 'acf'); ?></p>
		</div>
	</div>
	
	<hr />
	
	<h2 class="about-headline-callout"><?php _e("Goodbye Add-ons. Hello PRO", 'acf'); ?></h2>
	
	<div class="feature-section acf-three-col">
	
		<div>
			<h3><?php _e("Introducing ACF PRO", 'acf'); ?></h3>
			<p><?php _e("We're changing the way premium functionality is delivered in an exciting way!", 'acf'); ?></p>
			<p><?php printf(__('All 4 premium add-ons have been combined into a new <a href="%s">Pro version of ACF</a>. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!', 'acf'), esc_url('https://www.advancedcustomfields.com/pro')); ?></p>
		</div>
		
		<div>
			<h3><?php _e("Powerful Features", 'acf'); ?></h3>
			<p><?php _e("ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!", 'acf'); ?></p>
			<p><?php printf(__('Read more about <a href="%s">ACF PRO features</a>.', 'acf'), esc_url('https://www.advancedcustomfields.com/pro')); ?></p>
		</div>
		
		<div>
			<h3><?php _e("Easy Upgrading", 'acf'); ?></h3>
			<p><?php printf(__('To help make upgrading easy, <a href="%s">login to your store account</a> and claim a free copy of ACF PRO!', 'acf'), esc_url('https://www.advancedcustomfields.com/my-account/')); ?></p>
			<p><?php printf(__('We also wrote an <a href="%s">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href="%s">help desk</a>', 'acf'), esc_url('https://www.advancedcustomfields.com/resources/updates/upgrading-v4-v5/'), esc_url('https://support.advancedcustomfields.com')); ?>
			
		</div>
					
	</div>
	
	<hr />
	
	<h2 class="about-headline-callout"><?php _e("Under the Hood", 'acf'); ?></h2>
	
	<div class="feature-section acf-three-col">
		
		<div>
			<h4><?php _e("Smarter field settings", 'acf'); ?></h4>
			<p><?php _e("ACF now saves its field settings as individual post objects", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("More AJAX", 'acf'); ?></h4>
			<p><?php _e("More fields use AJAX powered search to speed up page loading", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Local JSON", 'acf'); ?></h4>
			<p><?php _e("New auto export to JSON feature improves speed", 'acf'); ?></p>
		</div>
		
		<br />
		
		<div>
			<h4><?php _e("Better version control", 'acf'); ?></h4>
			<p><?php _e("New auto export to JSON feature allows field settings to be version controlled", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Swapped XML for JSON", 'acf'); ?></h4>
			<p><?php _e("Import / Export now uses JSON in favour of XML", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("New Forms", 'acf'); ?></h4>
			<p><?php _e("Fields can now be mapped to comments, widgets and all user forms!", 'acf'); ?></p>
		</div>
		
		<br />
		
		<div>
			<h4><?php _e("New Field", 'acf'); ?></h4>
			<p><?php _e("A new field for embedding content has been added", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("New Gallery", 'acf'); ?></h4>
			<p><?php _e("The gallery field has undergone a much needed facelift", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("New Settings", 'acf'); ?></h4>
			<p><?php _e("Field group settings have been added for label placement and instruction placement", 'acf'); ?></p>
		</div>
		
		<br />
		
		<div>
			<h4><?php _e("Better Front End Forms", 'acf'); ?></h4>
			<p><?php _e("acf_form() can now create a new post on submission", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Better Validation", 'acf'); ?></h4>
			<p><?php _e("Form validation is now done via PHP + AJAX in favour of only JS", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Relationship Field", 'acf'); ?></h4>
			<p><?php _e("New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)", 'acf'); ?></p>
		</div>
		
		<br />
		
		<div>
			<h4><?php _e("Moving Fields", 'acf'); ?></h4>
			<p><?php _e("New field group functionality allows you to move a field between groups & parents", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Page Link", 'acf'); ?></h4>
			<p><?php _e("New archives group in page_link field selection", 'acf'); ?></p>
		</div>
		
		<div>
			<h4><?php _e("Better Options Pages", 'acf'); ?></h4>
			<p><?php _e("New functions for options page allow creation of both parent and child menu pages", 'acf'); ?></p>
		</div>
					
	</div>
		
	
	
<?php elseif( $active == 'changelog' ): ?>
	
	<p class="about-description"><?php printf(__("We think you'll love the changes in %s.", 'acf'), $version); ?></p>
	
	<?php
		
	$items = file_get_contents( acf_get_path('readme.txt') );
	$items = explode('= ' . $version . ' =', $items);
	
	$items = end( $items );
	$items = current( explode("\n\n", $items) );
	$items = array_filter( array_map('trim', explode("*", $items)) );
	
	?>
	<ul class="changelog">
	<?php foreach( $items as $item ): 
		
		$item = explode('http', $item);
			
		?>
		<li><?php echo $item[0]; ?><?php if( isset($item[1]) ): ?><a href="http<?php echo $item[1]; ?>" target="_blank">[...]</a><?php endif; ?></li>
	<?php endforeach; ?>
	</ul>

<?php endif; ?>
		
</div>