Adds the meta box container.
968226
public function add_meta_boxes( $post_type )
    {    
        if ( in_array( $post_type, $this->settings['post_types'] )) {
            add_meta_box(
                $this->settings['id'],
                $this->settings['title'],
                array( $this, 'render' ),
                $post_type,
                $this->settings['context'],
                $this->settings['priority']
            );
        }
    }
364494
protected function wizardAddCollection()
    {
        $this->validatePrompt('title', $this->text('Title'), 'collection');
        $this->validateMenu('type', $this->text('Type'), 'collection', $this->collection->getTypes());
        $this->validatePrompt('store_id', $this->text('Store'), 'collection');
        $this->validatePrompt('description', $this->text('Description'), 'collection', '');
        $this->validatePrompt('status', $this->text('Status'), 'collection', 0);

        $this->validateComponent('collection');
        $this->addCollection();
    }
359960
public function add_meta_boxes() {

		$pod = array(
			'name' => $this->object_type,
			'type' => 'post_type',
		);

		if ( isset( PodsMeta::$post_types[ $pod['name'] ] ) ) {
			return;
		}

		$fields = array(
			array(
				'name'    => 'helper_type',
				'label'   => __( 'Helper Type', 'pods' ),
				'type'    => 'pick',
				'default' => 'display',
				'data'    => array(
					'input'       => 'Input (change form fields)',
					'display'     => 'Display (change field output when using magic tags)',
					'pre_save'    => 'Pre-Save (change form fields before saving)',
					'post_save'   => 'Post-Save',
					'pre_delete'  => 'Pre-Delete',
					'post_delete' => 'Post-Delete',
				),
			),
			array(
				'name'  => 'code',
				'label' => __( 'Code', 'pods' ),
				'type'  => 'code',
			),
		);

		pods_group_add( $pod, __( 'Helper', 'pods' ), $fields, 'normal', 'high' );
	}
581756
public function addThemeSupports()
    {
        load_theme_textdomain('novusopress', $this->paths->getBaseLanguageDir());

        add_theme_support('title-tag');
        add_theme_support('automatic-feed-links');
        add_theme_support('post-thumbnails');
        add_theme_support('html5', ['search-form', 'comment-form', 'comment-list', 'gallery', 'caption']);

        register_nav_menus(['main-menu' => __('Main Menu', 'novusopress')]);

        if ($this->getThemeOption('clean_document_head')) {
            $this->cleanDocumentHead();
        }

        if (file_exists(sprintf('%s/css/editor-style.css', $this->paths->getThemeAssetsDir()))) {
            add_editor_style('assets/css/editor-style.css');
        }
    }
521559
public void add(BlockBox box)
    {
		box.setOwnerFloatList(this);
        floats.add(box);
        if (box.getBounds().y + box.getBounds().height > getMaxY())
            bottomBox = box;
        if (box.getBounds().y > getLastY())
            lastBox = box;
    }
666
def add_element(self, element):
        """"""
        try:
            self.toc[element.group][element.name] = element
        except KeyError:
            self.toc[element.group] = {}
            self.toc[element.group][element.name] = element
1216253
def add_box(*boxes)
      boxes = boxes.flatten.compact
      @boxes += boxes.collect do |box|
        box = Rye::Box.new(box, @opts) if box.is_a?(String)
        box.add_keys(@keys)
        box
      end
      self
    end
898557
public function addMetaBox($id, $args)
    {
        $box = new MetaBox($id, $this->name, $args);

        return $this;
    }
197156
protected void buildMeta() {
    if(haslabels) {
      meta = new BundleMeta(2);
      meta.add(getTypeInformation(mindim, maxdim));
      meta.add(TypeUtil.LABELLIST);
    }
    else {
      meta = new BundleMeta(1);
      meta.add(getTypeInformation(mindim, maxdim));
    }
  }
929007
function (cb) {

            var opts = {
                meta: {}
            };
            opts = this.populateClasses(opts);
            opts = this.populateModules(opts);

            ['classes', 'modules'].forEach(function (id) {
                opts.meta[id].forEach(function (v, k) {
                    opts.meta[id][k] = v.name;
                    if (v.submodules) {
                        v.submodules.forEach(function (s) {
                            opts.meta[id].push(s.displayName);
                        });
                    }
                });
                opts.meta[id].sort();
            });

            var apijs = 'YUI.add("yuidoc-meta", function(Y) {\n' +
                '   Y.YUIDoc = { meta: ' + JSON.stringify(opts.meta, null, 4) + ' };\n' +
                '});';

            cb(apijs);
        }
