SCSS
.person {
&__hand {/* Styles */}
&__leg {/* Styles */}
&--male {
/* Styles */
SCSS
.person {
&__hand {/* Styles */}
&__leg {/* Styles */}
&--male {
/* Styles */
| SCSS | |
| ` | |
| .person { | |
| &__hand {/* Styles */} | |
| &__leg {/* Styles */} | |
| &--male { | |
| /* Styles */ |
| if( !function_exists('acf_add_options_page') ) { | |
| acf_add_options_page(); | |
| } | |
| acf_add_options_page( | |
| [ | |
| 'page_title' => 'Site Ayarları', | |
| 'menu_title' => 'Site Ayarları', |
| BEM nedir ? | |
| https://medium.com/@busramemis/css-methodology-bem-7dc8596b5c8c | |
| Örnekli BEM mimarisi hakkında güzel bir makale : | |
| https://ahmadawais.com/bem-css-basics-for-wordpress-themes-developers/ | |
| Badrock yapısı ile alakalı | |
| https://roots.io/bedrock/ | |
| Timber starter theme ve klasor yapısı, örnek kodlar : |
| <?php | |
| class EngineACF extends Timber\Site { | |
| public function __construct() { | |
| parent::__construct(); | |
| add_action( 'admin_head' , [$this, 'adminStyle']); | |
| add_action( 'acf/init', [$this, 'acfBlocks'] ); | |
| } |
| <?php | |
| $collection = collect([ | |
| ['user_id' => 1, 'product' => 'Macbook Pro'], | |
| ['user_id' => 2, 'product' => 'Apple Watch'], | |
| ]); | |
| $collection->implode('product', ', '); | |
| // Macbook Pro, Apple Watch |
| const filters = ['a', 'b']; | |
| const results = [ | |
| { | |
| name: 'Result 1', | |
| category: ['a'] | |
| }, | |
| { | |
| name: 'Result 2', | |
| category: ['a', 'b'] |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use App\Imports\UsersImport; | |
| use Maatwebsite\Excel\Facades\Excel; | |
| class ExcellImporter extends Command | |
| { |
| <?php | |
| //increase max execution time of this script to 150 min: | |
| ini_set('max_execution_time', 9000); | |
| //increase Allowed Memory Size of this script: | |
| ini_set('memory_limit','960M'); | |
| // Copies woocommerce orders and users over from source to target. | |
| // I use this on my local machine - loading both db's up there side by side | |
| // could easily adjust the connect strings to connect elsewhere if needed. |
| WP_Hook Object | |
| ( | |
| [callbacks] => Array | |
| ( | |
| [0] => Array | |
| ( | |
| [00000000693ea8760000000039db1f96add_query_vars] => Array | |
| ( | |
| [function] => Array | |
| ( |