1000342
protected void buildMeta() {
    if(haslabels) {
      meta = new BundleMeta(3);
      meta.add(TypeUtil.POLYGON_TYPE);
      meta.add(TypeUtil.EXTERNALID);
      meta.add(TypeUtil.LABELLIST);
    }
    else {
      meta = new BundleMeta(2);
      meta.add(TypeUtil.POLYGON_TYPE);
      meta.add(TypeUtil.EXTERNALID);
    }
  }
1048634
public static function _meta_box() {
		?>
		<div class="taxonomydiv">
			<ul id="menu-icons-settings-tabs" class="taxonomy-tabs add-menu-item-tabs hide-if-no-js">
				<?php foreach ( self::get_fields() as $section ) : ?>
					<?php
					printf(
						'<li><a href="#" title="%s" class="mi-settings-nav-tab" data-type="menu-icons-settings-%s">%s</a></li>',
						esc_attr( $section['description'] ),
						esc_attr( $section['id'] ),
						esc_html( $section['title'] )
					);
					?>
				<?php endforeach; ?>
				<?php
				printf(
					'<li><a href="#" class="mi-settings-nav-tab" data-type="menu-icons-settings-extensions">%s</a></li>',
					esc_html__( 'Extensions', 'menu-icons' )
				);
				?>
			</ul>
			<?php foreach ( self::_get_fields() as $section_index => $section ) : ?>
				<div id="menu-icons-settings-<?php echo esc_attr( $section['id'] ) ?>"
					 class="tabs-panel _<?php echo esc_attr( $section_index ) ?>">
					<h4 class="hide-if-js"><?php echo esc_html( $section['title'] ) ?></h4>
					<?php foreach ( $section['fields'] as $field ) : ?>
						<div class="_field">
							<?php
							printf(
								'<label for="%s" class="_main">%s</label>',
								esc_attr( $field->id ),
								esc_html( $field->label )
							);
							?>
							<?php $field->render() ?>
						</div>
					<?php endforeach; ?>
				</div>
			<?php endforeach; ?>
			<div id="menu-icons-settings-extensions" class="tabs-panel _extensions">
				<h4 class="hide-if-js"><?php echo esc_html__( 'Extensions', 'menu-icons' ) ?></h4>
				<ul>
					<li><a target="_blank" href="http://wordpress.org/plugins/menu-icons-icomoon/">IcoMoon</a></li>
				</ul>
			</div>
		</div>
		<p class="submitbox button-controls">
			<?php wp_nonce_field( self::UPDATE_KEY, self::UPDATE_KEY ) ?>
			<span class="list-controls">
					<?php
					printf(
						'<a href="%s" title="%s" class="select-all submitdelete">%s</a>',
						esc_url(
							wp_nonce_url(
								admin_url( '/nav-menus.php' ),
								self::RESET_KEY,
								self::RESET_KEY
							)
						),
						esc_attr__( 'Discard all changes and reset to default state', 'menu-icons' ),
						esc_html__( 'Reset', 'menu-icons' )
					);
					?>
				</span>

			<span class="add-to-menu">
					<span class="spinner"></span>
				<?php
				submit_button(
					__( 'Save Settings', 'menu-icons' ),
					'secondary',
					'menu-icons-settings-save',
					false
				);
				?>
				</span>
		</p>
		<?php
	}
743907
protected function addBagDataToSession()
	{
		foreach ( array_merge( $this->bags, [$this->metaBag] ) as $bag )
		{
			$key = $bag->getStorageKey();

			if ( isset( $this->bagData[$key] ) )
			{
				$this->put( $key, $this->bagData[$key] );
			}
		}
	}
1047681
public function addMeta()
    {
        foreach (func_get_args() as $meta) {
            if (is_array($meta)) {
                $this->meta += $meta;
            }
        }

        return $this;
    }
153186
public function add_metaboxes() {
		$methos = $this->getMethods("/^metabox_/");
		sort($methos); //Se ordenas los metodos por prioridad
		if ($methos) {
			foreach ($methos as $metabox) {
                call_user_func(array($this, $metabox));
			}
		}
	}
326685
public function addHtml($html, $meta = array())
    {
        $objString = new StaticText($html, $meta);
        $objString->setMeta("parent", $this, true);
        $this->__fields->addObject($objString);

        return $objString;
    }
197388
public function addLink($key, $href, array $meta=[]) {
		$this->ensureLinksObject();
		$this->links->add($key, $href, $meta);
	}